pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ranjan Gajare <ranjangajare@gmail.com>
To: pgsql-admin@postgresql.org
Subject: Re: pg_current_xlog*_location and pg_stat_replication.replay_location > 0 for synced replication connection
Date: Tue, 5 Sep 2017 01:02:18 -0700 (MST)
Message-ID: <1504598538845-0.post@n3.nabble.com> (raw)
In-Reply-To: <CADD6ONJisGpHK8zwy6=xAWqwBCb4ri_-Pk_QLAdo+8NpSESiyA@mail.gmail.com>
References: <CADD6ONJMkL27K2XEoMH0YHEwJmQ47k08_UshSh1YCo3TWf4GzQ@mail.gmail.com>
	<CADD6ONJisGpHK8zwy6=xAWqwBCb4ri_-Pk_QLAdo+8NpSESiyA@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>

You could query pg_stat_replication on the master, compare sent_location
and replay_location, and if they are the same, the replication is in sync.



--
Sent from: http://www.postgresql-archive.org/PostgreSQL-admin-f2076596.html


-- 
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin



view thread (3+ messages)

Message-ID: <1504598538845-0.post@n3.nabble.com>
Permalink:  ../1504598538845-0.post@n3.nabble.com/
Also on:    postgresql.org/message-id/1504598538845-0.post@n3.nabble.com

 · 

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: ranjangajare@gmail.com
  Subject: Re: pg_current_xlog*_location and pg_stat_replication.replay_location > 0 for synced replication connection
  In-Reply-To: <1504598538845-0.post@n3.nabble.com>

* 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