postgresql/src/include/access
Tom Lane e5efda442c Install a search tree depth limit in GIN bulk-insert operations, to prevent
them from degrading badly when the input is sorted or nearly so.  In this
scenario the tree is unbalanced to the point of becoming a mere linked list,
so insertions become O(N^2).  The easiest and most safely back-patchable
solution is to stop growing the tree sooner, ie limit the growth of N.  We
might later consider a rebalancing tree algorithm, but it's not clear that
the benefit would be worth the cost and complexity.  Per report from Sergey
Burladyan and an earlier complaint from Heikki.

Back-patch to 8.2; older versions didn't have GIN indexes.
2009-03-24 22:06:03 +00:00
..
attnum.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
clog.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
genam.h Implement "fastupdate" support for GIN indexes, in which we try to accumulate 2009-03-24 20:17:18 +00:00
gin.h Install a search tree depth limit in GIN bulk-insert operations, to prevent 2009-03-24 22:06:03 +00:00
gist_private.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
gist.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
gistscan.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
hash.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
heapam.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
hio.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
htup.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
itup.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
multixact.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
nbtree.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
printtup.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
reloptions.h Const-ify the parse table passed to fillRelOptions. The previous coding 2009-03-23 16:36:27 +00:00
relscan.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
rewriteheap.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
rmgr.h Rethink the way FSM truncation works. Instead of WAL-logging FSM 2008-11-19 10:34:52 +00:00
sdir.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
skey.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
slru.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
subtrans.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
sysattr.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
transam.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
tupdesc.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
tupmacs.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
tuptoaster.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
twophase_rmgr.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
twophase.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
valid.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
visibilitymap.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
xact.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
xlog_internal.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
xlog.h Start background writer during archive recovery. Background writer now performs 2009-02-18 15:58:41 +00:00
xlogdefs.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
xlogutils.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00