postgresql/contrib/amcheck
Noah Misch 6ec9e9975e 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
2023-10-30 14:46:05 -07:00
..
expected Teach contrib/amcheck to check the unique constraint violation 2023-10-28 00:21:23 +03:00
sql Teach contrib/amcheck to check the unique constraint violation 2023-10-28 00:21:23 +03:00
t amcheck: Distinguish interrupted page deletion from corruption. 2023-10-30 14:46:05 -07:00
.gitignore
amcheck--1.0--1.1.sql
amcheck--1.0.sql
amcheck--1.1--1.2.sql
amcheck--1.2--1.3.sql
amcheck--1.3--1.4.sql Teach contrib/amcheck to check the unique constraint violation 2023-10-28 00:21:23 +03:00
amcheck.control Teach contrib/amcheck to check the unique constraint violation 2023-10-28 00:21:23 +03:00
Makefile amcheck: Distinguish interrupted page deletion from corruption. 2023-10-30 14:46:05 -07:00
meson.build amcheck: Distinguish interrupted page deletion from corruption. 2023-10-30 14:46:05 -07:00
verify_heapam.c
verify_nbtree.c amcheck: Distinguish interrupted page deletion from corruption. 2023-10-30 14:46:05 -07:00