]> git.ipfire.org Git - thirdparty/postgresql.git/commit
amcheck: Distinguish interrupted page deletion from corruption.
authorNoah Misch <noah@leadboat.com>
Mon, 30 Oct 2023 21:46:05 +0000 (14:46 -0700)
committerNoah Misch <noah@leadboat.com>
Mon, 30 Oct 2023 21:46:09 +0000 (14:46 -0700)
commite04509f3246df6cfd96ff5a47f7facd459c72f2b
treeefb6d6fb8aa222666306c6d0a0598659f3df5ab2
parentc804ffb5622b5efe7bda78570aa1911073a7491d
amcheck: Distinguish interrupted page deletion from corruption.

This prevents false-positive reports about "the first child of leftmost
target page is not leftmost of its level", "block %u is not leftmost"
and "left link/right link pair".  They appeared if amcheck ran before
VACUUM cleaned things, after a cluster exited recovery between the
first-stage and second-stage WAL records of a deletion.  Back-patch to
v11 (all supported versions).

Reviewed by Peter Geoghegan.

Discussion: https://postgr.es/m/20231005025232.c7.nmisch@google.com
contrib/amcheck/verify_nbtree.c