pgsql: Make GiST index searches smarter about queries against empty ran

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Make GiST index searches smarter about queries against empty ran
Date: 2011-11-26 19:27:29
Message-ID: E1RUNuL-0005d8-4j@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/5966bcecf6167f2921e614e66499fa4d2c195c64

Modified Files
--------------
src/backend/utils/adt/rangetypes_gist.c | 13 +++++++++----
1 files changed, 9 insertions(+), 4 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Andrew Dunstan 2011-11-26 20:22:57 pgsql: Use the preferred version of xsubpp, not necessarily the one tha
Previous Message Tom Lane 2011-11-26 18:02:22 pgsql: Fix overly-aggressive and inconsistent quoting in OS X start scr