pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feedReconnecting a slave to a newly-promoted master
2+ messages / 2 participants
[nested] [flat]
* Reconnecting a slave to a newly-promoted master
@ 2018-07-10 00:58 Shawn Mulloney <smolloney@gmail.com>
2018-07-10 08:05 ` Re: Reconnecting a slave to a newly-promoted master Michael Paquier <michael@paquier.xyz>
0 siblings, 1 reply; 2+ messages in thread
From: Shawn Mulloney @ 2018-07-10 00:58 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org
I'm unclear on the prerequisites for what must be a very common scenario:
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"?
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Reconnecting a slave to a newly-promoted master
2018-07-10 00:58 Reconnecting a slave to a newly-promoted master Shawn Mulloney <smolloney@gmail.com>
@ 2018-07-10 08:05 ` Michael Paquier <michael@paquier.xyz>
0 siblings, 0 replies; 2+ messages in thread
From: Michael Paquier @ 2018-07-10 08:05 UTC (permalink / raw)
To: Shawn Mulloney <smolloney@gmail.com>; +Cc: pgsql-general@lists.postgresql.org
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
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2018-07-10 08:05 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-07-10 00:58 Reconnecting a slave to a newly-promoted master Shawn Mulloney <smolloney@gmail.com>
2018-07-10 08:05 ` Michael Paquier <michael@paquier.xyz>
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