pgsql: Fix amcheck's handling of incomplete root splits in B-tree

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-002TcA-2T@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
------
REL_17_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/5a2d1df007182ee4b61530bf798f1cb48376d3c5

Modified Files
--------------
contrib/amcheck/verify_nbtree.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Browse pgsql-committers by date

  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.