postgresql/src/backend/access
Tom Lane c6a11b89e4 Teach SPGiST to store nulls and do whole-index scans.
This patch fixes the other major compatibility-breaking limitation of
SPGiST, that it didn't store anything for null values of the indexed
column, and so could not support whole-index scans or "x IS NULL"
tests.  The approach is to create a wholly separate search tree for
the null entries, and use fixed "allTheSame" insertion and search
rules when processing this tree, instead of calling the index opclass
methods.  This way the opclass methods do not need to worry about
dealing with nulls.

Catversion bump is for pg_am updates as well as the change in on-disk
format of SPGiST indexes; there are some tweaks in SPGiST WAL records
as well.

Heavily rewritten version of a patch by Oleg Bartunov and Teodor Sigaev.
(The original also stored nulls separately, but it reused GIN code to do
so; which required undesirable compromises in the on-disk format, and
would likely lead to bugs due to the GIN code being required to work in
two very different contexts.)
2012-03-11 16:29:59 -04:00
..
common Update outdated comment. HeapTupleHeader.t_natts field doesn't exist anymore. 2012-03-09 08:07:56 +02:00
gin Fix some more bugs in GIN's WAL replay logic. 2012-02-26 15:12:17 -05:00
gist When a GiST page is split during index build, it might not have a buffer. 2012-03-02 13:16:09 +02:00
hash Update copyright notices for year 2012. 2012-01-01 18:01:58 -05:00
heap Fix heap_multi_insert to set t_self field in the caller's tuples. 2012-02-13 10:20:50 +02:00
index Update copyright notices for year 2012. 2012-01-01 18:01:58 -05:00
nbtree Don't clear btpo_cycleid during _bt_vacuum_one_page. 2012-02-21 15:03:36 -05:00
spgist Teach SPGiST to store nulls and do whole-index scans. 2012-03-11 16:29:59 -04:00
transam Silence warning about unused variable, when building without assertions. 2012-03-08 11:10:02 +02:00
Makefile Add SP-GiST (space-partitioned GiST) index access method. 2011-12-17 16:42:30 -05:00