Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dpNYL-0001Ne-Vc for pgsql-admin@arkaria.postgresql.org; Tue, 05 Sep 2017 23:46:46 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dpNYL-0001bl-I8 for pgsql-admin@arkaria.postgresql.org; Tue, 05 Sep 2017 23:46:45 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dp8oU-0007mK-LS for pgsql-admin@postgresql.org; Tue, 05 Sep 2017 08:02:26 +0000 Received: from n3.nabble.com ([162.255.23.22]) by makus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dp8oO-0000Q5-0M for pgsql-admin@postgresql.org; Tue, 05 Sep 2017 08:02:25 +0000 Received: from n3.nabble.com (localhost [127.0.0.1]) by n3.nabble.com (Postfix) with ESMTP id CEEEB8394D9B for ; Tue, 5 Sep 2017 01:02:18 -0700 (MST) Date: Tue, 5 Sep 2017 01:02:18 -0700 (MST) From: Ranjan Gajare To: pgsql-admin@postgresql.org Message-ID: <1504598538845-0.post@n3.nabble.com> In-Reply-To: References: Subject: Re: pg_current_xlog*_location and pg_stat_replication.replay_location > 0 for synced replication connection MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org 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