summaryrefslogtreecommitdiffstats
path: root/src/test/isolation/expected/partition-key-update-1.out
blob: 7dee144f2ffb149bf420870299c6e106f0419952 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
Parsed test spec with 2 sessions

starting permutation: s1b s2b s1u s1c s2d s2c
step s1b: BEGIN ISOLATION LEVEL READ COMMITTED;
step s2b: BEGIN ISOLATION LEVEL READ COMMITTED;
step s1u: UPDATE foo SET a=2 WHERE a=1;
step s1c: COMMIT;
step s2d: DELETE FROM foo WHERE a=1;
step s2c: COMMIT;

starting permutation: s1b s2b s1u s2d s1c s2c
step s1b: BEGIN ISOLATION LEVEL READ COMMITTED;
step s2b: BEGIN ISOLATION LEVEL READ COMMITTED;
step s1u: UPDATE foo SET a=2 WHERE a=1;
step s2d: DELETE FROM foo WHERE a=1; <waiting ...>
step s1c: COMMIT;
step s2d: <... completed>
ERROR:  tuple to be locked was already moved to another partition due to concurrent update
step s2c: COMMIT;

starting permutation: s1b s2b s1u s2u s1c s2c
step s1b: BEGIN ISOLATION LEVEL READ COMMITTED;
step s2b: BEGIN ISOLATION LEVEL READ COMMITTED;
step s1u: UPDATE foo SET a=2 WHERE a=1;
step s2u: UPDATE foo SET b='EFG' WHERE a=1; <waiting ...>
step s1c: COMMIT;
step s2u: <... completed>
ERROR:  tuple to be locked was already moved to another partition due to concurrent update
step s2c: COMMIT;

starting permutation: s1b s2b s2d s1u s2c s1c
step s1b: BEGIN ISOLATION LEVEL READ COMMITTED;
step s2b: BEGIN ISOLATION LEVEL READ COMMITTED;
step s2d: DELETE FROM foo WHERE a=1;
step s1u: UPDATE foo SET a=2 WHERE a=1; <waiting ...>
step s2c: COMMIT;
step s1u: <... completed>
step s1c: COMMIT;

starting permutation: s1b s2b s1u2 s1c s2u2 s2c
step s1b: BEGIN ISOLATION LEVEL READ COMMITTED;
step s2b: BEGIN ISOLATION LEVEL READ COMMITTED;
step s1u2: UPDATE footrg SET b='EFG' WHERE a=1;
step s1c: COMMIT;
step s2u2: UPDATE footrg SET b='XYZ' WHERE a=1;
step s2c: COMMIT;

starting permutation: s1b s2b s1u2 s2u2 s1c s2c
step s1b: BEGIN ISOLATION LEVEL READ COMMITTED;
step s2b: BEGIN ISOLATION LEVEL READ COMMITTED;
step s1u2: UPDATE footrg SET b='EFG' WHERE a=1;
step s2u2: UPDATE footrg SET b='XYZ' WHERE a=1; <waiting ...>
step s1c: COMMIT;
step s2u2: <... completed>
ERROR:  tuple to be locked was already moved to another partition due to concurrent update
step s2c: COMMIT;

starting permutation: s1b s2b s2u2 s1u2 s2c s1c
step s1b: BEGIN ISOLATION LEVEL READ COMMITTED;
step s2b: BEGIN ISOLATION LEVEL READ COMMITTED;
step s2u2: UPDATE footrg SET b='XYZ' WHERE a=1;
step s1u2: UPDATE footrg SET b='EFG' WHERE a=1; <waiting ...>
step s2c: COMMIT;
step s1u2: <... completed>
ERROR:  tuple to be locked was already moved to another partition due to concurrent update
step s1c: COMMIT;

starting permutation: s1b s2b s1u3pc s2i s1c s2c
step s1b: BEGIN ISOLATION LEVEL READ COMMITTED;
step s2b: BEGIN ISOLATION LEVEL READ COMMITTED;
step s1u3pc: UPDATE foo_range_parted SET a=11 WHERE a=7;
step s2i: INSERT INTO bar VALUES(7); <waiting ...>
step s1c: COMMIT;
step s2i: <... completed>
ERROR:  tuple to be locked was already moved to another partition due to concurrent update
step s2c: COMMIT;

starting permutation: s1b s2b s1u3pc s2i s1r s2c
step s1b: BEGIN ISOLATION LEVEL READ COMMITTED;
step s2b: BEGIN ISOLATION LEVEL READ COMMITTED;
step s1u3pc: UPDATE foo_range_parted SET a=11 WHERE a=7;
step s2i: INSERT INTO bar VALUES(7); <waiting ...>
step s1r: ROLLBACK;
step s2i: <... completed>
step s2c: COMMIT;

starting permutation: s1b s2b s1u3npc s1u3pc s2i s1c s2c
step s1b: BEGIN ISOLATION LEVEL READ COMMITTED;
step s2b: BEGIN ISOLATION LEVEL READ COMMITTED;
step s1u3npc: UPDATE foo_range_parted SET b='XYZ' WHERE a=7;
step s1u3pc: UPDATE foo_range_parted SET a=11 WHERE a=7;
step s2i: INSERT INTO bar VALUES(7); <waiting ...>
step s1c: COMMIT;
step s2i: <... completed>
ERROR:  tuple to be locked was already moved to another partition due to concurrent update
step s2c: COMMIT;

starting permutation: s1b s2b s1u3npc s1u3pc s2i s1r s2c
step s1b: BEGIN ISOLATION LEVEL READ COMMITTED;
step s2b: BEGIN ISOLATION LEVEL READ COMMITTED;
step s1u3npc: UPDATE foo_range_parted SET b='XYZ' WHERE a=7;
step s1u3pc: UPDATE foo_range_parted SET a=11 WHERE a=7;
step s2i: INSERT INTO bar VALUES(7); <waiting ...>
step s1r: ROLLBACK;
step s2i: <... completed>
step s2c: COMMIT;

starting permutation: s1b s2b s1u3npc s1u3pc s1u3pc s2i s1c s2c
step s1b: BEGIN ISOLATION LEVEL READ COMMITTED;
step s2b: BEGIN ISOLATION LEVEL READ COMMITTED;
step s1u3npc: UPDATE foo_range_parted SET b='XYZ' WHERE a=7;
step s1u3pc: UPDATE foo_range_parted SET a=11 WHERE a=7;
step s1u3pc: UPDATE foo_range_parted SET a=11 WHERE a=7;
step s2i: INSERT INTO bar VALUES(7); <waiting ...>
step s1c: COMMIT;
step s2i: <... completed>
ERROR:  tuple to be locked was already moved to another partition due to concurrent update
step s2c: COMMIT;

starting permutation: s1b s2b s1u3npc s1u3pc s1u3pc s2i s1r s2c
step s1b: BEGIN ISOLATION LEVEL READ COMMITTED;
step s2b: BEGIN ISOLATION LEVEL READ COMMITTED;
step s1u3npc: UPDATE foo_range_parted SET b='XYZ' WHERE a=7;
step s1u3pc: UPDATE foo_range_parted SET a=11 WHERE a=7;
step s1u3pc: UPDATE foo_range_parted SET a=11 WHERE a=7;
step s2i: INSERT INTO bar VALUES(7); <waiting ...>
step s1r: ROLLBACK;
step s2i: <... completed>
step s2c: COMMIT;