summaryrefslogtreecommitdiffstats
path: root/src/test/isolation/expected/skip-locked-2.out
blob: 3302d2e98750fb7f08cc49b08de752a0547e1298 (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
Parsed test spec with 2 sessions

starting permutation: s1a s2a s2b s1b s2c
step s1a: SELECT * FROM queue ORDER BY id FOR SHARE SKIP LOCKED LIMIT 1;
id|data|status
--+----+------
 1|foo |NEW   
(1 row)

step s2a: SELECT * FROM queue ORDER BY id FOR SHARE SKIP LOCKED LIMIT 1;
id|data|status
--+----+------
 1|foo |NEW   
(1 row)

step s2b: SELECT * FROM queue ORDER BY id FOR UPDATE SKIP LOCKED LIMIT 1;
id|data|status
--+----+------
 2|bar |NEW   
(1 row)

step s1b: COMMIT;
step s2c: COMMIT;

starting permutation: s2a s1a s2b s1b s2c
step s2a: SELECT * FROM queue ORDER BY id FOR SHARE SKIP LOCKED LIMIT 1;
id|data|status
--+----+------
 1|foo |NEW   
(1 row)

step s1a: SELECT * FROM queue ORDER BY id FOR SHARE SKIP LOCKED LIMIT 1;
id|data|status
--+----+------
 1|foo |NEW   
(1 row)

step s2b: SELECT * FROM queue ORDER BY id FOR UPDATE SKIP LOCKED LIMIT 1;
id|data|status
--+----+------
 2|bar |NEW   
(1 row)

step s1b: COMMIT;
step s2c: COMMIT;

starting permutation: s2a s2b s1a s1b s2c
step s2a: SELECT * FROM queue ORDER BY id FOR SHARE SKIP LOCKED LIMIT 1;
id|data|status
--+----+------
 1|foo |NEW   
(1 row)

step s2b: SELECT * FROM queue ORDER BY id FOR UPDATE SKIP LOCKED LIMIT 1;
id|data|status
--+----+------
 1|foo |NEW   
(1 row)

step s1a: SELECT * FROM queue ORDER BY id FOR SHARE SKIP LOCKED LIMIT 1;
id|data|status
--+----+------
 2|bar |NEW   
(1 row)

step s1b: COMMIT;
step s2c: COMMIT;