pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Sacheen Birhade <sacheen.birhade@veritas.com>
To: pgsql-admin@lists.postgresql.org <pgsql-admin@lists.postgresql.org>
Subject: Re: finding best possible new master in case of failover?
Date: Tue, 01 Nov 2022 14:37:17 +0100
Message-ID: <bbeb86a7d33754a961c30ef5f60b8a8457a42a12.camel@cybertec.at> (raw)
In-Reply-To: <MW4PR20MB4525422BFDB66575FF4214D8F3369@MW4PR20MB4525.namprd20.prod.outlook.com>
References: <MW4PR20MB4525422BFDB66575FF4214D8F3369@MW4PR20MB4525.namprd20.prod.outlook.com>

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





view thread (2+ messages)

Message-ID: <bbeb86a7d33754a961c30ef5f60b8a8457a42a12.camel@cybertec.at>
Permalink:  ../bbeb86a7d33754a961c30ef5f60b8a8457a42a12.camel@cybertec.at/
Also on:    postgresql.org/message-id/bbeb86a7d33754a961c30ef5f60b8a8457a42a12.camel@cybertec.at

 · 

reply

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: laurenz.albe@cybertec.at, sacheen.birhade@veritas.com, pgsql-admin@lists.postgresql.org
  Subject: Re: finding best possible new master in case of failover?
  In-Reply-To: <bbeb86a7d33754a961c30ef5f60b8a8457a42a12.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