Debian Codegraph @

src/test/isolation/expected/insert-conflict-do-update-3.out

raw
1 Parsed test spec with 2 sessions
2
3 starting permutation: update2 insert1 c2 select1surprise c1
4 step update2: UPDATE colors SET is_active = true WHERE key = 1;
5 step insert1:
6 WITH t AS (
7 INSERT INTO colors(key, color, is_active)
8 VALUES(1, 'Brown', true), (2, 'Gray', true)
9 ON CONFLICT (key) DO UPDATE
10 SET color = EXCLUDED.color
11 WHERE colors.is_active)
12 SELECT * FROM colors ORDER BY key; <waiting ...>
13 step c2: COMMIT;
14 step insert1: <... completed>
15 key|color|is_active
16 ---+-----+---------
17 1|Red |f
18 2|Green|f
19 3|Blue |f
20 (3 rows)
21
22 step select1surprise: SELECT * FROM colors ORDER BY key;
23 key|color|is_active
24 ---+-----+---------
25 1|Brown|t
26 2|Green|f
27 3|Blue |f
28 (3 rows)
29
30 step c1: COMMIT;