]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix ginint4_queryextract() to actually do what it was intended to do for an
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 25 Mar 2010 15:50:22 +0000 (15:50 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 25 Mar 2010 15:50:22 +0000 (15:50 +0000)
commitd1bc3525c072a4c6bbc7bbba5da68cd30adfd1a6
tree0ac4f251156b9e8c3ec343e8108151b71d8df303
parente429448f33843f4b9bffe1243efb1158343e267b
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.
contrib/intarray/_int_gin.c