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: nbtree VACUUM: Cope with buggy opclasses.
Date: Tue, 23 Mar 2021 23:11:27 +0000
Message-ID: <E1lOqBL-0000mr-17@gemulon.postgresql.org> (raw)

nbtree VACUUM: Cope with buggy opclasses.

Teach nbtree VACUUM to press on with vacuuming in the event of a page
deletion attempt that fails to "re-find" a downlink for its child/target
page.

There is no good reason to treat this as an irrecoverable error.  But
there is a good reason not to: pressing on at this point removes any
question of VACUUM not making progress solely due to misbehavior from
user-defined operator class code.

Discussion: https://postgr.es/m/CAH2-Wzma5G9CTtMjbrXTwOym+U=aWg-R7=-htySuztgoJLvZXg@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/5b861baa550a369e04bf67fbe83f3a5a8c742fb4

Modified Files
--------------
src/backend/access/nbtree/nbtpage.c | 18 +++++++++++++++++-
1 file changed, 17 insertions(+), 1 deletion(-)



Message-ID: <E1lOqBL-0000mr-17@gemulon.postgresql.org>
Permalink:  ../E1lOqBL-0000mr-17@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1lOqBL-0000mr-17@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: nbtree VACUUM: Cope with buggy opclasses.
  In-Reply-To: <E1lOqBL-0000mr-17@gemulon.postgresql.org>
  References: <E1lOqBL-0000mr-17@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