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)
commitff33071aa8f9111b16127c8b2e703db46e13e2de
tree23b86c5c39cf5a3f73dc281a865e6f642339fd0b
parent4c75b8990327c19adbe5a905d2e7d719ea01d415
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