mirror of https://github.com/citusdata/citus.git
Fix flaky test in multi_fix_partition_shard_index_names.sql (#5364)
parent
d0390af72d
commit
99d3785b5c
|
@ -241,7 +241,9 @@ NOTICE: dropping metadata on the node (localhost,57637)
|
||||||
DROP INDEX short;
|
DROP INDEX short;
|
||||||
DROP TABLE yet_another_partition_table, another_partition_table_with_very_long_name;
|
DROP TABLE yet_another_partition_table, another_partition_table_with_very_long_name;
|
||||||
-- this will create constraint1 index on parent
|
-- this will create constraint1 index on parent
|
||||||
|
SET citus.max_adaptive_executor_pool_size TO 1;
|
||||||
ALTER TABLE dist_partitioned_table ADD CONSTRAINT constraint1 UNIQUE (dist_col, partition_col);
|
ALTER TABLE dist_partitioned_table ADD CONSTRAINT constraint1 UNIQUE (dist_col, partition_col);
|
||||||
|
RESET citus.max_adaptive_executor_pool_size;
|
||||||
CREATE TABLE fk_table (id int, fk_column timestamp, FOREIGN KEY (id, fk_column) REFERENCES dist_partitioned_table (dist_col, partition_col));
|
CREATE TABLE fk_table (id int, fk_column timestamp, FOREIGN KEY (id, fk_column) REFERENCES dist_partitioned_table (dist_col, partition_col));
|
||||||
-- try creating index to foreign key
|
-- try creating index to foreign key
|
||||||
CREATE INDEX ON dist_partitioned_table USING btree (dist_col, partition_col);
|
CREATE INDEX ON dist_partitioned_table USING btree (dist_col, partition_col);
|
||||||
|
|
|
@ -112,7 +112,9 @@ SELECT stop_metadata_sync_to_node('localhost', :worker_1_port);
|
||||||
DROP INDEX short;
|
DROP INDEX short;
|
||||||
DROP TABLE yet_another_partition_table, another_partition_table_with_very_long_name;
|
DROP TABLE yet_another_partition_table, another_partition_table_with_very_long_name;
|
||||||
-- this will create constraint1 index on parent
|
-- this will create constraint1 index on parent
|
||||||
|
SET citus.max_adaptive_executor_pool_size TO 1;
|
||||||
ALTER TABLE dist_partitioned_table ADD CONSTRAINT constraint1 UNIQUE (dist_col, partition_col);
|
ALTER TABLE dist_partitioned_table ADD CONSTRAINT constraint1 UNIQUE (dist_col, partition_col);
|
||||||
|
RESET citus.max_adaptive_executor_pool_size;
|
||||||
CREATE TABLE fk_table (id int, fk_column timestamp, FOREIGN KEY (id, fk_column) REFERENCES dist_partitioned_table (dist_col, partition_col));
|
CREATE TABLE fk_table (id int, fk_column timestamp, FOREIGN KEY (id, fk_column) REFERENCES dist_partitioned_table (dist_col, partition_col));
|
||||||
|
|
||||||
-- try creating index to foreign key
|
-- try creating index to foreign key
|
||||||
|
|
Loading…
Reference in New Issue