[bugfix]the results of querying pg_stat_replication and DBE_PERF.replication_stat views are empty

This commit is contained in:
zy
2020-08-26 14:04:22 +08:00
parent ed27420caa
commit a418cebc87
2 changed files with 2 additions and 2 deletions

View File

@ -3714,7 +3714,7 @@ CREATE VIEW DBE_PERF.replication_stat AS
FROM pg_stat_get_activity(NULL) AS S, pg_authid U,
pg_stat_get_wal_senders() AS W
WHERE S.usesysid = U.oid AND
S.pid = W.sender_pid;
S.pid = W.pid;
CREATE OR REPLACE FUNCTION DBE_PERF.get_global_replication_stat
(OUT node_name name,

View File

@ -1521,7 +1521,7 @@ CREATE VIEW pg_stat_replication AS
FROM pg_stat_get_activity(NULL) AS S, pg_authid U,
pg_stat_get_wal_senders() AS W
WHERE S.usesysid = U.oid AND
S.pid = W.sender_pid;
S.pid = W.pid;
CREATE VIEW pg_replication_slots AS
SELECT