Re: finding best possible new master in case of failover? - Mailing list pgsql-admin

From Laurenz Albe
Subject Re: finding best possible new master in case of failover?
Date
Msg-id bbeb86a7d33754a961c30ef5f60b8a8457a42a12.camel@cybertec.at
Whole thread Raw
In response to finding best possible new master in case of failover?  (Sacheen Birhade <sacheen.birhade@veritas.com>)
List pgsql-admin
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



pgsql-admin by date:

Previous
From: Laurenz Albe
Date:
Subject: Re: [External] Re: WAL Replication query
Next
From: Ron
Date:
Subject: Re: [External] Re: WAL Replication query