change pg_xlog to pg_wal

This commit is contained in:
lsv 2020-07-09 10:46:16 +05:00
parent d5d94bedc5
commit 4e9958e5b3
2 changed files with 9 additions and 5 deletions

View file

@ -1460,6 +1460,7 @@ bool pgServer::PauseReplay()
{
SetReplayPaused(true);
wxString sql = wxT("SELECT pg_xlog_replay_pause()");
if (conn->BackendMinimumVersion(10, 0)) sql = wxT("SELECT pg_wal_replay_pause()");
return conn->ExecuteVoid(sql);
}
@ -1468,6 +1469,7 @@ bool pgServer::ResumeReplay()
{
SetReplayPaused(false);
wxString sql = wxT("SELECT pg_xlog_replay_resume()");
if (conn->BackendMinimumVersion(10, 0)) sql = wxT("SELECT pg_wal_replay_resume()");
return conn->ExecuteVoid(sql);
}