Re: Avoiding another needless ERROR during nbtree page deletion
Greg Stark <stark@mit.edu>
From: Greg Stark <stark@mit.edu>
To: Peter Geoghegan <pg@bowt.ie>
Cc: Heikki Linnakangas <hlinnaka@iki.fi>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2023-06-01T10:47:40Z
Lists: pgsql-hackers
On Mon, May 22, 2023, 12:31 Peter Geoghegan <pg@bowt.ie> wrote: > On Sun, May 21, 2023 at 11:51 PM Heikki Linnakangas <hlinnaka@iki.fi> > wrote: > > Any idea what might cause this corruption? > > Not really, no. As far as I know the specific case that was brought to > my attention (that put me on the path to writing this patch) was just > an isolated incident. The interesting detail (if any) is that it was a > relatively recent version of Postgres (13), and that there were no > other known problems. This means that there is a plausible remaining > gap in the defensive checks in nbtree VACUUM on recent versions -- we > might have expected to avoid a hard ERROR in some other way, from one > of the earlier checks, but that didn't happen on at least one > occasion. > What error would one expect to see? I did have a case where vacuum was erroring on a btree in $previous_job.
Commits
-
nbtree VACUUM: cope with right sibling link corruption.
- 5abff197cc3e 16.0 landed
- 6983a511288c 15.4 landed
- 322c9b340ada 14.9 landed
- 8f876d15ca93 13.12 landed
- 188dad680e8f 12.16 landed
- a72b503ca828 11.21 landed
-
Backpatch nbtree page deletion hardening.
- 43e409cea468 13.9 cited
-
nbtree VACUUM: Cope with buggy opclasses.
- 5b861baa550a 14.0 cited