public inbox for [email protected]
help / color / mirror / Atom feedFrom: Justin Pryzby <[email protected]>
To: Dilip Kumar <[email protected]>
Cc: Bharath Rupireddy <[email protected]>
Cc: [email protected]
Subject: Re: Emit "checkpoint skipped because system is idle" message at LOG level if log_checkpoints is set
Date: Wed, 5 Jan 2022 17:18:06 -0600
Message-ID: <[email protected]> (raw)
In-Reply-To: <CAFiTN-u6ZYke5StW9G1+gVS5S3fNwC13RC3=dHpLuuY2+qRGMA@mail.gmail.com>
References: <CALj2ACX9LPadCNACDZ3JykDT-6sfPrPchXTLyNHP3cbwyJYjsg@mail.gmail.com>
<CAFiTN-u6ZYke5StW9G1+gVS5S3fNwC13RC3=dHpLuuY2+qRGMA@mail.gmail.com>
On Wed, Jan 05, 2022 at 10:45:06AM +0530, Dilip Kumar wrote:
> On Wed, Jan 5, 2022 at 10:24 AM Bharath Rupireddy <[email protected]> wrote:
> >
> > Postgres server emits a message at DEBUG1 level when it skips a
> > checkpoint. At times, developers might be surprised after figuring out
> > from server logs that there were no checkpoints happening at all
> > during a certain period of time when DEBUG1 messages aren't captured.
> > How about emitting the message at LOG level if log_checkpoints is set?
> > Patch attached.
>
> +1 to convert to LOG when log_checkpoints is set.
I think it would be odd to write logs of increased severity, for the case where
we did not do anything. I think it really is a debug log.
I don't think the log level should be changed to avoid "developer" confusion,
as you said (I'm not sure if you mean a postgres developer or an application
developer, though).
Is there any evidence that this has caused user confusion in the last 4 years ?
|commit 6ef2eba3f57f17960b7cd4958e18aa79e357de2f
|Author: Andres Freund <[email protected]>
|Date: Thu Dec 22 11:31:50 2016 -0800
|
| Skip checkpoints, archiving on idle systems.
Note that logging a message may not be benign ; I think it could cause the
disks to spin up, that would othewise have been in power saving mode,
especially if you log to syslog, which can issue fsync. Also, part of the
argument for enabling log_checkpoint by default was that a small, quiescent
instance would not write logs every 5 minutes.
--
Justin
view thread (4+ messages)
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: [email protected]
Cc: [email protected], [email protected], [email protected], [email protected]
Subject: Re: Emit "checkpoint skipped because system is idle" message at LOG level if log_checkpoints is set
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox