Fix ginint4_queryextract() to actually do what it was intended to do for an

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 3c6dc48ce4fa90ebaaf332d0f8cb77adbe3d5950
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2010-03-25T15:50:15Z
Releases: 8.4.4
Fix ginint4_queryextract() to actually do what it was intended to do for an
unsatisfiable query, such as indexcol && empty_array.  It should return -1
to tell GIN no scan is required; but silly typo disabled the logic for that,
resulting in unnecessary "GIN indexes do not support whole-index scans" error.
Per bug report from Jeff Trout.

Back-patch to 8.3 where the logic was introduced.

Files

PathChange+/−
contrib/intarray/_int_gin.c modified +2 −2