pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Heikki Linnakangas <heikki.linnakangas@iki.fi>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix amcheck's handling of incomplete root splits in B-tree
Date: Tue, 02 Dec 2025 19:27:03 +0000
Message-ID: <E1vQW1e-002Tc0-2B@gemulon.postgresql.org> (raw)

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

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(-)



view thread (6+ messages)  latest in thread

Message-ID: <E1vQW1e-002Tc0-2B@gemulon.postgresql.org>
Permalink:  ../E1vQW1e-002Tc0-2B@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1vQW1e-002Tc0-2B@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: heikki.linnakangas@iki.fi, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Fix amcheck's handling of incomplete root splits in B-tree
  In-Reply-To: <E1vQW1e-002Tc0-2B@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox