pgsql: amcheck: Distinguish interrupted page deletion from corruption.

Поиск
Список
Период
Сортировка
От Noah Misch
Тема pgsql: amcheck: Distinguish interrupted page deletion from corruption.
Дата
Msg-id E1qxa6G-003AIz-Sd@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
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

Branch
------
REL_12_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/3a205c91665fddf76e333844884354874dc8ae1b

Modified Files
--------------
contrib/amcheck/t/005_pitr.pl   | 88 +++++++++++++++++++++++++++++++++++++++++
contrib/amcheck/verify_nbtree.c | 76 +++++++++++++++++++++++++++++++++--
2 files changed, 160 insertions(+), 4 deletions(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: pgsql: pgindent run to fix commits de64268561 and 5ae2087202a
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: pgsql: Teach contrib/amcheck to check the unique constraint violation