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: Update nbtree LP_DEAD item deletion comments.
Date: Mon, 23 Dec 2019 03:59:33 +0000
Message-ID: <E1ijEsX-00010Y-L7@gemulon.postgresql.org> (raw)

Update nbtree LP_DEAD item deletion comments.

Comments about the consequences of clearing the BTP_HAS_GARBAGE page
flag bit that apply only to VACUUM were added to code that deals with
opportunistic deletion of LP_DEAD items by commit a760893d.  The same
comment block was added to both _bt_delitems_vacuum() and
_bt_delitems_delete().  Correct _bt_delitems_delete()'s copy of the
comment block.

_bt_delitems_delete() reliably deletes items that were found by caller
to have their LP_DEAD bit set.  There is no question about whether or
not unsetting the BTP_HAS_GARBAGE bit can miss some LP_DEAD items that
were set recently.

Also tweak a related section of the nbtree README.

Branch
------
master

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

Modified Files
--------------
src/backend/access/nbtree/README    |  8 ++++----
src/backend/access/nbtree/nbtpage.c | 11 ++---------
2 files changed, 6 insertions(+), 13 deletions(-)



Message-ID: <E1ijEsX-00010Y-L7@gemulon.postgresql.org>
Permalink:  ../E1ijEsX-00010Y-L7@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1ijEsX-00010Y-L7@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: Update nbtree LP_DEAD item deletion comments.
  In-Reply-To: <E1ijEsX-00010Y-L7@gemulon.postgresql.org>
  References: <E1ijEsX-00010Y-L7@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