mirror of
https://github.com/percona/pg_stat_monitor.git
synced 2026-02-04 05:56:21 +00:00
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.
28 lines
478 B
Plaintext
28 lines
478 B
Plaintext
CREATE EXTENSION pg_stat_monitor;
|
|
SELECT pg_stat_monitor_reset();
|
|
pg_stat_monitor_reset
|
|
-----------------------
|
|
|
|
(1 row)
|
|
|
|
SELECT 1 AS num;
|
|
num
|
|
-----
|
|
1
|
|
(1 row)
|
|
|
|
SELECT query FROM pg_stat_monitor ORDER BY query COLLATE "C";
|
|
query
|
|
--------------------------------
|
|
SELECT 1 AS num
|
|
SELECT pg_stat_monitor_reset()
|
|
(2 rows)
|
|
|
|
SELECT pg_stat_monitor_reset();
|
|
pg_stat_monitor_reset
|
|
-----------------------
|
|
|
|
(1 row)
|
|
|
|
DROP EXTENSION pg_stat_monitor;
|