Re: Don't wake up to check trigger file if none is configured

Поиск
Список
Период
Сортировка
От Jeff Janes
Тема Re: Don't wake up to check trigger file if none is configured
Дата
Msg-id CAMkU=1zudXwGfYEs_ctbiCxayzmA2DKJLf472C6UapiAzPGOtQ@mail.gmail.com
обсуждение исходный текст
Ответ на Don't wake up to check trigger file if none is configured  (Jeff Janes <jeff.janes@gmail.com>)
Список pgsql-hackers
On Sat, Nov 24, 2018 at 11:29 AM Jeff Janes <jeff.janes@gmail.com> wrote:
A streaming replica waiting on WAL from the master will wake up every 5 seconds to check for a trigger file.  This is pointless if no trigger file has been configured.

The attached patch suppresses the timeout when there is no trigger file configured.

Rebased over the removal of recovery.conf and renaming of TriggerFile.

If the promote_trigger_file param is someday made responsive to SIGHUP,  I think this will just continue to do the right thing without further modification.

Cheers,

Jeff
Вложения

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: pgsql: Add WL_EXIT_ON_PM_DEATH pseudo-event.
Следующее
От: Laurenz Albe
Дата:
Сообщение: Re: Updated backup APIs for non-exclusive backups