Re: Does pg_ctl promote wait for pending WAL?

Поиск
Список
Период
Сортировка
От Tatsuo Ishii
Тема Re: Does pg_ctl promote wait for pending WAL?
Дата
Msg-id 20210129.164741.498831602021252557.t-ishii@sraoss.co.jp
обсуждение исходный текст
Ответ на Re: Does pg_ctl promote wait for pending WAL?  (Michael Paquier <michael@paquier.xyz>)
Список pgsql-general
Hi Michael,

> To answer to your question based on the code, you can check for the
> code paths calling CheckForStandbyTrigger() in xlog.c when it comes to
> promotion detection in the WAL replay.  In short,
> WaitForWALToBecomeAvailable() tells that after the promotion is 
> detected in the startup process, then recovery would still try to
> replay as much WAL as possible from the archives or pg_wal before a
> failover.

Great. That should make my life a lot easier. I will look into the
code to confirm it.

Best regards,
--
Tatsuo Ishii
SRA OSS, Inc. Japan
English: http://www.sraoss.co.jp/index_en.php
Japanese:http://www.sraoss.co.jp



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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: Does pg_ctl promote wait for pending WAL?
Следующее
От: Laurenz Albe
Дата:
Сообщение: Re: AW: running vacuumlo periodically?