@@ -14,7 +14,33 @@ step s1u: UPDATE parent SET aux = 'bar';
1414step s2i: INSERT INTO child VALUES (2, 1);
1515step s1c: COMMIT;
1616step s2u: UPDATE parent SET aux = 'baz';
17- ERROR: could not serialize access due to read/write dependencies among transactions
17+ ERROR: could not serialize access due to concurrent update
18+ step s2c: COMMIT;
19+
20+ starting permutation: s1i s1u s2i s2u s1c s2c
21+ step s1i: INSERT INTO child VALUES (1, 1);
22+ step s1u: UPDATE parent SET aux = 'bar';
23+ step s2i: INSERT INTO child VALUES (2, 1);
24+ step s2u: UPDATE parent SET aux = 'baz'; <waiting ...>
25+ step s1c: COMMIT;
26+ step s2u: <... completed>
27+ error in steps s1c s2u: ERROR: could not serialize access due to concurrent update
28+ step s2c: COMMIT;
29+
30+ starting permutation: s1i s1u s2i s2u s2c s1c
31+ step s1i: INSERT INTO child VALUES (1, 1);
32+ step s1u: UPDATE parent SET aux = 'bar';
33+ step s2i: INSERT INTO child VALUES (2, 1);
34+ step s2u: UPDATE parent SET aux = 'baz'; <waiting ...>
35+ invalid permutation detected
36+
37+ starting permutation: s1i s2i s1u s1c s2u s2c
38+ step s1i: INSERT INTO child VALUES (1, 1);
39+ step s2i: INSERT INTO child VALUES (2, 1);
40+ step s1u: UPDATE parent SET aux = 'bar';
41+ step s1c: COMMIT;
42+ step s2u: UPDATE parent SET aux = 'baz';
43+ ERROR: could not serialize access due to concurrent update
1844step s2c: COMMIT;
1945
2046starting permutation: s1i s2i s1u s2u s1c s2c
@@ -27,6 +53,20 @@ step s2u: <... completed>
2753error in steps s1c s2u: ERROR: could not serialize access due to concurrent update
2854step s2c: COMMIT;
2955
56+ starting permutation: s1i s2i s1u s2u s2c s1c
57+ step s1i: INSERT INTO child VALUES (1, 1);
58+ step s2i: INSERT INTO child VALUES (2, 1);
59+ step s1u: UPDATE parent SET aux = 'bar';
60+ step s2u: UPDATE parent SET aux = 'baz'; <waiting ...>
61+ invalid permutation detected
62+
63+ starting permutation: s1i s2i s2u s1u s1c s2c
64+ step s1i: INSERT INTO child VALUES (1, 1);
65+ step s2i: INSERT INTO child VALUES (2, 1);
66+ step s2u: UPDATE parent SET aux = 'baz';
67+ step s1u: UPDATE parent SET aux = 'bar'; <waiting ...>
68+ invalid permutation detected
69+
3070starting permutation: s1i s2i s2u s1u s2c s1c
3171step s1i: INSERT INTO child VALUES (1, 1);
3272step s2i: INSERT INTO child VALUES (2, 1);
@@ -37,6 +77,24 @@ step s1u: <... completed>
3777error in steps s2c s1u: ERROR: could not serialize access due to concurrent update
3878step s1c: COMMIT;
3979
80+ starting permutation: s1i s2i s2u s2c s1u s1c
81+ step s1i: INSERT INTO child VALUES (1, 1);
82+ step s2i: INSERT INTO child VALUES (2, 1);
83+ step s2u: UPDATE parent SET aux = 'baz';
84+ step s2c: COMMIT;
85+ step s1u: UPDATE parent SET aux = 'bar';
86+ ERROR: could not serialize access due to concurrent update
87+ step s1c: COMMIT;
88+
89+ starting permutation: s2i s1i s1u s1c s2u s2c
90+ step s2i: INSERT INTO child VALUES (2, 1);
91+ step s1i: INSERT INTO child VALUES (1, 1);
92+ step s1u: UPDATE parent SET aux = 'bar';
93+ step s1c: COMMIT;
94+ step s2u: UPDATE parent SET aux = 'baz';
95+ ERROR: could not serialize access due to concurrent update
96+ step s2c: COMMIT;
97+
4098starting permutation: s2i s1i s1u s2u s1c s2c
4199step s2i: INSERT INTO child VALUES (2, 1);
42100step s1i: INSERT INTO child VALUES (1, 1);
@@ -47,6 +105,20 @@ step s2u: <... completed>
47105error in steps s1c s2u: ERROR: could not serialize access due to concurrent update
48106step s2c: COMMIT;
49107
108+ starting permutation: s2i s1i s1u s2u s2c s1c
109+ step s2i: INSERT INTO child VALUES (2, 1);
110+ step s1i: INSERT INTO child VALUES (1, 1);
111+ step s1u: UPDATE parent SET aux = 'bar';
112+ step s2u: UPDATE parent SET aux = 'baz'; <waiting ...>
113+ invalid permutation detected
114+
115+ starting permutation: s2i s1i s2u s1u s1c s2c
116+ step s2i: INSERT INTO child VALUES (2, 1);
117+ step s1i: INSERT INTO child VALUES (1, 1);
118+ step s2u: UPDATE parent SET aux = 'baz';
119+ step s1u: UPDATE parent SET aux = 'bar'; <waiting ...>
120+ invalid permutation detected
121+
50122starting permutation: s2i s1i s2u s1u s2c s1c
51123step s2i: INSERT INTO child VALUES (2, 1);
52124step s1i: INSERT INTO child VALUES (1, 1);
@@ -57,11 +129,45 @@ step s1u: <... completed>
57129error in steps s2c s1u: ERROR: could not serialize access due to concurrent update
58130step s1c: COMMIT;
59131
132+ starting permutation: s2i s1i s2u s2c s1u s1c
133+ step s2i: INSERT INTO child VALUES (2, 1);
134+ step s1i: INSERT INTO child VALUES (1, 1);
135+ step s2u: UPDATE parent SET aux = 'baz';
136+ step s2c: COMMIT;
137+ step s1u: UPDATE parent SET aux = 'bar';
138+ ERROR: could not serialize access due to concurrent update
139+ step s1c: COMMIT;
140+
141+ starting permutation: s2i s2u s1i s1u s1c s2c
142+ step s2i: INSERT INTO child VALUES (2, 1);
143+ step s2u: UPDATE parent SET aux = 'baz';
144+ step s1i: INSERT INTO child VALUES (1, 1);
145+ step s1u: UPDATE parent SET aux = 'bar'; <waiting ...>
146+ invalid permutation detected
147+
148+ starting permutation: s2i s2u s1i s1u s2c s1c
149+ step s2i: INSERT INTO child VALUES (2, 1);
150+ step s2u: UPDATE parent SET aux = 'baz';
151+ step s1i: INSERT INTO child VALUES (1, 1);
152+ step s1u: UPDATE parent SET aux = 'bar'; <waiting ...>
153+ step s2c: COMMIT;
154+ step s1u: <... completed>
155+ error in steps s2c s1u: ERROR: could not serialize access due to concurrent update
156+ step s1c: COMMIT;
157+
60158starting permutation: s2i s2u s1i s2c s1u s1c
61159step s2i: INSERT INTO child VALUES (2, 1);
62160step s2u: UPDATE parent SET aux = 'baz';
63161step s1i: INSERT INTO child VALUES (1, 1);
64162step s2c: COMMIT;
65163step s1u: UPDATE parent SET aux = 'bar';
66- ERROR: could not serialize access due to read/write dependencies among transactions
164+ ERROR: could not serialize access due to concurrent update
165+ step s1c: COMMIT;
166+
167+ starting permutation: s2i s2u s2c s1i s1u s1c
168+ step s2i: INSERT INTO child VALUES (2, 1);
169+ step s2u: UPDATE parent SET aux = 'baz';
170+ step s2c: COMMIT;
171+ step s1i: INSERT INTO child VALUES (1, 1);
172+ step s1u: UPDATE parent SET aux = 'bar';
67173step s1c: COMMIT;
0 commit comments