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:19 +0000 (21:15 +0200)
commit5a2d1df007182ee4b61530bf798f1cb48376d3c5
tree68b4122e5e72a59830324b2f80feafe1a001e366
parentc090965036631775942f5e4ff3c836fc6003c819
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