Re: Unifying VACUUM VERBOSE and log_autovacuum_min_duration output - Mailing list pgsql-hackers

From Peter Geoghegan
Subject Re: Unifying VACUUM VERBOSE and log_autovacuum_min_duration output
Date
Msg-id CAH2-Wzkqta=bACjSFq5BEGqaBJakWTr2pJcjVUpE22D0jnDN4A@mail.gmail.com
Whole thread Raw
In response to Re: Unifying VACUUM VERBOSE and log_autovacuum_min_duration output  (Andres Freund <andres@anarazel.de>)
Responses Re: Unifying VACUUM VERBOSE and log_autovacuum_min_duration output
Re: Unifying VACUUM VERBOSE and log_autovacuum_min_duration output
List pgsql-hackers
On Sat, Dec 11, 2021 at 12:24 PM Andres Freund <andres@anarazel.de> wrote:
> But the ereport is inside an if (verbose), no?

Yes -- in order to report aggressiveness in VACUUM VERBOSE. But the
autovacuum case still reports verbose-ness, in the same way as it
always has -- in that same LOG entry. We don't want to repeat
ourselves in the VERBOSE case, which will have already indicated its
verboseness in the up-front ereport().

In other words, every distinct case reports on its aggressiveness
exactly once per call into lazyvacuum.c. In roughly the same way as it
works on HEAD.

-- 
Peter Geoghegan



pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: Unifying VACUUM VERBOSE and log_autovacuum_min_duration output
Next
From: Peter Geoghegan
Date:
Subject: Re: Unifying VACUUM VERBOSE and log_autovacuum_min_duration output