From 333083869b9a0057bea95b3c8e8cfe334973a54f Mon Sep 17 00:00:00 2001 From: Ian Barwick Date: Mon, 22 May 2017 22:25:07 +0900 Subject: [PATCH] repmgrd: fix more PostgreSQL 10 WAL function renamings --- repmgrd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/repmgrd.c b/repmgrd.c index c1429ac2..62bca54e 100644 --- a/repmgrd.c +++ b/repmgrd.c @@ -725,7 +725,7 @@ witness_monitor(void) " replication_lag, apply_lag )" " VALUES(%d, %d, " " '%s'::TIMESTAMP WITH TIME ZONE, NULL, " - " pg_catalog.pg_current_wal_location(), NULL, " + " pg_catalog.pg_current_wal_lsn(), NULL, " " 0, 0) ", get_repmgr_schema_quoted(my_local_conn), master_options.node, @@ -1207,7 +1207,7 @@ standby_monitor(void) */ if (server_version_num >= 100000) - sqlquery_snprintf(sqlquery, "SELECT pg_catalog.pg_current_wal_location()"); + sqlquery_snprintf(sqlquery, "SELECT pg_catalog.pg_current_wal_lsn()"); else sqlquery_snprintf(sqlquery, "SELECT pg_catalog.pg_current_xlog_location()");