mirror of https://github.com/citusdata/citus.git
PG18: fix incorrectly failing tests in pg18 regress. (#8370)
Some tests showed diffs because of dependencies on citus GUCs and getting shuffled around in the test order. This commit fixes that.pull/8363/merge
parent
002046b87b
commit
3399d660f3
|
|
@ -1260,6 +1260,7 @@ CREATE TABLE customers(
|
|||
customer_name VARCHAR(255) NOT NULL,
|
||||
PRIMARY KEY(customer_id)
|
||||
);
|
||||
SET citus.shard_replication_factor TO 1;
|
||||
SELECT create_distributed_table('customers', 'customer_id');
|
||||
create_distributed_table
|
||||
---------------------------------------------------------------------
|
||||
|
|
@ -1362,6 +1363,7 @@ CREATE TABLE NE_CHECK_TBL (x int, y int,
|
|||
CONSTRAINT CHECK_X CHECK (x > 3) NOT ENFORCED,
|
||||
CONSTRAINT CHECK_Y CHECK (y < 20) ENFORCED
|
||||
);
|
||||
SET citus.next_shard_id TO 4754044;
|
||||
SELECT create_distributed_table('ne_check_tbl', 'x');
|
||||
create_distributed_table
|
||||
---------------------------------------------------------------------
|
||||
|
|
|
|||
|
|
@ -791,6 +791,8 @@ CREATE TABLE customers(
|
|||
PRIMARY KEY(customer_id)
|
||||
);
|
||||
|
||||
SET citus.shard_replication_factor TO 1;
|
||||
|
||||
SELECT create_distributed_table('customers', 'customer_id');
|
||||
|
||||
CREATE TABLE contacts(
|
||||
|
|
@ -867,6 +869,7 @@ CREATE TABLE NE_CHECK_TBL (x int, y int,
|
|||
CONSTRAINT CHECK_Y CHECK (y < 20) ENFORCED
|
||||
);
|
||||
|
||||
SET citus.next_shard_id TO 4754044;
|
||||
SELECT create_distributed_table('ne_check_tbl', 'x');
|
||||
|
||||
-- CHECK_X is NOT ENFORCED, so these inserts should succeed
|
||||
|
|
|
|||
Loading…
Reference in New Issue