| 1 |
Parsed test spec with 3 sessions |
| 2 |
|
| 3 |
starting permutation: s2beginrr s3beginrr s1u s2donothing s1c s2c s3donothing s3c s2select |
| 4 |
step s2beginrr: BEGIN ISOLATION LEVEL REPEATABLE READ; |
| 5 |
step s3beginrr: BEGIN ISOLATION LEVEL REPEATABLE READ; |
| 6 |
step s1u: UPDATE foo SET a=2, b=b || ' -> moved by session-1' WHERE a=1; |
| 7 |
step s2donothing: INSERT INTO foo VALUES(1, 'session-2 donothing') ON CONFLICT DO NOTHING; <waiting ...> |
| 8 |
step s1c: COMMIT; |
| 9 |
step s2donothing: <... completed> |
| 10 |
step s2c: COMMIT; |
| 11 |
step s3donothing: INSERT INTO foo VALUES(2, 'session-3 donothing'), (2, 'session-3 donothing2') ON CONFLICT DO NOTHING; |
| 12 |
step s3c: COMMIT; |
| 13 |
step s2select: SELECT * FROM foo ORDER BY a; |
| 14 |
a|b |
| 15 |
-+----------------------------------- |
| 16 |
1|session-2 donothing |
| 17 |
2|initial tuple -> moved by session-1 |
| 18 |
(2 rows) |
| 19 |
|
| 20 |
|
| 21 |
starting permutation: s2beginrr s3beginrr s1u s3donothing s1c s3c s2donothing s2c s2select |
| 22 |
step s2beginrr: BEGIN ISOLATION LEVEL REPEATABLE READ; |
| 23 |
step s3beginrr: BEGIN ISOLATION LEVEL REPEATABLE READ; |
| 24 |
step s1u: UPDATE foo SET a=2, b=b || ' -> moved by session-1' WHERE a=1; |
| 25 |
step s3donothing: INSERT INTO foo VALUES(2, 'session-3 donothing'), (2, 'session-3 donothing2') ON CONFLICT DO NOTHING; <waiting ...> |
| 26 |
step s1c: COMMIT; |
| 27 |
step s3donothing: <... completed> |
| 28 |
ERROR: could not serialize access due to concurrent update |
| 29 |
step s3c: COMMIT; |
| 30 |
step s2donothing: INSERT INTO foo VALUES(1, 'session-2 donothing') ON CONFLICT DO NOTHING; |
| 31 |
step s2c: COMMIT; |
| 32 |
step s2select: SELECT * FROM foo ORDER BY a; |
| 33 |
a|b |
| 34 |
-+----------------------------------- |
| 35 |
1|session-2 donothing |
| 36 |
2|initial tuple -> moved by session-1 |
| 37 |
(2 rows) |
| 38 |
|
| 39 |
|
| 40 |
starting permutation: s2beginrr s3beginrr s1u s2donothing s3donothing s1c s2c s3c s2select |
| 41 |
step s2beginrr: BEGIN ISOLATION LEVEL REPEATABLE READ; |
| 42 |
step s3beginrr: BEGIN ISOLATION LEVEL REPEATABLE READ; |
| 43 |
step s1u: UPDATE foo SET a=2, b=b || ' -> moved by session-1' WHERE a=1; |
| 44 |
step s2donothing: INSERT INTO foo VALUES(1, 'session-2 donothing') ON CONFLICT DO NOTHING; <waiting ...> |
| 45 |
step s3donothing: INSERT INTO foo VALUES(2, 'session-3 donothing'), (2, 'session-3 donothing2') ON CONFLICT DO NOTHING; <waiting ...> |
| 46 |
step s1c: COMMIT; |
| 47 |
step s2donothing: <... completed> |
| 48 |
step s3donothing: <... completed> |
| 49 |
ERROR: could not serialize access due to concurrent update |
| 50 |
step s2c: COMMIT; |
| 51 |
step s3c: COMMIT; |
| 52 |
step s2select: SELECT * FROM foo ORDER BY a; |
| 53 |
a|b |
| 54 |
-+----------------------------------- |
| 55 |
1|session-2 donothing |
| 56 |
2|initial tuple -> moved by session-1 |
| 57 |
(2 rows) |
| 58 |
|
| 59 |
|
| 60 |
starting permutation: s2beginrr s3beginrr s1u s3donothing s2donothing s1c s3c s2c s2select |
| 61 |
step s2beginrr: BEGIN ISOLATION LEVEL REPEATABLE READ; |
| 62 |
step s3beginrr: BEGIN ISOLATION LEVEL REPEATABLE READ; |
| 63 |
step s1u: UPDATE foo SET a=2, b=b || ' -> moved by session-1' WHERE a=1; |
| 64 |
step s3donothing: INSERT INTO foo VALUES(2, 'session-3 donothing'), (2, 'session-3 donothing2') ON CONFLICT DO NOTHING; <waiting ...> |
| 65 |
step s2donothing: INSERT INTO foo VALUES(1, 'session-2 donothing') ON CONFLICT DO NOTHING; <waiting ...> |
| 66 |
step s1c: COMMIT; |
| 67 |
step s3donothing: <... completed> |
| 68 |
ERROR: could not serialize access due to concurrent update |
| 69 |
step s2donothing: <... completed> |
| 70 |
step s3c: COMMIT; |
| 71 |
step s2c: COMMIT; |
| 72 |
step s2select: SELECT * FROM foo ORDER BY a; |
| 73 |
a|b |
| 74 |
-+----------------------------------- |
| 75 |
1|session-2 donothing |
| 76 |
2|initial tuple -> moved by session-1 |
| 77 |
(2 rows) |
| 78 |
|
| 79 |
|
| 80 |
starting permutation: s2begins s3begins s1u s2donothing s1c s2c s3donothing s3c s2select |
| 81 |
step s2begins: BEGIN ISOLATION LEVEL SERIALIZABLE; |
| 82 |
step s3begins: BEGIN ISOLATION LEVEL SERIALIZABLE; |
| 83 |
step s1u: UPDATE foo SET a=2, b=b || ' -> moved by session-1' WHERE a=1; |
| 84 |
step s2donothing: INSERT INTO foo VALUES(1, 'session-2 donothing') ON CONFLICT DO NOTHING; <waiting ...> |
| 85 |
step s1c: COMMIT; |
| 86 |
step s2donothing: <... completed> |
| 87 |
step s2c: COMMIT; |
| 88 |
step s3donothing: INSERT INTO foo VALUES(2, 'session-3 donothing'), (2, 'session-3 donothing2') ON CONFLICT DO NOTHING; |
| 89 |
step s3c: COMMIT; |
| 90 |
step s2select: SELECT * FROM foo ORDER BY a; |
| 91 |
a|b |
| 92 |
-+----------------------------------- |
| 93 |
1|session-2 donothing |
| 94 |
2|initial tuple -> moved by session-1 |
| 95 |
(2 rows) |
| 96 |
|
| 97 |
|
| 98 |
starting permutation: s2begins s3begins s1u s3donothing s1c s3c s2donothing s2c s2select |
| 99 |
step s2begins: BEGIN ISOLATION LEVEL SERIALIZABLE; |
| 100 |
step s3begins: BEGIN ISOLATION LEVEL SERIALIZABLE; |
| 101 |
step s1u: UPDATE foo SET a=2, b=b || ' -> moved by session-1' WHERE a=1; |
| 102 |
step s3donothing: INSERT INTO foo VALUES(2, 'session-3 donothing'), (2, 'session-3 donothing2') ON CONFLICT DO NOTHING; <waiting ...> |
| 103 |
step s1c: COMMIT; |
| 104 |
step s3donothing: <... completed> |
| 105 |
ERROR: could not serialize access due to concurrent update |
| 106 |
step s3c: COMMIT; |
| 107 |
step s2donothing: INSERT INTO foo VALUES(1, 'session-2 donothing') ON CONFLICT DO NOTHING; |
| 108 |
step s2c: COMMIT; |
| 109 |
step s2select: SELECT * FROM foo ORDER BY a; |
| 110 |
a|b |
| 111 |
-+----------------------------------- |
| 112 |
1|session-2 donothing |
| 113 |
2|initial tuple -> moved by session-1 |
| 114 |
(2 rows) |
| 115 |
|
| 116 |
|
| 117 |
starting permutation: s2begins s3begins s1u s2donothing s3donothing s1c s2c s3c s2select |
| 118 |
step s2begins: BEGIN ISOLATION LEVEL SERIALIZABLE; |
| 119 |
step s3begins: BEGIN ISOLATION LEVEL SERIALIZABLE; |
| 120 |
step s1u: UPDATE foo SET a=2, b=b || ' -> moved by session-1' WHERE a=1; |
| 121 |
step s2donothing: INSERT INTO foo VALUES(1, 'session-2 donothing') ON CONFLICT DO NOTHING; <waiting ...> |
| 122 |
step s3donothing: INSERT INTO foo VALUES(2, 'session-3 donothing'), (2, 'session-3 donothing2') ON CONFLICT DO NOTHING; <waiting ...> |
| 123 |
step s1c: COMMIT; |
| 124 |
step s2donothing: <... completed> |
| 125 |
step s3donothing: <... completed> |
| 126 |
ERROR: could not serialize access due to concurrent update |
| 127 |
step s2c: COMMIT; |
| 128 |
step s3c: COMMIT; |
| 129 |
step s2select: SELECT * FROM foo ORDER BY a; |
| 130 |
a|b |
| 131 |
-+----------------------------------- |
| 132 |
1|session-2 donothing |
| 133 |
2|initial tuple -> moved by session-1 |
| 134 |
(2 rows) |
| 135 |
|
| 136 |
|
| 137 |
starting permutation: s2begins s3begins s1u s3donothing s2donothing s1c s3c s2c s2select |
| 138 |
step s2begins: BEGIN ISOLATION LEVEL SERIALIZABLE; |
| 139 |
step s3begins: BEGIN ISOLATION LEVEL SERIALIZABLE; |
| 140 |
step s1u: UPDATE foo SET a=2, b=b || ' -> moved by session-1' WHERE a=1; |
| 141 |
step s3donothing: INSERT INTO foo VALUES(2, 'session-3 donothing'), (2, 'session-3 donothing2') ON CONFLICT DO NOTHING; <waiting ...> |
| 142 |
step s2donothing: INSERT INTO foo VALUES(1, 'session-2 donothing') ON CONFLICT DO NOTHING; <waiting ...> |
| 143 |
step s1c: COMMIT; |
| 144 |
step s3donothing: <... completed> |
| 145 |
ERROR: could not serialize access due to concurrent update |
| 146 |
step s2donothing: <... completed> |
| 147 |
step s3c: COMMIT; |
| 148 |
step s2c: COMMIT; |
| 149 |
step s2select: SELECT * FROM foo ORDER BY a; |
| 150 |
a|b |
| 151 |
-+----------------------------------- |
| 152 |
1|session-2 donothing |
| 153 |
2|initial tuple -> moved by session-1 |
| 154 |
(2 rows) |
| 155 |
|