From a2b9726f8125abd8785ba48c178918ee766b3fc1 Mon Sep 17 00:00:00 2001 From: Ibrar Ahmed Date: Tue, 14 Apr 2020 12:33:37 +0000 Subject: [PATCH] Issue (#28): Fix missing query issue. There was a problem in the SQL file to query the wait events. --- pg_stat_monitor--1.0.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pg_stat_monitor--1.0.sql b/pg_stat_monitor--1.0.sql index 0700103..471e5e7 100644 --- a/pg_stat_monitor--1.0.sql +++ b/pg_stat_monitor--1.0.sql @@ -100,7 +100,7 @@ CREATE VIEW pg_stat_monitor AS SELECT (string_to_array(tables_names, ',')) tables_names, wait_event, wait_event_type -FROM pg_stat_monitor(true) m, pg_stat_wait_events() w WHERE (w.queryid = m.queryid) OR w.queryid IS NULL; +from pg_stat_monitor(true) m LEFT OUTER JOIN pg_stat_wait_events() w ON w.queryid = m.queryid; -- Register a view on the function for ease of use.