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

From Heikki Linnakangas
Subject pgsql: Fix amcheck's handling of incomplete root splits in B-tree
Date
Msg-id E1vQW1e-002Tc0-2B@gemulon.postgresql.org
Whole thread Raw
List 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@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(-)


pgsql-committers by date:

Previous
From: Nathan Bossart
Date:
Subject: pgsql: Show size of DSAs and dshashes in pg_dsm_registry_allocations.
Next
From: Nathan Bossart
Date:
Subject: pgsql: Use LW_SHARED in dsa.c where possible.