Fix amcheck's handling of incomplete root splits in B-tree
Heikki Linnakangas <heikki.linnakangas@iki.fi>
Author:
Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: 2025-12-02T19:10:51Z
Releases:
19 (unreleased)
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
Files
| Path | Change | +/− |
|---|---|---|
| contrib/amcheck/verify_nbtree.c | modified | +1 −1 |
| src/test/modules/nbtree/expected/nbtree_incomplete_splits.out | modified | +7 −0 |
| src/test/modules/nbtree/Makefile | modified | +1 −1 |
| src/test/modules/nbtree/sql/nbtree_incomplete_splits.sql | modified | +7 −0 |
Discussion
- Bug in amcheck? 13 messages · 2025-10-22 → 2026-01-16