repmgrd: fix more PostgreSQL 10 WAL function renamings

This commit is contained in:
Ian Barwick
2017-05-22 22:25:07 +09:00
parent 57fae00844
commit 333083869b

View File

@@ -725,7 +725,7 @@ witness_monitor(void)
" replication_lag, apply_lag )" " replication_lag, apply_lag )"
" VALUES(%d, %d, " " VALUES(%d, %d, "
" '%s'::TIMESTAMP WITH TIME ZONE, NULL, " " '%s'::TIMESTAMP WITH TIME ZONE, NULL, "
" pg_catalog.pg_current_wal_location(), NULL, " " pg_catalog.pg_current_wal_lsn(), NULL, "
" 0, 0) ", " 0, 0) ",
get_repmgr_schema_quoted(my_local_conn), get_repmgr_schema_quoted(my_local_conn),
master_options.node, master_options.node,
@@ -1207,7 +1207,7 @@ standby_monitor(void)
*/ */
if (server_version_num >= 100000) 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 else
sqlquery_snprintf(sqlquery, "SELECT pg_catalog.pg_current_xlog_location()"); sqlquery_snprintf(sqlquery, "SELECT pg_catalog.pg_current_xlog_location()");