nbtree VACUUM: Cope with buggy opclasses.
authorPeter Geoghegan <pg@bowt.ie>
Tue, 23 Mar 2021 23:09:51 +0000 (16:09 -0700)
committerPeter Geoghegan <pg@bowt.ie>
Tue, 23 Mar 2021 23:09:51 +0000 (16:09 -0700)
commit5b861baa550a369e04bf67fbe83f3a5a8c742fb4
tree3b455ad3782b2b7aefe80f1e63f7f16f48509a9a
parent87d90ac61fa113ffc886efcdb391c522c1982991
nbtree VACUUM: Cope with buggy opclasses.

Teach nbtree VACUUM to press on with vacuuming in the event of a page
deletion attempt that fails to "re-find" a downlink for its child/target
page.

There is no good reason to treat this as an irrecoverable error.  But
there is a good reason not to: pressing on at this point removes any
question of VACUUM not making progress solely due to misbehavior from
user-defined operator class code.

Discussion: https://postgr.es/m/CAH2-Wzma5G9CTtMjbrXTwOym+U=aWg-R7=-htySuztgoJLvZXg@mail.gmail.com
src/backend/access/nbtree/nbtpage.c