Debian Codegraph @

src/test/isolation/expected/detach-partition-concurrently-2.out

raw
1 Parsed test spec with 3 sessions
2
3 starting permutation: s1b s1s s2d s3i1 s1c
4 step s1b: BEGIN;
5 step s1s: SELECT * FROM d_lp_fk;
6 a
7 -
8 1
9 2
10 (2 rows)
11
12 step s2d: ALTER TABLE d_lp_fk DETACH PARTITION d_lp_fk_1 CONCURRENTLY; <waiting ...>
13 step s3i1: INSERT INTO d_lp_fk_r VALUES (1);
14 ERROR: insert or update on table "d_lp_fk_r" violates foreign key constraint "d_lp_fk_r_a_fkey"
15 step s1c: COMMIT;
16 step s2d: <... completed>
17
18 starting permutation: s1b s1s s2d s3i2 s3i2 s1c
19 step s1b: BEGIN;
20 step s1s: SELECT * FROM d_lp_fk;
21 a
22 -
23 1
24 2
25 (2 rows)
26
27 step s2d: ALTER TABLE d_lp_fk DETACH PARTITION d_lp_fk_1 CONCURRENTLY; <waiting ...>
28 step s3i2: INSERT INTO d_lp_fk_r VALUES (2);
29 step s3i2: INSERT INTO d_lp_fk_r VALUES (2);
30 step s1c: COMMIT;
31 step s2d: <... completed>
32
33 starting permutation: s1b s1s s3i1 s2d s1c
34 step s1b: BEGIN;
35 step s1s: SELECT * FROM d_lp_fk;
36 a
37 -
38 1
39 2
40 (2 rows)
41
42 step s3i1: INSERT INTO d_lp_fk_r VALUES (1);
43 step s2d: ALTER TABLE d_lp_fk DETACH PARTITION d_lp_fk_1 CONCURRENTLY;
44 ERROR: removing partition "d_lp_fk_1" violates foreign key constraint "d_lp_fk_r_a_fkey_1"
45 step s1c: COMMIT;
46
47 starting permutation: s1b s1s s3i2 s2d s1c
48 step s1b: BEGIN;
49 step s1s: SELECT * FROM d_lp_fk;
50 a
51 -
52 1
53 2
54 (2 rows)
55
56 step s3i2: INSERT INTO d_lp_fk_r VALUES (2);
57 step s2d: ALTER TABLE d_lp_fk DETACH PARTITION d_lp_fk_1 CONCURRENTLY; <waiting ...>
58 step s1c: COMMIT;
59 step s2d: <... completed>
60
61 starting permutation: s1b s1s s3b s2d s3i1 s1c s3c
62 step s1b: BEGIN;
63 step s1s: SELECT * FROM d_lp_fk;
64 a
65 -
66 1
67 2
68 (2 rows)
69
70 step s3b: BEGIN;
71 step s2d: ALTER TABLE d_lp_fk DETACH PARTITION d_lp_fk_1 CONCURRENTLY; <waiting ...>
72 step s3i1: INSERT INTO d_lp_fk_r VALUES (1);
73 ERROR: insert or update on table "d_lp_fk_r" violates foreign key constraint "d_lp_fk_r_a_fkey"
74 step s1c: COMMIT;
75 step s2d: <... completed>
76 step s3c: COMMIT;