!136 [bugfix]the results of querying pg_stat_replication and DBE_PERF.replication_stat_views are empty

Merge pull request !136 from zy/dev
This commit is contained in:
opengauss-bot 2020-08-31 10:18:51 +08:00 committed by Gitee
commit e0d74010e6
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