Debian Codegraph @

src/test/isolation/expected/tuplelock-partition.out

raw
1 Parsed test spec with 2 sessions
2
3 starting permutation: s1b s1update_nokey s2locktuple s1c
4 step s1b: BEGIN;
5 step s1update_nokey: INSERT INTO parttab (key, col1, col2) VALUES (1, 'a', 'b') ON CONFLICT (key) DO UPDATE SET col1 = 'x', col2 = 'y';
6 step s2locktuple: SELECT * FROM parttab FOR KEY SHARE;
7 col1|key|col2
8 ----+---+----
9 a | 1|b
10 (1 row)
11
12 step s1c: COMMIT;
13
14 starting permutation: s1b s1update_key s2locktuple s1c
15 step s1b: BEGIN;
16 step s1update_key: INSERT INTO parttab (key, col1, col2) VALUES (1, 'a', 'b') ON CONFLICT (key) DO UPDATE SET key=1;
17 step s2locktuple: SELECT * FROM parttab FOR KEY SHARE; <waiting ...>
18 step s1c: COMMIT;
19 step s2locktuple: <... completed>
20 col1|key|col2
21 ----+---+----
22 a | 1|b
23 (1 row)
24