From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-admin@lists.postgresql.org
Subject: Re: Recovering standby from primary archived WAL segments
Date: Sat, 4 Nov 2023 09:16:19 -0500
Message-ID: <8357c11f-388f-436a-bd51-4c4dcbc0ea7a@gmail.com> (raw)
In-Reply-To: <117cf700fc5db3085f9e294e76f545e3d9ee72f0.camel@cybertec.at>
References: <27541699100382@mail.yandex.com.tr>
<117cf700fc5db3085f9e294e76f545e3d9ee72f0.camel@cybertec.at>
On 11/4/23 08:42, Laurenz Albe wrote:
> On Sat, 2023-11-04 at 15:46 +0300, Ebubekir Büyüktosun wrote:
>> I want to ask how we should configure primary and/or standby servers in case of need
>> to recover the standby server from primary archived WAL segments.
>>
>> If it is possible, how primary and/or standby servers must be configured?
> Set "restore_command" on the standby.
When using physical replication and a replication slot still exists in
pg_replication_slots, won't the WAL files "just" accumulate in pg_wal/ until
Pg on the replica is restarted? (I just tested that, and it seems to work.)
--
Born in Arizona, moved to Babylonia.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: ronljohnsonjr@gmail.com, pgsql-admin@lists.postgresql.org
Subject: Re: Recovering standby from primary archived WAL segments
In-Reply-To: <8357c11f-388f-436a-bd51-4c4dcbc0ea7a@gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox