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: Clear up issue with FSM and oldest bpto.xact.
Date: Fri, 01 May 2020 19:21:30 +0000
Message-ID: <E1jUbE2-0004uy-FV@gemulon.postgresql.org> (raw)

Clear up issue with FSM and oldest bpto.xact.

On further reflection, code comments added by commit b0229f26 slightly
misrepresented how we determine the oldest bpto.xact for the index.
btvacuumpage() does not treat the bpto.xact of a page that it put in the
FSM as a candidate to be the oldest deleted page (the delete-marked page
that has the oldest bpto.xact XID among all pages encountered).

The definition of a deleted page for the purposes of the bpto.xact
calculation is different from the definition used by the bulk delete
statistics.  The bulk delete statistics don't distinguish between pages
that were deleted by the current VACUUM, pages deleted by a previous
VACUUM operation but not yet recyclable/reusable, and pages that are
reusable (though reusable pages are counted separately).

Backpatch: 11-, just like commit b0229f26.

Branch
------
REL_12_STABLE

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

Modified Files
--------------
src/backend/access/nbtree/nbtree.c | 30 +++++++++++++++---------------
1 file changed, 15 insertions(+), 15 deletions(-)



view thread (3+ messages)  latest in thread

Message-ID: <E1jUbE2-0004uy-FV@gemulon.postgresql.org>
Permalink:  ../E1jUbE2-0004uy-FV@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1jUbE2-0004uy-FV@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: Clear up issue with FSM and oldest bpto.xact.
  In-Reply-To: <E1jUbE2-0004uy-FV@gemulon.postgresql.org>
  References: <E1jUbE2-0004uy-FV@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