postgresql/contrib/amcheck
Heikki Linnakangas 7792bdc458 Fix amcheck's handling of half-dead B-tree pages
amcheck incorrectly reported the following error if there were any
half-dead pages in the index:

ERROR:  mismatch between parent key and child high key in index
"amchecktest_id_idx"

It's expected that a half-dead page does not have a downlink in the
parent level, so skip the test.

Reported-by: Konstantin Knizhnik <knizhnik@garret.ru>
Reviewed-by: Peter Geoghegan <pg@bowt.ie>
Reviewed-by: Mihail Nikalayeu <mihailnikalayeu@gmail.com>
Discussion: https://www.postgresql.org/message-id/33e39552-6a2a-46f3-8b34-3f9f8004451f@garret.ru
Backpatch-through: 14
2025-12-02 21:16:06 +02:00
..
expected amcheck: Normalize index tuples containing uncompressed varlena 2024-03-23 23:02:43 +02:00
sql amcheck: Normalize index tuples containing uncompressed varlena 2024-03-23 23:02:43 +02:00
t Backport BackgroundPsql perl test module 2024-06-27 19:01:13 +03:00
.gitignore Add .gitignore to contrib/amcheck. 2017-03-09 22:45:24 -05:00
amcheck--1.0--1.1.sql Add amcheck verification of heap relations belonging to btree indexes. 2018-03-31 19:52:01 -07:00
amcheck--1.0.sql
amcheck--1.1--1.2.sql Allow amcheck to re-find tuples using new search. 2019-03-20 10:41:36 -07:00
amcheck--1.2--1.3.sql Extend amcheck to check heap pages. 2020-10-22 08:44:18 -04:00
amcheck.control Extend amcheck to check heap pages. 2020-10-22 08:44:18 -04:00
Makefile amcheck: Distinguish interrupted page deletion from corruption. 2023-10-30 14:46:08 -07:00
verify_heapam.c amcheck: In verify_heapam, allows tuples with xmin 0. 2023-03-28 16:17:03 -04:00
verify_nbtree.c Fix amcheck's handling of half-dead B-tree pages 2025-12-02 21:16:06 +02:00