From 303bb22ee13fb3292d246571480004065e3daf0e Mon Sep 17 00:00:00 2001 From: Ian Barwick Date: Mon, 20 Jun 2016 12:23:34 +0900 Subject: [PATCH] Note potential replication lag check improvement --- repmgrd.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/repmgrd.c b/repmgrd.c index a6437cb1..a72c6c35 100644 --- a/repmgrd.c +++ b/repmgrd.c @@ -1040,7 +1040,12 @@ standby_monitor(void) "Replayed WAL newer than received WAL - is this standby connected to its upstream?\n"); } - /* Get master xlog info */ + /* + * Get master xlog position + * + * TODO: investigate whether pg_current_xlog_insert_location() would be a better + * choice; see: https://github.com/2ndQuadrant/repmgr/issues/189 + */ sqlquery_snprintf(sqlquery, "SELECT pg_catalog.pg_current_xlog_location()"); res = PQexec(master_conn, sqlquery);