mirror of
https://github.com/percona/pg_stat_monitor.git
synced 2026-02-04 05:56:21 +00:00
PG-320: Removing the query state code from the view.
The query status monitoring code was used to track the current query state, for example, parsing, executing and finishing. After careful review, we have figured out that it does not make sense while a lot of time same query is running. Therefore it is also consuming resources. This commit will remove that feature. The upgrade SQL from 1.0 - 2.0 is also updated.
This commit is contained in:
@@ -26,12 +26,11 @@ SELECT * from pg_stat_monitor_settings;
|
||||
(15 rows)
|
||||
|
||||
select datname, substr(query,0,100) as query, calls from pg_stat_monitor order by datname, query, calls desc Limit 20;
|
||||
datname | query | calls
|
||||
----------+-----------------------------------------------------------------------------------------------------+-------
|
||||
postgres | SELECT * from pg_stat_monitor_settings | 1
|
||||
postgres | SELECT pg_stat_monitor_reset() | 1
|
||||
postgres | select datname, substr(query,0,100) as query, calls from pg_stat_monitor order by datname, query, c | 1
|
||||
(3 rows)
|
||||
datname | query | calls
|
||||
----------+----------------------------------------+-------
|
||||
postgres | SELECT * from pg_stat_monitor_settings | 1
|
||||
postgres | SELECT pg_stat_monitor_reset() | 1
|
||||
(2 rows)
|
||||
|
||||
SELECT * from pg_stat_monitor_settings;
|
||||
name | value | default_value | description | minimum | maximum | options | restart
|
||||
|
||||
Reference in New Issue
Block a user