From: Michael Paquier <michael@paquier.xyz>
To: Shawn Mulloney <smolloney@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Reconnecting a slave to a newly-promoted master
Date: Tue, 10 Jul 2018 17:05:12 +0900
Message-ID: <20180710080512.GL1661@paquier.xyz> (raw)
In-Reply-To: <CALYQ6UWzV91_h0U7nLyxXghO98iC92JNJdPVRjeTFrYo_+pj5Q@mail.gmail.com>
References: <CALYQ6UWzV91_h0U7nLyxXghO98iC92JNJdPVRjeTFrYo_+pj5Q@mail.gmail.com>
On Mon, Jul 09, 2018 at 05:58:53PM -0700, Shawn Mulloney wrote:
> There are three PostgreSQL machines: A, B, and C. B and C are slaves off of
> the master, A. A fails, and B is promoted to being the new master. Can C
> just be pointed at A and have it "just work"?
In your question I am pretty sure that you mean "B" instead of "A" as
"A" has died and is off the grid. The answer to that question would be
perhaps no, as if C could have replayed WAL ahead of B in which case you
could finish with a corrupted C instance if trying to reconnect it
directly to the promoted B.
--
Michael
Attachments:
signature.asc (application/pgp-signature, 832B) download
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-general@postgresql.org
Cc: michael@paquier.xyz, smolloney@gmail.com
Subject: Re: Reconnecting a slave to a newly-promoted master
In-Reply-To: <20180710080512.GL1661@paquier.xyz>
References: <CALYQ6UWzV91_h0U7nLyxXghO98iC92JNJdPVRjeTFrYo_+pj5Q@mail.gmail.com> <20180710080512.GL1661@paquier.xyz>
* 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