pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Geoghegan <pg@bowt.ie>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix nbtree page deletion error messages.
Date: Tue, 02 Mar 2021 21:03:48 +0000
Message-ID: <E1lHCBI-0008IS-9y@gemulon.postgresql.org> (raw)

Fix nbtree page deletion error messages.

Adjust some "can't happen" error messages that assumed that the page
deletion target page must be a half-dead page.  This assumption was
wrong in the case of an internal target page.  Simply refer to these
pages as the target page instead.

Internal pages are never marked half-dead.  There is exactly one
half-dead page for each subtree undergoing deletion.  The half-dead page
is also the target subtree's leaf-level page.  This has been the case
since commit efada2b8, which totally overhauled nbtree page deletion.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/3d8d5787a358156edaa7782f0c88e231af974a01

Modified Files
--------------
src/backend/access/nbtree/nbtpage.c | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)



Message-ID: <E1lHCBI-0008IS-9y@gemulon.postgresql.org>
Permalink:  ../E1lHCBI-0008IS-9y@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1lHCBI-0008IS-9y@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: pg@bowt.ie
  Subject: Re: pgsql: Fix nbtree page deletion error messages.
  In-Reply-To: <E1lHCBI-0008IS-9y@gemulon.postgresql.org>
  References: <E1lHCBI-0008IS-9y@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