PG18: fix incorrectly failing tests in pg18 regress.

Some tests showed diffs because of dependencies on citus GUCs and
getting shuffled around in the test order. This commit fixes that.
pull/8370/head
Colm McHugh 2025-12-05 11:13:58 +00:00
parent 002046b87b
commit f9bc501a70
2 changed files with 5 additions and 0 deletions

View File

@ -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
---------------------------------------------------------------------

View File

@ -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