Debian Codegraph @

src/test/isolation/expected/partition-key-update-1.out

raw
1 Parsed test spec with 2 sessions
2
3 starting permutation: s1b s2b s1u s1c s2d s2c
4 step s1b: BEGIN ISOLATION LEVEL READ COMMITTED;
5 step s2b: BEGIN ISOLATION LEVEL READ COMMITTED;
6 step s1u: UPDATE foo SET a=2 WHERE a=1;
7 step s1c: COMMIT;
8 step s2d: DELETE FROM foo WHERE a=1;
9 step s2c: COMMIT;
10
11 starting permutation: s1b s2b s1u s2d s1c s2c
12 step s1b: BEGIN ISOLATION LEVEL READ COMMITTED;
13 step s2b: BEGIN ISOLATION LEVEL READ COMMITTED;
14 step s1u: UPDATE foo SET a=2 WHERE a=1;
15 step s2d: DELETE FROM foo WHERE a=1; <waiting ...>
16 step s1c: COMMIT;
17 step s2d: <... completed>
18 ERROR: tuple to be locked was already moved to another partition due to concurrent update
19 step s2c: COMMIT;
20
21 starting permutation: s1b s2b s1u s2u s1c s2c
22 step s1b: BEGIN ISOLATION LEVEL READ COMMITTED;
23 step s2b: BEGIN ISOLATION LEVEL READ COMMITTED;
24 step s1u: UPDATE foo SET a=2 WHERE a=1;
25 step s2u: UPDATE foo SET b='EFG' WHERE a=1; <waiting ...>
26 step s1c: COMMIT;
27 step s2u: <... completed>
28 ERROR: tuple to be locked was already moved to another partition due to concurrent update
29 step s2c: COMMIT;
30
31 starting permutation: s1b s2b s2d s1u s2c s1c
32 step s1b: BEGIN ISOLATION LEVEL READ COMMITTED;
33 step s2b: BEGIN ISOLATION LEVEL READ COMMITTED;
34 step s2d: DELETE FROM foo WHERE a=1;
35 step s1u: UPDATE foo SET a=2 WHERE a=1; <waiting ...>
36 step s2c: COMMIT;
37 step s1u: <... completed>
38 step s1c: COMMIT;
39
40 starting permutation: s1b s2b s1u2 s1c s2u2 s2c
41 step s1b: BEGIN ISOLATION LEVEL READ COMMITTED;
42 step s2b: BEGIN ISOLATION LEVEL READ COMMITTED;
43 step s1u2: UPDATE footrg SET b='EFG' WHERE a=1;
44 step s1c: COMMIT;
45 step s2u2: UPDATE footrg SET b='XYZ' WHERE a=1;
46 step s2c: COMMIT;
47
48 starting permutation: s1b s2b s1u2 s2u2 s1c s2c
49 step s1b: BEGIN ISOLATION LEVEL READ COMMITTED;
50 step s2b: BEGIN ISOLATION LEVEL READ COMMITTED;
51 step s1u2: UPDATE footrg SET b='EFG' WHERE a=1;
52 step s2u2: UPDATE footrg SET b='XYZ' WHERE a=1; <waiting ...>
53 step s1c: COMMIT;
54 step s2u2: <... completed>
55 ERROR: tuple to be locked was already moved to another partition due to concurrent update
56 step s2c: COMMIT;
57
58 starting permutation: s1b s2b s2u2 s1u2 s2c s1c
59 step s1b: BEGIN ISOLATION LEVEL READ COMMITTED;
60 step s2b: BEGIN ISOLATION LEVEL READ COMMITTED;
61 step s2u2: UPDATE footrg SET b='XYZ' WHERE a=1;
62 step s1u2: UPDATE footrg SET b='EFG' WHERE a=1; <waiting ...>
63 step s2c: COMMIT;
64 step s1u2: <... completed>
65 ERROR: tuple to be locked was already moved to another partition due to concurrent update
66 step s1c: COMMIT;
67
68 starting permutation: s1b s2b s1u3pc s2i s1c s2c
69 step s1b: BEGIN ISOLATION LEVEL READ COMMITTED;
70 step s2b: BEGIN ISOLATION LEVEL READ COMMITTED;
71 step s1u3pc: UPDATE foo_range_parted SET a=11 WHERE a=7;
72 step s2i: INSERT INTO bar VALUES(7); <waiting ...>
73 step s1c: COMMIT;
74 step s2i: <... completed>
75 ERROR: tuple to be locked was already moved to another partition due to concurrent update
76 step s2c: COMMIT;
77
78 starting permutation: s1b s2b s1u3pc s2i s1r s2c
79 step s1b: BEGIN ISOLATION LEVEL READ COMMITTED;
80 step s2b: BEGIN ISOLATION LEVEL READ COMMITTED;
81 step s1u3pc: UPDATE foo_range_parted SET a=11 WHERE a=7;
82 step s2i: INSERT INTO bar VALUES(7); <waiting ...>
83 step s1r: ROLLBACK;
84 step s2i: <... completed>
85 step s2c: COMMIT;
86
87 starting permutation: s1b s2b s1u3npc s1u3pc s2i s1c s2c
88 step s1b: BEGIN ISOLATION LEVEL READ COMMITTED;
89 step s2b: BEGIN ISOLATION LEVEL READ COMMITTED;
90 step s1u3npc: UPDATE foo_range_parted SET b='XYZ' WHERE a=7;
91 step s1u3pc: UPDATE foo_range_parted SET a=11 WHERE a=7;
92 step s2i: INSERT INTO bar VALUES(7); <waiting ...>
93 step s1c: COMMIT;
94 step s2i: <... completed>
95 ERROR: tuple to be locked was already moved to another partition due to concurrent update
96 step s2c: COMMIT;
97
98 starting permutation: s1b s2b s1u3npc s1u3pc s2i s1r s2c
99 step s1b: BEGIN ISOLATION LEVEL READ COMMITTED;
100 step s2b: BEGIN ISOLATION LEVEL READ COMMITTED;
101 step s1u3npc: UPDATE foo_range_parted SET b='XYZ' WHERE a=7;
102 step s1u3pc: UPDATE foo_range_parted SET a=11 WHERE a=7;
103 step s2i: INSERT INTO bar VALUES(7); <waiting ...>
104 step s1r: ROLLBACK;
105 step s2i: <... completed>
106 step s2c: COMMIT;
107
108 starting permutation: s1b s2b s1u3npc s1u3pc s1u3pc s2i s1c s2c
109 step s1b: BEGIN ISOLATION LEVEL READ COMMITTED;
110 step s2b: BEGIN ISOLATION LEVEL READ COMMITTED;
111 step s1u3npc: UPDATE foo_range_parted SET b='XYZ' WHERE a=7;
112 step s1u3pc: UPDATE foo_range_parted SET a=11 WHERE a=7;
113 step s1u3pc: UPDATE foo_range_parted SET a=11 WHERE a=7;
114 step s2i: INSERT INTO bar VALUES(7); <waiting ...>
115 step s1c: COMMIT;
116 step s2i: <... completed>
117 ERROR: tuple to be locked was already moved to another partition due to concurrent update
118 step s2c: COMMIT;
119
120 starting permutation: s1b s2b s1u3npc s1u3pc s1u3pc s2i s1r s2c
121 step s1b: BEGIN ISOLATION LEVEL READ COMMITTED;
122 step s2b: BEGIN ISOLATION LEVEL READ COMMITTED;
123 step s1u3npc: UPDATE foo_range_parted SET b='XYZ' WHERE a=7;
124 step s1u3pc: UPDATE foo_range_parted SET a=11 WHERE a=7;
125 step s1u3pc: UPDATE foo_range_parted SET a=11 WHERE a=7;
126 step s2i: INSERT INTO bar VALUES(7); <waiting ...>
127 step s1r: ROLLBACK;
128 step s2i: <... completed>
129 step s2c: COMMIT;