Make GiST index searches smarter about queries against empty ranges.

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

Commit: 5966bcecf6167f2921e614e66499fa4d2c195c64
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2011-11-26T19:27:05Z
Releases: 9.2.0
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.

Files

PathChange+/−
src/backend/utils/adt/rangetypes_gist.c modified +9 −4