pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
finding best possible new master in case of failover?
2+ messages / 2 participants
[nested] [flat]

* finding best possible new master in case of failover?
@ 2022-11-01 07:00  Sacheen Birhade <sacheen.birhade@veritas.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Sacheen Birhade @ 2022-11-01 07:00 UTC (permalink / raw)
  To: pgsql-admin@lists.postgresql.org <pgsql-admin@lists.postgresql.org>; Laurenz Albe <laurenz.albe@cybertec.at>

Hi Laurenz & all,

In a multitarget replication (a master with multiple slaves) with asynchronous replication mode,
How can We find best possible new master in case of failover?

Thank in advance.

Thanks,
Sacheen Birhade.

^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: finding best possible new master in case of failover?
@ 2022-11-01 13:37  Laurenz Albe <laurenz.albe@cybertec.at>
  parent: Sacheen Birhade <sacheen.birhade@veritas.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Laurenz Albe @ 2022-11-01 13:37 UTC (permalink / raw)
  To: Sacheen Birhade <sacheen.birhade@veritas.com>; pgsql-admin@lists.postgresql.org <pgsql-admin@lists.postgresql.org>

On Tue, 2022-11-01 at 07:00 +0000, Sacheen Birhade wrote:
> In a multitarget replication (a master with multiple slaves) withasynchronous replication mode, 
> How can We find best possible new master in case of failover?

Pick the one with the latest pg_last_wal_receive_lsn().

Yours,
Laurenz Albe
-- 
Cybertec | https://www.cybertec-postgresql.com





^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2022-11-01 13:37 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2022-11-01 07:00 finding best possible new master in case of failover? Sacheen Birhade <sacheen.birhade@veritas.com>
2022-11-01 13:37 ` Laurenz Albe <laurenz.albe@cybertec.at>

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