Adjust function name change in PostgreSQL 10 dev head.
authorTatsuo Ishii <ishii@postgresql.org>
Mon, 19 Jun 2017 07:40:06 +0000 (16:40 +0900)
committerTatsuo Ishii <ishii@postgresql.org>
Mon, 19 Jun 2017 07:42:54 +0000 (16:42 +0900)
pg_current_wal_location -> pg_current_wal_lsn
pg_last_wal_replay_location -> pg_last_wal_replay_lsn

pool_worker_child.c

index c5f950050af7ab122089fa29689a203eabc14b80..b2e2ebc825691f0a5fba1125eb7ad356e3a33753 100644 (file)
@@ -263,14 +263,14 @@ static void check_replication_time_lag(void)
                if (PRIMARY_NODE_ID == i)
                {
                        if (server_version[i] >= PG10_SERVER_VERSION)
-                               query = "SELECT pg_current_wal_location()";
+                               query = "SELECT pg_current_wal_lsn()";
                        else
                                query = "SELECT pg_current_xlog_location()";
                }
                else
                {
                        if (server_version[i] >= PG10_SERVER_VERSION)
-                               query = "SELECT pg_last_wal_replay_location()";
+                               query = "SELECT pg_last_wal_replay_lsn()";
                        else
                                query = "SELECT pg_last_xlog_replay_location()";
                }