Re: finding best possible new master in case of failover?

From: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
To: Sacheen Birhade <sacheen(dot)birhade(at)veritas(dot)com>, "pgsql-admin(at)lists(dot)postgresql(dot)org" <pgsql-admin(at)lists(dot)postgresql(dot)org>
Subject: Re: finding best possible new master in case of failover?
Date: 2022-11-01 13:37:17
Message-ID: bbeb86a7d33754a961c30ef5f60b8a8457a42a12.camel@cybertec.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Ron 2022-11-01 13:49:52 Re: [External] Re: WAL Replication query
Previous Message Laurenz Albe 2022-11-01 13:34:42 Re: [External] Re: WAL Replication query