Re: suppress empty archive_command warning message

Поиск
Список
Период
Сортировка
От Stephen Frost
Тема Re: suppress empty archive_command warning message
Дата
Msg-id 20210423193809.GL20766@tamriel.snowman.net
обсуждение исходный текст
Ответ на Re: suppress empty archive_command warning message  (Bruce Momjian <bruce@momjian.us>)
Ответы Re: suppress empty archive_command warning message  (Yogesh Jadhav <pgyogesh@outlook.com>)
Список pgsql-novice
Greetings,

* Bruce Momjian (bruce@momjian.us) wrote:
> On Fri, Apr 23, 2021 at 08:48:39PM +0200, Pavel Tide wrote:
> > Is there a way to suppress the WARNING that is thrown in PG logs if
> > archive_mode is enabled but the archive command is empty? Maybe some
> > configuration key which I have overlooked?
>
> Have you tried putting "/bin/true" in there, for non-Windows?

Erm, that would cause all WAL to just be silently thrown away..  To have
the same behavior as having it be unset, you'd set it to '/bin/false'.

Of course, which you want depends, but generally you should be using a
real archive command to archive your WAL, not throwing it away.

Thanks,

Stephen

Вложения

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

Предыдущее
От: Keith
Дата:
Сообщение: Re: suppress empty archive_command warning message
Следующее
От: Yogesh Jadhav
Дата:
Сообщение: Re: suppress empty archive_command warning message