postgresql/contrib/btree_gist/sql
Tom Lane 8a859691d5 Properly initialize SortSupport for ORDER BY rechecks in nodeIndexscan.c.
Fix still another bug in commit 35fcb1b3d: it failed to fully initialize
the SortSupport states it introduced to allow the executor to re-check
ORDER BY expressions containing distance operators.  That led to a null
pointer dereference if the sortsupport code tried to use ssup_cxt.  The
problem only manifests in narrow cases, explaining the lack of previous
field reports.  It requires a GiST-indexable distance operator that lacks
SortSupport and is on a pass-by-ref data type, which among core+contrib
seems to be only btree_gist's interval opclass; and it requires the scan
to be done as an IndexScan not an IndexOnlyScan, which explains how
btree_gist's regression test didn't catch it.  Per bug #14134 from
Jihyun Yu.

Peter Geoghegan

Report: <20160511154904.2603.43889@wrigleys.postgresql.org>
2016-06-05 11:53:06 -04:00
..
bit.sql Add index-only scan support to btree_gist. 2015-03-27 23:35:16 +02:00
bytea.sql Add index-only scan support to btree_gist. 2015-03-27 23:35:16 +02:00
cash.sql Add KNNGIST support to contrib/btree_gist. 2011-03-02 14:44:33 -05:00
char.sql Add index-only scan support to btree_gist. 2015-03-27 23:35:16 +02:00
cidr.sql Remove extra newlines at end and beginning of files, add missing newlines 2010-08-19 05:57:36 +00:00
date.sql Add KNNGIST support to contrib/btree_gist. 2011-03-02 14:44:33 -05:00
float4.sql Add KNNGIST support to contrib/btree_gist. 2011-03-02 14:44:33 -05:00
float8.sql Add KNNGIST support to contrib/btree_gist. 2011-03-02 14:44:33 -05:00
inet.sql Remove extra newlines at end and beginning of files, add missing newlines 2010-08-19 05:57:36 +00:00
init.sql Convert contrib modules to use the extension facility. 2011-02-13 22:54:49 -05:00
int2.sql Add KNNGIST support to contrib/btree_gist. 2011-03-02 14:44:33 -05:00
int4.sql Add KNNGIST support to contrib/btree_gist. 2011-03-02 14:44:33 -05:00
int8.sql Add KNNGIST support to contrib/btree_gist. 2011-03-02 14:44:33 -05:00
interval.sql Properly initialize SortSupport for ORDER BY rechecks in nodeIndexscan.c. 2016-06-05 11:53:06 -04:00
macaddr.sql Add index-only scan support to btree_gist. 2015-03-27 23:35:16 +02:00
not_equal.sql Ensure plan stability in contrib/btree_gist regression test. 2016-05-12 20:04:38 -04:00
numeric.sql Add index-only scan support to btree_gist. 2015-03-27 23:35:16 +02:00
oid.sql New version. Add support for int2, int8, float4, float8, timestamp with/without time zone, time with/without time zone, date, interval, oid, money and macaddr, char, varchar/text, bytea, numeric, bit, varbit, inet/cidr types for GiST 2004-05-28 10:43:32 +00:00
text.sql Add index-only scan support to btree_gist. 2015-03-27 23:35:16 +02:00
time.sql Add KNNGIST support to contrib/btree_gist. 2011-03-02 14:44:33 -05:00
timestamp.sql Add KNNGIST support to contrib/btree_gist. 2011-03-02 14:44:33 -05:00
timestamptz.sql Add KNNGIST support to contrib/btree_gist. 2011-03-02 14:44:33 -05:00
timetz.sql New version. Add support for int2, int8, float4, float8, timestamp with/without time zone, time with/without time zone, date, interval, oid, money and macaddr, char, varchar/text, bytea, numeric, bit, varbit, inet/cidr types for GiST 2004-05-28 10:43:32 +00:00
varbit.sql Add index-only scan support to btree_gist. 2015-03-27 23:35:16 +02:00
varchar.sql New version. Add support for int2, int8, float4, float8, timestamp with/without time zone, time with/without time zone, date, interval, oid, money and macaddr, char, varchar/text, bytea, numeric, bit, varbit, inet/cidr types for GiST 2004-05-28 10:43:32 +00:00