postgresql/src/include/access
Heikki Linnakangas 89911b3ab8 Fix GiST buffering build bug, which caused "failed to re-find parent" errors.
We use a hash table to track the parents of inner pages, but when inserting
to a leaf page, the caller of gistbufferinginserttuples() must pass a
correct block number of the leaf's parent page. Before gistProcessItup()
descends to a child page, it checks if the downlink needs to be adjusted to
accommodate the new tuple, and updates the downlink if necessary. However,
updating the downlink might require splitting the page, which might move the
downlink to a page to the right. gistProcessItup() doesn't realize that, so
when it descends to the leaf page, it might pass an out-of-date parent block
number as a result. Fix that by returning the block a tuple was inserted to
from gistbufferinginserttuples().

This fixes the bug reported by Zdeněk Jílovec.
2012-08-16 12:56:24 +03:00
..
attnum.h Update copyright notices for year 2012. 2012-01-01 18:01:58 -05:00
clog.h Make the number of CLOG buffers adaptive, based on shared_buffers. 2012-01-06 14:32:18 -05:00
genam.h Update copyright notices for year 2012. 2012-01-01 18:01:58 -05:00
gin.h Update copyright notices for year 2012. 2012-01-01 18:01:58 -05:00
gin_private.h Replace int2/int4 in C code with int16/int32 2012-06-25 01:51:46 +03:00
gist.h Assorted comment fixes, mostly just typos, but some obsolete statements. 2012-01-29 19:23:56 -05:00
gist_private.h Fix GiST buffering build bug, which caused "failed to re-find parent" errors. 2012-08-16 12:56:24 +03:00
gistscan.h Update copyright notices for year 2012. 2012-01-01 18:01:58 -05:00
hash.h Update copyright notices for year 2012. 2012-01-01 18:01:58 -05:00
heapam.h Add new function log_newpage_buffer. 2012-06-14 10:11:16 -04:00
hio.h Make include files work without having to include other ones first 2012-06-10 12:46:14 +03:00
htup.h Run pgindent on 9.2 source tree in preparation for first 9.3 2012-06-10 15:20:04 -04:00
itup.h Lots of doc corrections. 2012-04-23 22:43:09 -04:00
multixact.h Update copyright notices for year 2012. 2012-01-01 18:01:58 -05:00
nbtree.h Run pgindent on 9.2 source tree in preparation for first 9.3 2012-06-10 15:20:04 -04:00
printtup.h Update copyright notices for year 2012. 2012-01-01 18:01:58 -05:00
reloptions.h Update copyright notices for year 2012. 2012-01-01 18:01:58 -05:00
relscan.h Update copyright notices for year 2012. 2012-01-01 18:01:58 -05:00
rewriteheap.h Update copyright notices for year 2012. 2012-01-01 18:01:58 -05:00
rmgr.h Add SP-GiST (space-partitioned GiST) index access method. 2011-12-17 16:42:30 -05:00
sdir.h Update copyright notices for year 2012. 2012-01-01 18:01:58 -05:00
skey.h Update copyright notices for year 2012. 2012-01-01 18:01:58 -05:00
slru.h Run pgindent on 9.2 source tree in preparation for first 9.3 2012-06-10 15:20:04 -04:00
spgist.h Run pgindent on 9.2 source tree in preparation for first 9.3 2012-06-10 15:20:04 -04:00
spgist_private.h Fix race conditions associated with SPGiST redirection tuples. 2012-08-02 15:34:14 -04:00
subtrans.h Update copyright notices for year 2012. 2012-01-01 18:01:58 -05:00
sysattr.h Update copyright notices for year 2012. 2012-01-01 18:01:58 -05:00
transam.h Replace XLogRecPtr struct with a 64-bit integer. 2012-06-24 19:19:45 +03:00
tupconvert.h Update copyright notices for year 2012. 2012-01-01 18:01:58 -05:00
tupdesc.h Recast "ONLY" column CHECK constraints as NO INHERIT 2012-04-20 23:56:57 -03:00
tupmacs.h Update copyright notices for year 2012. 2012-01-01 18:01:58 -05:00
tuptoaster.h Update copyright notices for year 2012. 2012-01-01 18:01:58 -05:00
twophase.h Tighten up includes in sinvaladt.h, twophase.h, proc.h 2012-06-25 18:40:40 -04:00
twophase_rmgr.h Update copyright notices for year 2012. 2012-01-01 18:01:58 -05:00
valid.h Update copyright notices for year 2012. 2012-01-01 18:01:58 -05:00
visibilitymap.h Prevent index-only scans from returning wrong answers under Hot Standby. 2012-04-26 20:00:21 -04:00
xact.h Run pgindent on 9.2 source tree in preparation for first 9.3 2012-06-10 15:20:04 -04:00
xlog.h Allow WAL record header to be split across pages. 2012-06-24 18:35:56 +03:00
xlog_internal.h Remove sanity test in XRecOffIsValid. 2012-06-25 12:14:43 -04:00
xlogdefs.h Replace XLogRecPtr struct with a 64-bit integer. 2012-06-24 19:19:45 +03:00
xlogutils.h Update copyright notices for year 2012. 2012-01-01 18:01:58 -05:00