| From: | Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Fix amcheck's handling of incomplete root splits in B-tree |
| Date: | 2025-12-02 19:27:03 |
| Message-ID: | E1vQW1e-002Tc0-2B@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
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(at)bowt(dot)ie>
Discussion: https://www.postgresql.org/message-id/abd65090-5336-42cc-b768-2bdd66738404@iki.fi
Backpatch-through: 14
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/6c05ef5729c04d47400660cd994305bc44a3c757
Modified Files
--------------
contrib/amcheck/verify_nbtree.c | 2 +-
src/test/modules/nbtree/Makefile | 2 +-
src/test/modules/nbtree/expected/nbtree_incomplete_splits.out | 7 +++++++
src/test/modules/nbtree/sql/nbtree_incomplete_splits.sql | 7 +++++++
4 files changed, 16 insertions(+), 2 deletions(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Nathan Bossart | 2025-12-02 22:40:48 | pgsql: Use LW_SHARED in dsa.c where possible. |
| Previous Message | Nathan Bossart | 2025-12-02 16:31:25 | pgsql: Show size of DSAs and dshashes in pg_dsm_registry_allocations. |