From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-admin@lists.postgresql.org <pgsql-admin@lists.postgresql.org>
Subject: Re: Recovering standby from primary archived WAL segments
Date: Sat, 4 Nov 2023 09:47:01 -0500
Message-ID: <7a19cf7c-a172-4525-a349-bb254ec1d6e5@gmail.com> (raw)
In-Reply-To: <387721699108418@mail.yandex.com.tr>
References: <27541699100382@mail.yandex.com.tr>
<117cf700fc5db3085f9e294e76f545e3d9ee72f0.camel@cybertec.at>
<8357c11f-388f-436a-bd51-4c4dcbc0ea7a@gmail.com>
<387721699108418@mail.yandex.com.tr>
Well that stinks. And seems a pretty fatal flaw in repmgr.
On 11/4/23 09:41, Ebubekir Büyüktosun wrote:
> Hi Ron,
> I test it using repmgr. So, when i close the postgres and repmgr services
> at the standby site, as i understand, repmgr drops it's replication slot
> so there is no wal accumulation in pg_wal at primary site but archiving is
> working well because it is enabled.
> Thanks for response,
> 04.11.2023, 17:16, "Ron" <ronljohnsonjr@gmail.com>:
>
> 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.
>
> *İyi çalışmalar *
> *Best Regards*
--
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: <7a19cf7c-a172-4525-a349-bb254ec1d6e5@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