From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Prince Pathria <prince.pathria@goevive.com>
To: pgsql-admin@postgresql.org
Subject: Re: Archive clean up command in recovery.conf
Date: Mon, 24 Sep 2018 08:22:04 +0200
Message-ID: <2779539bc6e5413b71064f92b44e2a7f6bdfcde0.camel@cybertec.at> (raw)
In-Reply-To: <CAON0Day9vqmy3HSqB2eskSN-uxUuQpW+eCvdH1rRt+YO=39sfg@mail.gmail.com>
References: <CAON0Day9vqmy3HSqB2eskSN-uxUuQpW+eCvdH1rRt+YO=39sfg@mail.gmail.com>
Prince Pathria wrote:
> I have a doubt, assume that I have 3 psql10 nodes (n1, n2, n3)
> and n1 is master ,n2+n3 are standbys. In n1 archive mode is on,
> and wal_logs are going to volume which is shared with n2 and n3.
> If archive_cleanup_command = 'pg_archivecleanup /path/to/nfs %r'
> is enabled on both n2 and n3.
>
> Can a situation might arise that a wal segment required by n2
> is already cleaned up by n3?
Yes, that pg_archivecleanup is a bad idea, because the faster
standby might remove files that the slower one still needs.
> If yes, then how to mitigate it?
Use streaming replication and replication slots.
Yours,
Laurenz Albe
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: laurenz.albe@cybertec.at, prince.pathria@goevive.com
Subject: Re: Archive clean up command in recovery.conf
In-Reply-To: <2779539bc6e5413b71064f92b44e2a7f6bdfcde0.camel@cybertec.at>
References: <CAON0Day9vqmy3HSqB2eskSN-uxUuQpW+eCvdH1rRt+YO=39sfg@mail.gmail.com> <2779539bc6e5413b71064f92b44e2a7f6bdfcde0.camel@cybertec.at>
* 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