PG-211: Fix the issue while generating histogram.

pull/116/head
Ibrar Ahmed 2021-09-30 18:47:12 +00:00
parent f269af3da2
commit 361c7d370a
1 changed files with 1 additions and 1 deletions

View File

@ -148,7 +148,7 @@ CREATE VIEW pg_stat_monitor AS SELECT
comments,
planid,
query_plan,
(SELECT query from pg_stat_monitor_internal(true) s where s.queryid = p.top_queryid) AS top_query,
(SELECT query from pg_stat_monitor_internal(true) s where s.queryid = p.top_queryid and s.bucket = p.bucket) AS top_query,
application_name,
string_to_array(relations, ',') AS relations,
cmd_type,