Make GiST index searches smarter about queries against empty ranges.
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 26 Nov 2011 19:27:05 +0000 (14:27 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 26 Nov 2011 19:27:05 +0000 (14:27 -0500)
commit5966bcecf6167f2921e614e66499fa4d2c195c64
treefe3a5ec175c39f1284b386069bf5f6559a7d9592
parent6c8768c3861d6690656b74676c44ffa63c0e4ef7
Make GiST index searches smarter about queries against empty ranges.

In the cases where the result of the called proc is negated, we should
explicitly test both inputs for empty, to ensure we'll never return "true"
for an unsatisfiable query.  In other cases we can rely on the called proc
to say the right thing.
src/backend/utils/adt/rangetypes_gist.c