Re: How to get current timeline of host in postgres 10.4? - Mailing list pgsql-admin

From Shreeyansh Dba
Subject Re: How to get current timeline of host in postgres 10.4?
Date
Msg-id CAGDYbUOxxFOVfrfx8EjcAB8FEyeUg7SDNR18U5793qqG0rs63A@mail.gmail.com
Whole thread Raw
In response to How to get current timeline of host in postgres 10.4?  (Debraj Manna <subharaj.manna@gmail.com>)
Responses Re: How to get current timeline of host in postgres 10.4?
List pgsql-admin
Hi Debraj,

Execute below query on Master Side :
select pg_current_wal_lsn();
Execute below query on Slave Side:
using replication protocol (example from version 10.4)
psql -h "$host" -F' ' -c 'IDENTIFY_SYSTEM' 'dbname=replication replication=true'
Hope it helps.




On Fri, Jun 15, 2018 at 9:35 PM, Debraj Manna <subharaj.manna@gmail.com> wrote:
HI

Can someone let me know what is the best way to get current timeline of host (in both master and the slaves) in postgres 10.4?

Thanks,

pgsql-admin by date:

Previous
From: Pavan Teja
Date:
Subject: Re: How to get current timeline of host in postgres 10.4?
Next
From: Debraj Manna
Date:
Subject: Re: How to get current timeline of host in postgres 10.4?