Debian Codegraph @

contrib/test_decoding/expected/mxact.out

raw
1 Parsed test spec with 3 sessions
2
3 starting permutation: s0init s0start s1begin s1sharepgclass s2begin s2sharepgclass s0w s0start s2commit s1commit
4 step s0init: SELECT 'init' FROM pg_create_logical_replication_slot('isolation_slot', 'test_decoding');
5 ?column?
6 --------
7 init
8 (1 row)
9
10 step s0start: SELECT data FROM pg_logical_slot_get_changes('isolation_slot', NULL, NULL, 'include-xids', 'false');
11 data
12 ----
13 (0 rows)
14
15 step s1begin: BEGIN;
16 step s1sharepgclass: SELECT count(*) > 1 FROM (SELECT * FROM pg_class FOR SHARE) s;
17 ?column?
18 --------
19 t
20 (1 row)
21
22 step s2begin: BEGIN;
23 step s2sharepgclass: SELECT count(*) > 1 FROM (SELECT * FROM pg_class FOR SHARE) s;
24 ?column?
25 --------
26 t
27 (1 row)
28
29 step s0w: INSERT INTO do_write DEFAULT VALUES;
30 step s0start: SELECT data FROM pg_logical_slot_get_changes('isolation_slot', NULL, NULL, 'include-xids', 'false');
31 data
32 --------------------------------------------
33 BEGIN
34 table public.do_write: INSERT: id[integer]:1
35 COMMIT
36 (3 rows)
37
38 step s2commit: COMMIT;
39 step s1commit: COMMIT;
40 ?column?
41 --------
42 stop
43 (1 row)
44
45
46 starting permutation: s0init s0start s1begin s1keysharepgclass s2begin s2keysharepgclass s0alter s0w s0start s2commit s1commit
47 step s0init: SELECT 'init' FROM pg_create_logical_replication_slot('isolation_slot', 'test_decoding');
48 ?column?
49 --------
50 init
51 (1 row)
52
53 step s0start: SELECT data FROM pg_logical_slot_get_changes('isolation_slot', NULL, NULL, 'include-xids', 'false');
54 data
55 ----
56 (0 rows)
57
58 step s1begin: BEGIN;
59 step s1keysharepgclass: SELECT count(*) > 1 FROM (SELECT * FROM pg_class FOR KEY SHARE) s;
60 ?column?
61 --------
62 t
63 (1 row)
64
65 step s2begin: BEGIN;
66 step s2keysharepgclass: SELECT count(*) > 1 FROM (SELECT * FROM pg_class FOR KEY SHARE) s;
67 ?column?
68 --------
69 t
70 (1 row)
71
72 step s0alter: ALTER TABLE do_write ADD column ts timestamptz;
73 step s0w: INSERT INTO do_write DEFAULT VALUES;
74 step s0start: SELECT data FROM pg_logical_slot_get_changes('isolation_slot', NULL, NULL, 'include-xids', 'false');
75 data
76 ------------------------------------------------------------------------------
77 BEGIN
78 COMMIT
79 BEGIN
80 table public.do_write: INSERT: id[integer]:1 ts[timestamp with time zone]:null
81 COMMIT
82 (5 rows)
83
84 step s2commit: COMMIT;
85 step s1commit: COMMIT;
86 ?column?
87 --------
88 stop
89 (1 row)
90