Re: should we enable log_checkpoints out of the box?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: should we enable log_checkpoints out of the box?
Дата
Msg-id 927709.1635692359@sss.pgh.pa.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?  (Andres Freund <andres@anarazel.de>)
Re: should we enable log_checkpoints out of the box?  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com> writes:
> How about we enable it out of the box?

No.

The general policy at the moment is that a normally-functioning server
should emit *no* log traffic by default (other than a few messages
at startup and shutdown).  log_checkpoints is a particularly poor
candidate for an exception to that policy, because it would produce so
much traffic.  No DBA would be likely to consider it as anything but
log spam.

> It seems the checkpoint stats, that are emitted to server logs when
> the GUC log_checkpoints is enabled, are so important that a postgres
> database provider would ever want to disable the GUC.

This statement seems ridiculous on its face.  If users need to wait
with bated breath for a checkpoint report, we have something else
we need to fix.

            regards, tom lane



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Bharath Rupireddy
Дата:
Сообщение: should we enable log_checkpoints out of the box?
Следующее
От: Pavel Borisov
Дата:
Сообщение: Re: Feature request for adoptive indexes