mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-27 00:46:29 +00:00
repmgrd: fix more PostgreSQL 10 WAL function renamings
This commit is contained in:
@@ -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()");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user