pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Daniel Gustafsson <dgustafsson@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix autovacuum cost debug logging
Date: Thu, 20 Apr 2023 13:47:32 +0000
Message-ID: <E1ppUdH-00404R-5R@gemulon.postgresql.org> (raw)

Fix autovacuum cost debug logging

Commit 7d71d3dd0 introduced finer grained updates of autovacuum option
changes by increasing the frequency of reading the configuration file.
The debug logging of cost parameter was however changed such that some
initial values weren't logged.  Fix by changing logging to use the old
frequency of logging regardless of them changing.

Also avoid taking a log for rendering the log message unless the set
loglevel is such that the log entry will be emitted.

Author: Masahiko Sawada <sawada.mshk@gmail.com>
Discussion: https://postgr.es/m/CAD21AoBS7o6Ljt_vfqPQPf67AhzKu3fR0iqk8B=vVYczMugKMQ@mail.gmail.com

Branch
------
master

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

Modified Files
--------------
src/backend/postmaster/autovacuum.c | 15 +++++----------
1 file changed, 5 insertions(+), 10 deletions(-)



Message-ID: <E1ppUdH-00404R-5R@gemulon.postgresql.org>
Permalink:  ../E1ppUdH-00404R-5R@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1ppUdH-00404R-5R@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: dgustafsson@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Fix autovacuum cost debug logging
  In-Reply-To: <E1ppUdH-00404R-5R@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