Re: should we enable log_checkpoints out of the box? - Mailing list pgsql-hackers

From Bharath Rupireddy
Subject Re: should we enable log_checkpoints out of the box?
Date
Msg-id CALj2ACU9cK4pCzcqvey71F57PTPsdxtUGmfUnQ7-GR4pTUgmeA@mail.gmail.com
Whole thread Raw
In response to Re: should we enable log_checkpoints out of the box?  (Fujii Masao <masao.fujii@oss.nttdata.com>)
Responses Re: should we enable log_checkpoints out of the box?
List pgsql-hackers
On Thu, Nov 4, 2021 at 10:50 PM Fujii Masao <masao.fujii@oss.nttdata.com> wrote:
>
> On 2021/11/05 0:04, Robert Haas wrote:
> > On Thu, Nov 4, 2021 at 10:59 AM Bharath Rupireddy
> > <bharath.rupireddyforpostgres@gmail.com> wrote:
> >> With log_checkpoints=on, the "./initdb -D data" generates few
> >> checkpoints logs [1]. I hope this is okay as it's a one-time thing per
> >> database cluster. Thoughts?
> >
> > I think you should arrange to suppress that output.
>
> +1

Thanks. I did that.

> > I didn't spot any other problems on a quick read-through.
>
> -bool           log_checkpoints = false;
> +bool           log_checkpoints = true;
>
> It's better to initialize the global variable Log_autovacuum_min_duration
> with 600000 like the above change?

I missed it. Added now.

Please review the attached v2 patch.

Regards,
Bharath Rupireddy.

Attachment

pgsql-hackers by date:

Previous
From: Fujii Masao
Date:
Subject: Re: should we enable log_checkpoints out of the box?
Next
From: Fujii Masao
Date:
Subject: Re: Allow escape in application_name