pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: Peter Geoghegan <pg@bowt.ie>
Cc: pgsql-committers <pgsql-committers@lists.postgresql.org>
Subject: Re: pgsql: Add per-index stats information in verbose logs of autovacuum
Date: Tue, 23 Mar 2021 15:22:32 +0900
Message-ID: <YFmJKDbFqPOpL5z6@paquier.xyz> (raw)
In-Reply-To: <CAH2-WzkYgHZzpGOwR14CScJsjaQpvJrEkEfkh_=wGhzLb=yVdQ@mail.gmail.com>
References: <E1lOYeE-0001Wg-Kj@gemulon.postgresql.org>
	<CAH2-WzkYgHZzpGOwR14CScJsjaQpvJrEkEfkh_=wGhzLb=yVdQ@mail.gmail.com>

On Mon, Mar 22, 2021 at 10:36:03PM -0700, Peter Geoghegan wrote:
> It suggests that the index file can shrink. As if the remaining pages
> are left now that the pages we deleted have been returned to the OS. I
> think that this same line of output should look like this instead:
> 
>         index "dups_idx": 1431 pages in total, 1343 newly deleted,
> 1427 currently deleted, 84 reusable

I like the consistency of using "pages:" at the beginning of the line
as all those fields refer to pages, and your formulation makes inclear
what the second, third and fourth items on the line refer to.  What's
newly-deleted?  Tuples?  Pages?  Pages, obviously, if you know what
this is about.

> To be clear, I agree that it would not be sensible to make the
> log_autovacuum_min_duration output 100% consistent with VACUUM
> VERBOSE. I just think that "%u remain" is misleading. It's just that
> one detail.

Saying that, I like your suggestion of using "total" or "in total"
instead of "remain" for the first item.
--
Michael

Attachments:

  signature.asc (application/pgp-signature, 832B) download

view thread (6+ messages)  latest in thread

Message-ID: <YFmJKDbFqPOpL5z6@paquier.xyz>
Permalink:  ../YFmJKDbFqPOpL5z6@paquier.xyz/
Also on:    postgresql.org/message-id/YFmJKDbFqPOpL5z6@paquier.xyz

 · 

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, pg@bowt.ie
  Subject: Re: pgsql: Add per-index stats information in verbose logs of autovacuum
  In-Reply-To: <YFmJKDbFqPOpL5z6@paquier.xyz>
  References: <E1lOYeE-0001Wg-Kj@gemulon.postgresql.org> <CAH2-WzkYgHZzpGOwR14CScJsjaQpvJrEkEfkh_=wGhzLb=yVdQ@mail.gmail.com> <YFmJKDbFqPOpL5z6@paquier.xyz>

* 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