Re: Does pg_ctl promote wait for pending WAL? - Mailing list pgsql-general

From Tatsuo Ishii
Subject Re: Does pg_ctl promote wait for pending WAL?
Date
Msg-id 20210129.164741.498831602021252557.t-ishii@sraoss.co.jp
Whole thread Raw
In response to Re: Does pg_ctl promote wait for pending WAL?  (Michael Paquier <michael@paquier.xyz>)
List 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 by date:

Previous
From: Michael Paquier
Date:
Subject: Re: Does pg_ctl promote wait for pending WAL?
Next
From: Laurenz Albe
Date:
Subject: Re: AW: running vacuumlo periodically?