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 half-dead pages in B-tree indexes
Date: Tue, 02 Dec 2025 19:27:03 +0000
Message-ID: <E1vQW1e-002Tc2-2F@gemulon.postgresql.org> (raw)

Add a test for half-dead pages in B-tree indexes

To increase our test coverage in general, and because I will use this
in the next commit to test a bug we currently have in amcheck.

Reviewed-by: Peter Geoghegan <pg@bowt.ie>
Discussion: https://www.postgresql.org/message-id/33e39552-6a2a-46f3-8b34-3f9f8004451f@garret.ru

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/c085aab2781989f487364fab2978d9ee791559a4

Modified Files
--------------
src/backend/access/nbtree/nbtpage.c                |  7 +++
.../nbtree/expected/nbtree_half_dead_pages.out     | 71 ++++++++++++++++++++++
src/test/modules/nbtree/meson.build                |  1 +
.../modules/nbtree/sql/nbtree_half_dead_pages.sql  | 43 +++++++++++++
4 files changed, 122 insertions(+)



Message-ID: <E1vQW1e-002Tc2-2F@gemulon.postgresql.org>
Permalink:  ../E1vQW1e-002Tc2-2F@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1vQW1e-002Tc2-2F@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 half-dead pages in B-tree indexes
  In-Reply-To: <E1vQW1e-002Tc2-2F@gemulon.postgresql.org>
  References: <E1vQW1e-002Tc2-2F@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