pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Clear up issue with FSM and oldest bpto.xact.
3+ messages / 1 participants
[nested] [flat]

* pgsql: Clear up issue with FSM and oldest bpto.xact.
@ 2020-05-01 19:21  Peter Geoghegan <pg@bowt.ie>
  0 siblings, 0 replies; 3+ messages in thread

From: Peter Geoghegan @ 2020-05-01 19:21 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/573478564705a801f7313bb793f05932cb875528

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



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* pgsql: Clear up issue with FSM and oldest bpto.xact.
@ 2020-05-01 19:21  Peter Geoghegan <pg@bowt.ie>
  0 siblings, 0 replies; 3+ messages in thread

From: Peter Geoghegan @ 2020-05-01 19:21 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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(-)



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* pgsql: Clear up issue with FSM and oldest bpto.xact.
@ 2020-05-01 19:21  Peter Geoghegan <pg@bowt.ie>
  0 siblings, 0 replies; 3+ messages in thread

From: Peter Geoghegan @ 2020-05-01 19:21 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/69cf853fe798c6d590db892d80677e45609e3395

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



^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2020-05-01 19:21 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2020-05-01 19:21 pgsql: Clear up issue with FSM and oldest bpto.xact. Peter Geoghegan <pg@bowt.ie>
2020-05-01 19:21 pgsql: Clear up issue with FSM and oldest bpto.xact. Peter Geoghegan <pg@bowt.ie>
2020-05-01 19:21 pgsql: Clear up issue with FSM and oldest bpto.xact. Peter Geoghegan <pg@bowt.ie>

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