| 1 |
Parsed test spec with 3 sessions |
| 2 |
|
| 3 |
starting permutation: foo_select bar_insert foo_insert foo_commit trouble_update bar_select bar_commit trouble_abort |
| 4 |
step foo_select: SELECT * FROM txn0 WHERE id = 42; |
| 5 |
id|val |
| 6 |
--+--- |
| 7 |
(0 rows) |
| 8 |
|
| 9 |
step bar_insert: INSERT INTO txn0 SELECT 42, 'bar_insert'; |
| 10 |
step foo_insert: INSERT INTO txn1 SELECT 7, 'foo_insert'; |
| 11 |
step foo_commit: COMMIT; |
| 12 |
step trouble_update: UPDATE txn1 SET val = 'add physical version for "bar_select"' WHERE id = 7; |
| 13 |
step bar_select: SELECT * FROM txn1 WHERE id = 7; |
| 14 |
ERROR: could not serialize access due to read/write dependencies among transactions |
| 15 |
step bar_commit: COMMIT; |
| 16 |
step trouble_abort: ABORT; |
| 17 |
|
| 18 |
starting permutation: foo_select bar_insert foo_insert foo_commit trouble_delete bar_select bar_commit trouble_abort |
| 19 |
step foo_select: SELECT * FROM txn0 WHERE id = 42; |
| 20 |
id|val |
| 21 |
--+--- |
| 22 |
(0 rows) |
| 23 |
|
| 24 |
step bar_insert: INSERT INTO txn0 SELECT 42, 'bar_insert'; |
| 25 |
step foo_insert: INSERT INTO txn1 SELECT 7, 'foo_insert'; |
| 26 |
step foo_commit: COMMIT; |
| 27 |
step trouble_delete: DELETE FROM txn1 WHERE id = 7; |
| 28 |
step bar_select: SELECT * FROM txn1 WHERE id = 7; |
| 29 |
ERROR: could not serialize access due to read/write dependencies among transactions |
| 30 |
step bar_commit: COMMIT; |
| 31 |
step trouble_abort: ABORT; |