Debian Codegraph @

src/test/isolation/expected/insert-conflict-do-nothing-2.out

raw
1 Parsed test spec with 2 sessions
2
3 starting permutation: beginrr1 beginrr2 donothing1 c1 donothing2 c2 show
4 step beginrr1: BEGIN ISOLATION LEVEL REPEATABLE READ;
5 step beginrr2: BEGIN ISOLATION LEVEL REPEATABLE READ;
6 step donothing1: INSERT INTO ints(key, val) VALUES(1, 'donothing1') ON CONFLICT DO NOTHING;
7 step c1: COMMIT;
8 step donothing2: INSERT INTO ints(key, val) VALUES(1, 'donothing2'), (1, 'donothing3') ON CONFLICT DO NOTHING;
9 step c2: COMMIT;
10 step show: SELECT * FROM ints;
11 key|val
12 ---+----------
13 1|donothing1
14 (1 row)
15
16
17 starting permutation: beginrr1 beginrr2 donothing2 c2 donothing1 c1 show
18 step beginrr1: BEGIN ISOLATION LEVEL REPEATABLE READ;
19 step beginrr2: BEGIN ISOLATION LEVEL REPEATABLE READ;
20 step donothing2: INSERT INTO ints(key, val) VALUES(1, 'donothing2'), (1, 'donothing3') ON CONFLICT DO NOTHING;
21 step c2: COMMIT;
22 step donothing1: INSERT INTO ints(key, val) VALUES(1, 'donothing1') ON CONFLICT DO NOTHING;
23 step c1: COMMIT;
24 step show: SELECT * FROM ints;
25 key|val
26 ---+----------
27 1|donothing2
28 (1 row)
29
30
31 starting permutation: beginrr1 beginrr2 donothing1 donothing2 c1 c2 show
32 step beginrr1: BEGIN ISOLATION LEVEL REPEATABLE READ;
33 step beginrr2: BEGIN ISOLATION LEVEL REPEATABLE READ;
34 step donothing1: INSERT INTO ints(key, val) VALUES(1, 'donothing1') ON CONFLICT DO NOTHING;
35 step donothing2: INSERT INTO ints(key, val) VALUES(1, 'donothing2'), (1, 'donothing3') ON CONFLICT DO NOTHING; <waiting ...>
36 step c1: COMMIT;
37 step donothing2: <... completed>
38 ERROR: could not serialize access due to concurrent update
39 step c2: COMMIT;
40 step show: SELECT * FROM ints;
41 key|val
42 ---+----------
43 1|donothing1
44 (1 row)
45
46
47 starting permutation: beginrr1 beginrr2 donothing2 donothing1 c2 c1 show
48 step beginrr1: BEGIN ISOLATION LEVEL REPEATABLE READ;
49 step beginrr2: BEGIN ISOLATION LEVEL REPEATABLE READ;
50 step donothing2: INSERT INTO ints(key, val) VALUES(1, 'donothing2'), (1, 'donothing3') ON CONFLICT DO NOTHING;
51 step donothing1: INSERT INTO ints(key, val) VALUES(1, 'donothing1') ON CONFLICT DO NOTHING; <waiting ...>
52 step c2: COMMIT;
53 step donothing1: <... completed>
54 ERROR: could not serialize access due to concurrent update
55 step c1: COMMIT;
56 step show: SELECT * FROM ints;
57 key|val
58 ---+----------
59 1|donothing2
60 (1 row)
61
62
63 starting permutation: begins1 begins2 donothing1 c1 donothing2 c2 show
64 step begins1: BEGIN ISOLATION LEVEL SERIALIZABLE;
65 step begins2: BEGIN ISOLATION LEVEL SERIALIZABLE;
66 step donothing1: INSERT INTO ints(key, val) VALUES(1, 'donothing1') ON CONFLICT DO NOTHING;
67 step c1: COMMIT;
68 step donothing2: INSERT INTO ints(key, val) VALUES(1, 'donothing2'), (1, 'donothing3') ON CONFLICT DO NOTHING;
69 step c2: COMMIT;
70 step show: SELECT * FROM ints;
71 key|val
72 ---+----------
73 1|donothing1
74 (1 row)
75
76
77 starting permutation: begins1 begins2 donothing2 c2 donothing1 c1 show
78 step begins1: BEGIN ISOLATION LEVEL SERIALIZABLE;
79 step begins2: BEGIN ISOLATION LEVEL SERIALIZABLE;
80 step donothing2: INSERT INTO ints(key, val) VALUES(1, 'donothing2'), (1, 'donothing3') ON CONFLICT DO NOTHING;
81 step c2: COMMIT;
82 step donothing1: INSERT INTO ints(key, val) VALUES(1, 'donothing1') ON CONFLICT DO NOTHING;
83 step c1: COMMIT;
84 step show: SELECT * FROM ints;
85 key|val
86 ---+----------
87 1|donothing2
88 (1 row)
89
90
91 starting permutation: begins1 begins2 donothing1 donothing2 c1 c2 show
92 step begins1: BEGIN ISOLATION LEVEL SERIALIZABLE;
93 step begins2: BEGIN ISOLATION LEVEL SERIALIZABLE;
94 step donothing1: INSERT INTO ints(key, val) VALUES(1, 'donothing1') ON CONFLICT DO NOTHING;
95 step donothing2: INSERT INTO ints(key, val) VALUES(1, 'donothing2'), (1, 'donothing3') ON CONFLICT DO NOTHING; <waiting ...>
96 step c1: COMMIT;
97 step donothing2: <... completed>
98 ERROR: could not serialize access due to concurrent update
99 step c2: COMMIT;
100 step show: SELECT * FROM ints;
101 key|val
102 ---+----------
103 1|donothing1
104 (1 row)
105
106
107 starting permutation: begins1 begins2 donothing2 donothing1 c2 c1 show
108 step begins1: BEGIN ISOLATION LEVEL SERIALIZABLE;
109 step begins2: BEGIN ISOLATION LEVEL SERIALIZABLE;
110 step donothing2: INSERT INTO ints(key, val) VALUES(1, 'donothing2'), (1, 'donothing3') ON CONFLICT DO NOTHING;
111 step donothing1: INSERT INTO ints(key, val) VALUES(1, 'donothing1') ON CONFLICT DO NOTHING; <waiting ...>
112 step c2: COMMIT;
113 step donothing1: <... completed>
114 ERROR: could not serialize access due to concurrent update
115 step c1: COMMIT;
116 step show: SELECT * FROM ints;
117 key|val
118 ---+----------
119 1|donothing2
120 (1 row)
121