pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add per-index stats information in verbose logs of autovacuum
Date: Tue, 23 Mar 2021 04:28:06 +0000
Message-ID: <E1lOYeE-0001Wg-Kj@gemulon.postgresql.org> (raw)

Add per-index stats information in verbose logs of autovacuum

Once a relation's autovacuum is completed, the logs include more
information about this relation state if the threshold of
log_autovacuum_min_duration (or its relation option) is reached, with
for example contents about the statistics of the VACUUM operation for
the relation, WAL and system usage.

This commit adds more information about the statistics of the relation's
indexes, with one line of logs generated for each index.  The index
stats were already calculated, but not printed in the context of
autovacuum yet.  While on it, some refactoring is done to keep track of
the index statistics directly within LVRelStats, simplifying some
routines related to parallel VACUUMs.

Author: Masahiko Sawada
Reviewed-by: Michael Paquier, Euler Taveira
Discussion: https://postgr.es/m/CAD21AoAy6SxHiTivh5yAPJSUE4S=QRPpSZUdafOSz0R+fRcM6Q@mail.gmail.com

Branch
------
master

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

Modified Files
--------------
src/backend/access/heap/vacuumlazy.c | 133 +++++++++++++++++++++--------------
1 file changed, 81 insertions(+), 52 deletions(-)



view thread (6+ messages)  latest in thread

Message-ID: <E1lOYeE-0001Wg-Kj@gemulon.postgresql.org>
Permalink:  ../E1lOYeE-0001Wg-Kj@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1lOYeE-0001Wg-Kj@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: michael@paquier.xyz
  Subject: Re: pgsql: Add per-index stats information in verbose logs of autovacuum
  In-Reply-To: <E1lOYeE-0001Wg-Kj@gemulon.postgresql.org>
  References: <E1lOYeE-0001Wg-Kj@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