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: Add a test for incomplete splits in B-tree indexes
Date: Tue, 02 Dec 2025 19:27:03 +0000
Message-ID: <E1vQW1e-002Tby-28@gemulon.postgresql.org> (raw)

Add a test for incomplete splits in B-tree indexes

To increase our test coverage in general, and because I will add onto
this in the next commit to also test amcheck with incomplete splits.

This is copied from the similar test we had for GIN indexes. B-tree's
incomplete splits work similarly to GIN's, so with small changes, the
same test works for B-tree too.

Reviewed-by: Peter Geoghegan <pg@bowt.ie>
Discussion: https://www.postgresql.org/message-id/abd65090-5336-42cc-b768-2bdd66738404@iki.fi

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/1e4e5783e7d77adb283ae7fa1ac99b0910a041b2

Modified Files
--------------
src/backend/access/nbtree/nbtinsert.c              |   9 ++
src/test/modules/meson.build                       |   1 +
src/test/modules/nbtree/Makefile                   |  28 ++++
.../nbtree/expected/nbtree_incomplete_splits.out   | 179 +++++++++++++++++++++
src/test/modules/nbtree/meson.build                |  16 ++
.../nbtree/sql/nbtree_incomplete_splits.sql        | 134 +++++++++++++++
6 files changed, 367 insertions(+)



Message-ID: <E1vQW1e-002Tby-28@gemulon.postgresql.org>
Permalink:  ../E1vQW1e-002Tby-28@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1vQW1e-002Tby-28@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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: heikki.linnakangas@iki.fi
  Subject: Re: pgsql: Add a test for incomplete splits in B-tree indexes
  In-Reply-To: <E1vQW1e-002Tby-28@gemulon.postgresql.org>
  References: <E1vQW1e-002Tby-28@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