fix multi utilities vacuum test (#3699)

pull/3702/head
SaitTalhaNisanci 2020-04-03 11:50:00 +03:00 committed by GitHub
parent 9b26dcaf31
commit 659283c9a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 0 deletions

View File

@ -399,6 +399,11 @@ WARNING: not propagating VACUUM command to worker nodes
HINT: Provide a specific table in order to VACUUM distributed tables.
-- check for multiple table vacuum
VACUUM dustbunnies, second_dustbunnies;
\c - - - :worker_1_port
REFRESH MATERIALIZED VIEW prevcounts;
\c - - - :worker_2_port
REFRESH MATERIALIZED VIEW prevcounts;
\c - - - :master_port
-- check the current number of vacuum and analyze run on dustbunnies
SELECT run_command_on_workers($$SELECT wait_for_stats()$$);
run_command_on_workers

View File

@ -295,6 +295,13 @@ VACUUM;
-- check for multiple table vacuum
VACUUM dustbunnies, second_dustbunnies;
\c - - - :worker_1_port
REFRESH MATERIALIZED VIEW prevcounts;
\c - - - :worker_2_port
REFRESH MATERIALIZED VIEW prevcounts;
\c - - - :master_port
-- check the current number of vacuum and analyze run on dustbunnies
SELECT run_command_on_workers($$SELECT wait_for_stats()$$);
SELECT run_command_on_workers($$SELECT pg_stat_get_vacuum_count(tablename::regclass) from pg_tables where tablename LIKE 'dustbunnies_%' limit 1$$);