Re: Does pg_ctl promote wait for pending WAL?

From: Tatsuo Ishii <ishii(at)sraoss(dot)co(dot)jp>
To: michael(at)paquier(dot)xyz
Cc: paul(dot)foerster(at)gmail(dot)com, ishii(at)sraoss(dot)co(dot)jp, pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Does pg_ctl promote wait for pending WAL?
Date: 2021-01-29 07:47:41
Message-ID: 20210129.164741.498831602021252557.t-ishii@sraoss.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Laurenz Albe 2021-01-29 09:24:18 Re: AW: running vacuumlo periodically?
Previous Message Michael Paquier 2021-01-29 07:24:51 Re: Does pg_ctl promote wait for pending WAL?