postgresql/src/backend/access
Heikki Linnakangas 631118fe1e Get rid of the post-recovery cleanup step of GIN page splits.
Replace it with an approach similar to what GiST uses: when a page is split,
the left sibling is marked with a flag indicating that the parent hasn't been
updated yet. When the parent is updated, the flag is cleared. If an insertion
steps on a page with the flag set, it will finish split before proceeding
with the insertion.

The post-recovery cleanup mechanism was never totally reliable, as insertion
to the parent could fail e.g because of running out of memory or disk space,
leaving the tree in an inconsistent state.

This also divides the responsibility of WAL-logging more clearly between
the generic ginbtree.c code, and the parts specific to entry and posting
trees. There is now a common WAL record format for insertions and deletions,
which is written by ginbtree.c, followed by tree-specific payload, which is
returned by the placetopage- and split- callbacks.
2013-11-27 19:21:23 +02:00
..
common Support multi-argument UNNEST(), and TABLE() syntax for multiple functions. 2013-11-21 19:37:20 -05:00
gin Get rid of the post-recovery cleanup step of GIN page splits. 2013-11-27 19:21:23 +02:00
gist Post-pgindent cleanup 2013-06-01 09:38:15 -04:00
hash Consistently use unsigned arithmetic for alignment calculations. 2013-10-20 21:04:52 -04:00
heap Fix bugs in SSI tuple locking. 2013-10-08 00:18:43 +03:00
index Use InvalidSnapshot, now SnapshotNow, as the default snapshot. 2013-07-23 10:58:32 -04:00
nbtree Use an MVCC snapshot, rather than SnapshotNow, for catalog scans. 2013-07-02 09:47:01 -04:00
rmgrdesc Get rid of the post-recovery cleanup step of GIN page splits. 2013-11-27 19:21:23 +02:00
spgist Retry after buffer locking failure during SPGiST index creation. 2013-11-02 16:45:42 -04:00
transam Change SET LOCAL/CONSTRAINTS/TRANSACTION and ABORT behavior 2013-11-25 19:19:40 -05:00
Makefile Split out rmgr rm_desc functions into their own files 2012-11-28 13:01:15 -03:00