| 1 |
Parsed test spec with 2 sessions |
| 2 |
|
| 3 |
starting permutation: s1a s2a s2b s1b s2c |
| 4 |
step s1a: SELECT * FROM queue ORDER BY id FOR SHARE SKIP LOCKED LIMIT 1; |
| 5 |
id|data|status |
| 6 |
--+----+------ |
| 7 |
1|foo |NEW |
| 8 |
(1 row) |
| 9 |
|
| 10 |
step s2a: SELECT * FROM queue ORDER BY id FOR SHARE SKIP LOCKED LIMIT 1; |
| 11 |
id|data|status |
| 12 |
--+----+------ |
| 13 |
1|foo |NEW |
| 14 |
(1 row) |
| 15 |
|
| 16 |
step s2b: SELECT * FROM queue ORDER BY id FOR UPDATE SKIP LOCKED LIMIT 1; |
| 17 |
id|data|status |
| 18 |
--+----+------ |
| 19 |
2|bar |NEW |
| 20 |
(1 row) |
| 21 |
|
| 22 |
step s1b: COMMIT; |
| 23 |
step s2c: COMMIT; |
| 24 |
|
| 25 |
starting permutation: s2a s1a s2b s1b s2c |
| 26 |
step s2a: SELECT * FROM queue ORDER BY id FOR SHARE SKIP LOCKED LIMIT 1; |
| 27 |
id|data|status |
| 28 |
--+----+------ |
| 29 |
1|foo |NEW |
| 30 |
(1 row) |
| 31 |
|
| 32 |
step s1a: SELECT * FROM queue ORDER BY id FOR SHARE SKIP LOCKED LIMIT 1; |
| 33 |
id|data|status |
| 34 |
--+----+------ |
| 35 |
1|foo |NEW |
| 36 |
(1 row) |
| 37 |
|
| 38 |
step s2b: SELECT * FROM queue ORDER BY id FOR UPDATE SKIP LOCKED LIMIT 1; |
| 39 |
id|data|status |
| 40 |
--+----+------ |
| 41 |
2|bar |NEW |
| 42 |
(1 row) |
| 43 |
|
| 44 |
step s1b: COMMIT; |
| 45 |
step s2c: COMMIT; |
| 46 |
|
| 47 |
starting permutation: s2a s2b s1a s1b s2c |
| 48 |
step s2a: SELECT * FROM queue ORDER BY id FOR SHARE SKIP LOCKED LIMIT 1; |
| 49 |
id|data|status |
| 50 |
--+----+------ |
| 51 |
1|foo |NEW |
| 52 |
(1 row) |
| 53 |
|
| 54 |
step s2b: SELECT * FROM queue ORDER BY id FOR UPDATE SKIP LOCKED LIMIT 1; |
| 55 |
id|data|status |
| 56 |
--+----+------ |
| 57 |
1|foo |NEW |
| 58 |
(1 row) |
| 59 |
|
| 60 |
step s1a: SELECT * FROM queue ORDER BY id FOR SHARE SKIP LOCKED LIMIT 1; |
| 61 |
id|data|status |
| 62 |
--+----+------ |
| 63 |
2|bar |NEW |
| 64 |
(1 row) |
| 65 |
|
| 66 |
step s1b: COMMIT; |
| 67 |
step s2c: COMMIT; |