blob: ba18fa77d45b1d62c776b5451087bfcd63b9b900 (
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
|
Parsed test spec with 2 sessions
starting permutation: s1a s2a s2b s1b s2c
step s1a: SELECT * FROM foo FOR SHARE NOWAIT;
id|data
--+----
1|x
(1 row)
step s2a: SELECT * FROM foo FOR SHARE NOWAIT;
id|data
--+----
1|x
(1 row)
step s2b: SELECT * FROM foo FOR UPDATE NOWAIT;
ERROR: could not obtain lock on row in relation "foo"
step s1b: COMMIT;
step s2c: COMMIT;
starting permutation: s2a s1a s2b s1b s2c
step s2a: SELECT * FROM foo FOR SHARE NOWAIT;
id|data
--+----
1|x
(1 row)
step s1a: SELECT * FROM foo FOR SHARE NOWAIT;
id|data
--+----
1|x
(1 row)
step s2b: SELECT * FROM foo FOR UPDATE NOWAIT;
ERROR: could not obtain lock on row in relation "foo"
step s1b: COMMIT;
step s2c: COMMIT;
starting permutation: s2a s2b s1a s1b s2c
step s2a: SELECT * FROM foo FOR SHARE NOWAIT;
id|data
--+----
1|x
(1 row)
step s2b: SELECT * FROM foo FOR UPDATE NOWAIT;
id|data
--+----
1|x
(1 row)
step s1a: SELECT * FROM foo FOR SHARE NOWAIT;
ERROR: could not obtain lock on row in relation "foo"
step s1b: COMMIT;
step s2c: COMMIT;
|