Re: should we enable log_checkpoints out of the box?

Поиск
Список
Период
Сортировка
Искать
От
Bruce Momjian
Тема
Re: should we enable log_checkpoints out of the box?
Дата
Msg-id
20211102234646.GB17209@momjian.us
Ответ на
Список
Дерево обсуждения
should we enable log_checkpoints out of the box? Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: should we enable log_checkpoints out of the box? Tom Lane <tgl@sss.pgh.pa.us>
Re: should we enable log_checkpoints out of the box? Andres Freund <andres@anarazel.de>
Re: should we enable log_checkpoints out of the box? Tom Lane <tgl@sss.pgh.pa.us>
Re: should we enable log_checkpoints out of the box? Andres Freund <andres@anarazel.de>
Re: should we enable log_checkpoints out of the box? Tomas Vondra <tomas.vondra@enterprisedb.com>
Re: should we enable log_checkpoints out of the box? Magnus Hagander <magnus@hagander.net>
Re: should we enable log_checkpoints out of the box? Daniel Gustafsson <daniel@yesql.se>
Re: should we enable log_checkpoints out of the box? Jan Wieck <jan@wi3ck.info>
Re: should we enable log_checkpoints out of the box? Michael Banck <michael.banck@credativ.de>
Re: should we enable log_checkpoints out of the box? Bruce Momjian <bruce@momjian.us>
Re: should we enable log_checkpoints out of the box? Tom Lane <tgl@sss.pgh.pa.us>
Re: should we enable log_checkpoints out of the box? Bruce Momjian <bruce@momjian.us>
Re: should we enable log_checkpoints out of the box? Jan Wieck <jan@wi3ck.info>
Re: should we enable log_checkpoints out of the box? Robert Haas <robertmhaas@gmail.com>
Re: should we enable log_checkpoints out of the box? Robert Haas <robertmhaas@gmail.com>
Re: should we enable log_checkpoints out of the box? Bruce Momjian <bruce@momjian.us>
Re: should we enable log_checkpoints out of the box? Robert Haas <robertmhaas@gmail.com>
Re: should we enable log_checkpoints out of the box? Nikolay Samokhvalov <samokhvalov@gmail.com>
Re: should we enable log_checkpoints out of the box? Robert Haas <robertmhaas@gmail.com>
Re: should we enable log_checkpoints out of the box? Jan Wieck <jan@wi3ck.info>
Re: should we enable log_checkpoints out of the box? Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: should we enable log_checkpoints out of the box? Michael Banck <michael.banck@credativ.de>
Re: should we enable log_checkpoints out of the box? Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: should we enable log_checkpoints out of the box? Jan Wieck <jan@wi3ck.info>
Re: should we enable log_checkpoints out of the box? Robert Haas <robertmhaas@gmail.com>
Re: should we enable log_checkpoints out of the box? Bruce Momjian <bruce@momjian.us>
Re: should we enable log_checkpoints out of the box? Bruce Momjian <bruce@momjian.us>
Re: should we enable log_checkpoints out of the box? Vik Fearing <vik@postgresfriends.org>
Re: should we enable log_checkpoints out of the box? Robert Haas <robertmhaas@gmail.com>
Re: should we enable log_checkpoints out of the box? Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: should we enable log_checkpoints out of the box? Andres Freund <andres@anarazel.de>
Re: should we enable log_checkpoints out of the box? Michael Banck <michael.banck@credativ.de>
Re: should we enable log_checkpoints out of the box? Peter Geoghegan <pg@bowt.ie>
Re: should we enable log_checkpoints out of the box? Andrew Dunstan <andrew@dunslane.net>
Re: should we enable log_checkpoints out of the box? Julien Rouhaud <rjuju123@gmail.com>
Re: should we enable log_checkpoints out of the box? David Steele <david@pgmasters.net>
Re: should we enable log_checkpoints out of the box? Jan Wieck <jan@wi3ck.info>
Re: should we enable log_checkpoints out of the box? Nikolay Samokhvalov <samokhvalov@gmail.com>
Re: should we enable log_checkpoints out of the box? Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: should we enable log_checkpoints out of the box? Robert Haas <robertmhaas@gmail.com>
Re: should we enable log_checkpoints out of the box? Peter Geoghegan <pg@bowt.ie>
Re: should we enable log_checkpoints out of the box? Robert Haas <robertmhaas@gmail.com>
Re: should we enable log_checkpoints out of the box? Peter Geoghegan <pg@bowt.ie>
Re: should we enable log_checkpoints out of the box? Nikolay Samokhvalov <samokhvalov@gmail.com>
Re: should we enable log_checkpoints out of the box? Michael Paquier <michael@paquier.xyz>
Re: should we enable log_checkpoints out of the box? Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: should we enable log_checkpoints out of the box? Robert Haas <robertmhaas@gmail.com>
Re: should we enable log_checkpoints out of the box? Fujii Masao <masao.fujii@oss.nttdata.com>
Re: should we enable log_checkpoints out of the box? Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: should we enable log_checkpoints out of the box? Robert Haas <robertmhaas@gmail.com>
Re: should we enable log_checkpoints out of the box? Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: should we enable log_checkpoints out of the box? Robert Haas <robertmhaas@gmail.com>
On Sun, Oct 31, 2021 at 10:24:38PM +0100, Michael Banck wrote:
> On Sun, Oct 31, 2021 at 01:16:33PM -0700, Andres Freund wrote:
> > Shrug. It's based on many years of doing or being around people doing
> > postgres support escalation shifts. And it's not like log_checkpoints
> > incurs meaningful overhead or causes that much log volume.
> 
> It could be a bit of reverse-survivorship-bias, i.e., you're only seeing
> the pathological cases, while 99% of the Postgres installations out
> there just hum along fine without anybody ever having to look at the
> checkpoint entries in the log.
> 
> But yeah, for serious production instances, it makes sense to turn that
> option on, but I'm not convinced it should be the default.

Yes, I agree with this analysis. There is a sense that people who
regularly diagnose Postgres problems want this information in the logs
by default, while the majority of sites might want silent logs for
normal query activity.

I realize in this thread that Robert Haas mentioned foreign key
violations that would like also appear in logs, but those are
ERROR/WARNING etc. messages that can be filtered out with
log_min_message.  I think if we want to offer a more verbose set of
analytic output, by default or not, we might want to relabel them as
something other than LOG messages so they can be filtered out with
log_min_messages.

-- 
  Bruce Momjian          https://momjian.us
  EDB                                      https://enterprisedb.com

  If only the physical world exists, free will is an illusion.



В списке pgsql-hackers по дате отправления
От: Michael Paquier
Дата:
От: Tom Lane
Дата:
FAQ