Fix test output

talha_tes1
Ahmet Gedemenli 2021-10-26 15:03:33 +03:00
parent f5e2ffa117
commit 5f6913e82e
1 changed files with 22 additions and 3 deletions

View File

@ -676,6 +676,25 @@ SELECT logicalrelid, autoconverted FROM pg_dist_partition
citus_child_t | t
(2 rows)
-- test CREATE TABLE REFERENCES
CREATE TABLE citus_local_user_created(a int unique);
SELECT citus_add_local_table_to_metadata('citus_local_user_created');
citus_add_local_table_to_metadata
---------------------------------------------------------------------
(1 row)
CREATE TABLE citus_local_references(a int unique references citus_local_user_created(a));
SELECT logicalrelid, autoconverted FROM pg_dist_partition
WHERE logicalrelid IN ('citus_local_user_created'::regclass,
'citus_local_references'::regclass)
ORDER BY logicalrelid;
logicalrelid | autoconverted
---------------------------------------------------------------------
citus_local_user_created | f
citus_local_references | f
(2 rows)
-- a single drop table cascades into multiple undistributes
DROP TABLE IF EXISTS citus_local_table_1, citus_local_table_2, citus_local_table_3, citus_local_table_2, reference_table_1;
CREATE TABLE reference_table_1(r1 int UNIQUE, r2 int);
@ -713,9 +732,9 @@ ALTER TABLE reference_table_1 OWNER TO another_user;
SELECT run_command_on_placements('reference_table_1', 'ALTER TABLE %s OWNER TO another_user');
run_command_on_placements
---------------------------------------------------------------------
(localhost,57636,1810058,t,"ALTER TABLE")
(localhost,57637,1810058,t,"ALTER TABLE")
(localhost,57638,1810058,t,"ALTER TABLE")
(localhost,57636,1810060,t,"ALTER TABLE")
(localhost,57637,1810060,t,"ALTER TABLE")
(localhost,57638,1810060,t,"ALTER TABLE")
(3 rows)
SET citus.enable_ddl_propagation to ON;