]> git.ipfire.org Git - thirdparty/postgresql.git/commit
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:16:13 +0000 (21:16 +0200)
commita4cb21ea9cd759761006b62f8247fd4dabce01e6
treec641de9c303849fb8488432b69483c5e1818512c
parent2d5b97b8c6542791604e5422ca5d90b011af70a1
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