mirror of https://github.com/citusdata/citus.git
72 lines
2.8 KiB
Plaintext
72 lines
2.8 KiB
Plaintext
Parsed test spec with 2 sessions
|
|
|
|
starting permutation: s1-initialize s1-add-constraint s1-begin s2-begin s1-validate s2-insert s1-commit s2-commit
|
|
create_distributed_table
|
|
---------------------------------------------------------------------
|
|
|
|
(1 row)
|
|
|
|
step s1-initialize: INSERT INTO constrained_table VALUES (0, 0), (1, 1), (2, 2), (3, 4);
|
|
step s1-add-constraint: ALTER TABLE constrained_table ADD CONSTRAINT check_constraint CHECK(int_data<30) NOT VALID;
|
|
step s1-begin: BEGIN;
|
|
step s2-begin: BEGIN;
|
|
step s1-validate: ALTER TABLE constrained_table VALIDATE CONSTRAINT check_constraint;
|
|
step s2-insert: INSERT INTO constrained_table VALUES(10, 10);
|
|
step s1-commit: COMMIT;
|
|
step s2-commit: COMMIT;
|
|
|
|
starting permutation: s1-initialize s1-add-constraint s1-begin s2-begin s1-validate s2-select s1-commit s2-commit
|
|
create_distributed_table
|
|
---------------------------------------------------------------------
|
|
|
|
(1 row)
|
|
|
|
step s1-initialize: INSERT INTO constrained_table VALUES (0, 0), (1, 1), (2, 2), (3, 4);
|
|
step s1-add-constraint: ALTER TABLE constrained_table ADD CONSTRAINT check_constraint CHECK(int_data<30) NOT VALID;
|
|
step s1-begin: BEGIN;
|
|
step s2-begin: BEGIN;
|
|
step s1-validate: ALTER TABLE constrained_table VALIDATE CONSTRAINT check_constraint;
|
|
step s2-select: SELECT sum(int_data) FROM constrained_table;
|
|
sum
|
|
---------------------------------------------------------------------
|
|
7
|
|
(1 row)
|
|
|
|
step s1-commit: COMMIT;
|
|
step s2-commit: COMMIT;
|
|
|
|
starting permutation: s1-initialize s1-add-constraint s1-begin s2-begin s2-insert s1-validate s1-commit s2-commit
|
|
create_distributed_table
|
|
---------------------------------------------------------------------
|
|
|
|
(1 row)
|
|
|
|
step s1-initialize: INSERT INTO constrained_table VALUES (0, 0), (1, 1), (2, 2), (3, 4);
|
|
step s1-add-constraint: ALTER TABLE constrained_table ADD CONSTRAINT check_constraint CHECK(int_data<30) NOT VALID;
|
|
step s1-begin: BEGIN;
|
|
step s2-begin: BEGIN;
|
|
step s2-insert: INSERT INTO constrained_table VALUES(10, 10);
|
|
step s1-validate: ALTER TABLE constrained_table VALIDATE CONSTRAINT check_constraint;
|
|
step s1-commit: COMMIT;
|
|
step s2-commit: COMMIT;
|
|
|
|
starting permutation: s1-initialize s1-add-constraint s1-begin s2-begin s2-select s1-validate s1-commit s2-commit
|
|
create_distributed_table
|
|
---------------------------------------------------------------------
|
|
|
|
(1 row)
|
|
|
|
step s1-initialize: INSERT INTO constrained_table VALUES (0, 0), (1, 1), (2, 2), (3, 4);
|
|
step s1-add-constraint: ALTER TABLE constrained_table ADD CONSTRAINT check_constraint CHECK(int_data<30) NOT VALID;
|
|
step s1-begin: BEGIN;
|
|
step s2-begin: BEGIN;
|
|
step s2-select: SELECT sum(int_data) FROM constrained_table;
|
|
sum
|
|
---------------------------------------------------------------------
|
|
7
|
|
(1 row)
|
|
|
|
step s1-validate: ALTER TABLE constrained_table VALIDATE CONSTRAINT check_constraint;
|
|
step s1-commit: COMMIT;
|
|
step s2-commit: COMMIT;
|