]> 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:15 +0000 (19:50 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 1 Nov 2006 19:50:15 +0000 (19:50 +0000)
commit4e4c165dad573f8fa186a09e755c4940dc730416
tree58f0a564c87e6bd869591dd6dc900a2d2ac18c11
parentc4c008226290e10f1275d710587e1bae047fafb4
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