Note potential replication lag check improvement

This commit is contained in:
Ian Barwick
2016-06-20 12:23:34 +09:00
parent 5d8b1a3a31
commit 303bb22ee1

View File

@@ -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);