postgresql/contrib/btree_gist
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
..
data
expected Properly initialize SortSupport for ORDER BY rechecks in nodeIndexscan.c. 2016-06-05 11:53:06 -04:00
sql Properly initialize SortSupport for ORDER BY rechecks in nodeIndexscan.c. 2016-06-05 11:53:06 -04:00
.gitignore
btree_bit.c Minor refactoring of btree_gist code. 2015-03-26 23:10:10 +02:00
btree_bytea.c
btree_cash.c Add index-only scan support to btree_gist. 2015-03-27 23:35:16 +02:00
btree_date.c Add index-only scan support to btree_gist. 2015-03-27 23:35:16 +02:00
btree_float4.c Add index-only scan support to btree_gist. 2015-03-27 23:35:16 +02:00
btree_float8.c Add index-only scan support to btree_gist. 2015-03-27 23:35:16 +02:00
btree_gist--1.0--1.1.sql Add index-only scan support to btree_gist. 2015-03-27 23:35:16 +02:00
btree_gist--1.1.sql Fix assorted inconsistencies in GiST opclass support function declarations. 2016-01-19 12:04:36 -05:00
btree_gist--unpackaged--1.0.sql
btree_gist.c
btree_gist.control Add index-only scan support to btree_gist. 2015-03-27 23:35:16 +02:00
btree_gist.h
btree_inet.c
btree_int2.c Add index-only scan support to btree_gist. 2015-03-27 23:35:16 +02:00
btree_int4.c Add index-only scan support to btree_gist. 2015-03-27 23:35:16 +02:00
btree_int8.c Add index-only scan support to btree_gist. 2015-03-27 23:35:16 +02:00
btree_interval.c Add index-only scan support to btree_gist. 2015-03-27 23:35:16 +02:00
btree_macaddr.c Add index-only scan support to btree_gist. 2015-03-27 23:35:16 +02:00
btree_numeric.c Minor refactoring of btree_gist code. 2015-03-26 23:10:10 +02:00
btree_oid.c Add index-only scan support to btree_gist. 2015-03-27 23:35:16 +02:00
btree_text.c
btree_time.c Add index-only scan support to btree_gist. 2015-03-27 23:35:16 +02:00
btree_ts.c Fix misc typos. 2015-09-05 11:35:49 +03:00
btree_utils_num.c pgindent run for 9.5 2015-05-23 21:35:49 -04:00
btree_utils_num.h Add index-only scan support to btree_gist. 2015-03-27 23:35:16 +02:00
btree_utils_var.c Fix misc typos. 2015-09-05 11:35:49 +03:00
btree_utils_var.h Minor refactoring of btree_gist code. 2015-03-26 23:10:10 +02:00
Makefile Improve spelling 2015-08-22 21:54:35 -04:00