]> granicus.if.org Git - postgresql/commit
Fix "failed to re-find parent key" btree VACUUM failure by tweaking
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 1 Nov 2006 19:50:08 +0000 (19:50 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 1 Nov 2006 19:50:08 +0000 (19:50 +0000)
commitb4f5429fa84d08a6466f49b15d2586df9f183eb5
tree44827c665fbe6c69694531de2dcfeb76470f3a45
parent3aba3aa5b442213c2ab6fef079c9ce9356a96f91
Fix "failed to re-find parent key" btree VACUUM failure by tweaking
_bt_pagedel to recover from the failure: just search the whole parent level
if searching to the right fails.  This does nothing for the underlying problem
that index keys became out-of-order in the grandparent level.  However, we
believe that there is no other consequence worse than slightly inefficient
searching, so this narrow patch seems like the safest solution for the back
branches.
src/backend/access/nbtree/README
src/backend/access/nbtree/nbtinsert.c
src/backend/access/nbtree/nbtpage.c