mirror of
https://github.com/percona/pg_stat_monitor.git
synced 2026-02-04 22:16:20 +00:00
PG-295: Fix top_query regression test.
The issue is that between changing GUC "track" from track='top' to track='all' the queries are executing using previous state of track='top', to fix that we sleep 1 second after calling pg_reload_conf() to ensure that queries will run with new settings.
This commit is contained in:
@@ -48,6 +48,12 @@ SELECT pg_reload_conf();
|
||||
t
|
||||
(1 row)
|
||||
|
||||
SELECT pg_sleep(1);
|
||||
pg_sleep
|
||||
----------
|
||||
|
||||
(1 row)
|
||||
|
||||
SELECT pg_stat_monitor_reset();
|
||||
pg_stat_monitor_reset
|
||||
-----------------------
|
||||
@@ -98,6 +104,12 @@ SELECT pg_reload_conf();
|
||||
t
|
||||
(1 row)
|
||||
|
||||
SELECT pg_sleep(1);
|
||||
pg_sleep
|
||||
----------
|
||||
|
||||
(1 row)
|
||||
|
||||
SELECT pg_stat_monitor_reset();
|
||||
pg_stat_monitor_reset
|
||||
-----------------------
|
||||
|
||||
@@ -48,6 +48,12 @@ SELECT pg_reload_conf();
|
||||
t
|
||||
(1 row)
|
||||
|
||||
SELECT pg_sleep(1);
|
||||
pg_sleep
|
||||
----------
|
||||
|
||||
(1 row)
|
||||
|
||||
SELECT pg_stat_monitor_reset();
|
||||
pg_stat_monitor_reset
|
||||
-----------------------
|
||||
@@ -98,6 +104,12 @@ SELECT pg_reload_conf();
|
||||
t
|
||||
(1 row)
|
||||
|
||||
SELECT pg_sleep(1);
|
||||
pg_sleep
|
||||
----------
|
||||
|
||||
(1 row)
|
||||
|
||||
SELECT pg_stat_monitor_reset();
|
||||
pg_stat_monitor_reset
|
||||
-----------------------
|
||||
|
||||
Reference in New Issue
Block a user