Fix amcheck's handling of incomplete root splits in B-tree
authorHeikki Linnakangas <[email protected]>
Tue, 2 Dec 2025 19:10:51 +0000 (21:10 +0200)
committerHeikki Linnakangas <[email protected]>
Tue, 2 Dec 2025 19:14:53 +0000 (21:14 +0200)
commit50c63ebb05fc850010f571441b0349414e21c87f
treeb0fa031ba6e31608ecc05d69436c110fa46a78bc
parent4061992ea83adbfc6b0e4fa202d314ace83a2458
Fix amcheck's handling of incomplete root splits in B-tree

When the root page is being split, it's normal that root page
according to the metapage is not marked BTP_ROOT. Fix bogus error in
amcheck about that case.

Reviewed-by: Peter Geoghegan <[email protected]>
Discussion: https://www.postgresql.org/message-id/abd65090-5336-42cc-b768-2bdd66738404@iki.fi
Backpatch-through: 14
contrib/amcheck/verify_nbtree.c