Fix flakyness in alter_table_set_access_method (#6421)

We decrease verbosity level here to avoid the flaky output

https://app.circleci.com/pipelines/github/citusdata/citus/27936/workflows/dc63128a-1570-41a0-8722-08f3e3cfe301/jobs/836153

```diff
select alter_table_set_access_method('ref','heap');
 NOTICE:  creating a new table for alter_table_set_access_method.ref
 NOTICE:  moving the data of alter_table_set_access_method.ref
 NOTICE:  dropping the old alter_table_set_access_method.ref
 NOTICE:  drop cascades to 2 other objects
-DETAIL:  drop cascades to materialized view m_ref
-drop cascades to view v_ref
+DETAIL:  drop cascades to view v_ref
+drop cascades to materialized view m_ref
 CONTEXT:  SQL statement "DROP TABLE alter_table_set_access_method.ref CASCADE"
 NOTICE:  renaming the new table to alter_table_set_access_method.ref
  alter_table_set_access_method
 -------------------------------

 (1 row)
```
pull/6412/head
Naisila Puka 2022-10-11 16:31:24 +03:00 committed by GitHub
parent 89aa9a015f
commit b5d70d2e11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 21 deletions

View File

@ -593,14 +593,12 @@ SELECT create_distributed_table('dist', 'a');
INSERT INTO dist VALUES (7),(9);
create materialized view m_dist as select * from dist;
create view v_dist as select * from dist;
\set VERBOSITY terse
select alter_table_set_access_method('local','columnar');
NOTICE: creating a new table for alter_table_set_access_method.local
NOTICE: moving the data of alter_table_set_access_method.local
NOTICE: dropping the old alter_table_set_access_method.local
NOTICE: drop cascades to 2 other objects
DETAIL: drop cascades to materialized view m_local
drop cascades to view v_local
CONTEXT: SQL statement "DROP TABLE alter_table_set_access_method.local CASCADE"
NOTICE: renaming the new table to alter_table_set_access_method.local
alter_table_set_access_method
---------------------------------------------------------------------
@ -612,9 +610,6 @@ NOTICE: creating a new table for alter_table_set_access_method.ref
NOTICE: moving the data of alter_table_set_access_method.ref
NOTICE: dropping the old alter_table_set_access_method.ref
NOTICE: drop cascades to 2 other objects
DETAIL: drop cascades to materialized view m_ref
drop cascades to view v_ref
CONTEXT: SQL statement "DROP TABLE alter_table_set_access_method.ref CASCADE"
NOTICE: renaming the new table to alter_table_set_access_method.ref
alter_table_set_access_method
---------------------------------------------------------------------
@ -626,9 +621,6 @@ NOTICE: creating a new table for alter_table_set_access_method.dist
NOTICE: moving the data of alter_table_set_access_method.dist
NOTICE: dropping the old alter_table_set_access_method.dist
NOTICE: drop cascades to 2 other objects
DETAIL: drop cascades to materialized view m_dist
drop cascades to view v_dist
CONTEXT: SQL statement "DROP TABLE alter_table_set_access_method.dist CASCADE"
NOTICE: renaming the new table to alter_table_set_access_method.dist
alter_table_set_access_method
---------------------------------------------------------------------
@ -640,9 +632,6 @@ NOTICE: creating a new table for alter_table_set_access_method.dist
NOTICE: moving the data of alter_table_set_access_method.dist
NOTICE: dropping the old alter_table_set_access_method.dist
NOTICE: drop cascades to 2 other objects
DETAIL: drop cascades to materialized view m_dist
drop cascades to view v_dist
CONTEXT: SQL statement "DROP TABLE alter_table_set_access_method.dist CASCADE"
NOTICE: renaming the new table to alter_table_set_access_method.dist
alter_distributed_table
---------------------------------------------------------------------
@ -654,9 +643,6 @@ NOTICE: creating a new table for alter_table_set_access_method.local
NOTICE: moving the data of alter_table_set_access_method.local
NOTICE: dropping the old alter_table_set_access_method.local
NOTICE: drop cascades to 2 other objects
DETAIL: drop cascades to materialized view m_local
drop cascades to view v_local
CONTEXT: SQL statement "DROP TABLE alter_table_set_access_method.local CASCADE"
NOTICE: renaming the new table to alter_table_set_access_method.local
alter_table_set_access_method
---------------------------------------------------------------------
@ -668,9 +654,6 @@ NOTICE: creating a new table for alter_table_set_access_method.ref
NOTICE: moving the data of alter_table_set_access_method.ref
NOTICE: dropping the old alter_table_set_access_method.ref
NOTICE: drop cascades to 2 other objects
DETAIL: drop cascades to materialized view m_ref
drop cascades to view v_ref
CONTEXT: SQL statement "DROP TABLE alter_table_set_access_method.ref CASCADE"
NOTICE: renaming the new table to alter_table_set_access_method.ref
alter_table_set_access_method
---------------------------------------------------------------------
@ -682,15 +665,13 @@ NOTICE: creating a new table for alter_table_set_access_method.dist
NOTICE: moving the data of alter_table_set_access_method.dist
NOTICE: dropping the old alter_table_set_access_method.dist
NOTICE: drop cascades to 2 other objects
DETAIL: drop cascades to materialized view m_dist
drop cascades to view v_dist
CONTEXT: SQL statement "DROP TABLE alter_table_set_access_method.dist CASCADE"
NOTICE: renaming the new table to alter_table_set_access_method.dist
alter_table_set_access_method
---------------------------------------------------------------------
(1 row)
\set VERBOSITY default
SELECT * FROM m_local;
a | b | c
---------------------------------------------------------------------

View File

@ -211,6 +211,7 @@ INSERT INTO dist VALUES (7),(9);
create materialized view m_dist as select * from dist;
create view v_dist as select * from dist;
\set VERBOSITY terse
select alter_table_set_access_method('local','columnar');
select alter_table_set_access_method('ref','columnar');
@ -222,6 +223,8 @@ select alter_table_set_access_method('local','heap');
select alter_table_set_access_method('ref','heap');
select alter_table_set_access_method('dist','heap');
\set VERBOSITY default
SELECT * FROM m_local;
SELECT * FROM m_ref;
SELECT * FROM m_dist;