Fix amcheck's handling of incomplete root splits in B-tree
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Tue, 2 Dec 2025 19:10:51 +0000 (21:10 +0200)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Tue, 2 Dec 2025 19:15:43 +0000 (21:15 +0200)
commitf2a6df9fd56dd8a49c91a85722eac0a62d0578c8
tree81e10faf7ee02d890529e18350d71d0da6ae9953
parent4d288e33b957ce5023dd1ec24b53f02c8a9e8ba0
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 <pg@bowt.ie>
Discussion: https://www.postgresql.org/message-id/abd65090-5336-42cc-b768-2bdd66738404@iki.fi
Backpatch-through: 14
contrib/amcheck/verify_nbtree.c