]> granicus.if.org Git - postgresql/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:15 +0000 (15:50 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 25 Mar 2010 15:50:15 +0000 (15:50 +0000)
commit3c6dc48ce4fa90ebaaf332d0f8cb77adbe3d5950
tree432f81665faafe75283767199a04a6e976cb5645
parent08729b4e8aa3a27bf9b43a2dae6b962405f63222
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