nbtree VACUUM: Cope with buggy opclasses.

Peter Geoghegan <pg@bowt.ie>

Commit: 5b861baa550a369e04bf67fbe83f3a5a8c742fb4
Author: Peter Geoghegan <pg@bowt.ie>
Date: 2021-03-23T23:09:51Z
Releases: 14.0
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

Files

PathChange+/−
src/backend/access/nbtree/nbtpage.c modified +17 −1

Discussion