pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Melanie Plageman <melanieplageman@gmail.com>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Count pages set all-visible and all-frozen in VM during vacuum
Date: Tue, 17 Dec 2024 19:21:18 +0000
Message-ID: <E1tNd8A-0004wB-4P@gemulon.postgresql.org> (raw)

Count pages set all-visible and all-frozen in VM during vacuum

Heap vacuum already counts and logs pages with newly frozen tuples. Now
count and log the number of pages newly set all-visible and all-frozen
in the visibility map.

Pages that are all-visible but not all-frozen are debt for future
aggressive vacuums. The counts of newly all-visible and all-frozen pages
give us insight into the rate at which this debt is being accrued and
paid down.

Author: Melanie Plageman
Reviewed-by: Masahiko Sawada, Alastair Turner, Nitin Jadhav, Andres Freund, Bilal Yavuz, Tomas Vondra
Discussion: https://postgr.es/m/flat/CAAKRu_ZQe26xdvAqo4weHLR%3DivQ8J4xrSfDDD8uXnh-O-6P6Lg%40mail.gmail.com#6d8d...,
https://postgr.es/m/ctdjzroezaxmiyah3gwbwm67defsrwj2b5fpfs4ku6msfpxeia%40mwjyqlhwr2wu

Branch
------
master

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

Modified Files
--------------
src/backend/access/heap/vacuumlazy.c | 123 +++++++++++++++++++++++++++++++----
1 file changed, 111 insertions(+), 12 deletions(-)



Message-ID: <E1tNd8A-0004wB-4P@gemulon.postgresql.org>
Permalink:  ../E1tNd8A-0004wB-4P@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1tNd8A-0004wB-4P@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 using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: melanieplageman@gmail.com, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Count pages set all-visible and all-frozen in VM during vacuum
  In-Reply-To: <E1tNd8A-0004wB-4P@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