pgsql: Fix knn-GiST queue comparison function to return heap tuples fir

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix knn-GiST queue comparison function to return heap tuples fir
Date: 2015-02-17 21:00:30
Message-ID: E1YNpFu-00013s-H0@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix knn-GiST queue comparison function to return heap tuples first.

The part of the comparison function that was supposed to keep heap tuples
ahead of index items was backwards. It would not lead to incorrect results,
but it is more efficient to return heap tuples first, before scanning more
index pages, when both have the same distance.

Alexander Korotkov

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/d17b6df239e6eebf288969e931cdbe8076d1fe12

Modified Files
--------------
src/backend/access/gist/gistscan.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2015-02-17 23:04:19 pgsql: Fix EXPLAIN output for cases where parent table is excluded by c
Previous Message Stephen Frost 2015-02-17 20:37:19 pgsql: Minor cleanup of column-level priv fix