@@ -2,122 +2,126 @@ Parsed test spec with 2 sessions
22
33starting permutation: s1b s1_insert_150 s1r s1_show_partitions s2b s2_insert_150 s2c s2_show_partitions
44set_spawn_using_bgw
5+ -------------------
6+
7+ (1 row)
58
6-
79step s1b: BEGIN;
810step s1_insert_150: INSERT INTO range_rel SELECT generate_series(1, 150);
911step s1r: ROLLBACK;
10- step s1_show_partitions: SELECTc.consrc FROM pg_inherits i LEFT JOIN pg_constraint c
12+ step s1_show_partitions: SELECTpg_get_constraintdef(c.oid) FROM pg_inherits i LEFT JOIN pg_constraint c
1113 ON c.conrelid = i.inhrelid
12- WHERE i.inhparent = 'range_rel'::regclass
14+ WHERE i.inhparent = 'range_rel'::regclass AND c.contype = 'c'
1315 ORDER BY c.oid;
14- consrc
16+ pg_get_constraintdef
17+ ------------------------------------
18+ CHECK (((id >= 1) AND (id < 101)))
19+ CHECK (((id >= 101) AND (id < 201)))
20+ (2 rows)
1521
16-
17- ((id >= 1) AND (id < 101))
18-
19- ((id >= 101) AND (id < 201))
2022step s2b: BEGIN;
2123step s2_insert_150: INSERT INTO range_rel SELECT generate_series(1, 150);
2224step s2c: COMMIT;
23- step s2_show_partitions: SELECTc.consrc FROM pg_inherits i LEFT JOIN pg_constraint c
25+ step s2_show_partitions: SELECTpg_get_constraintdef(c.oid) FROM pg_inherits i LEFT JOIN pg_constraint c
2426 ON c.conrelid = i.inhrelid
25- WHERE i.inhparent = 'range_rel'::regclass
27+ WHERE i.inhparent = 'range_rel'::regclass AND c.contype = 'c'
2628 ORDER BY c.oid;
27- consrc
29+ pg_get_constraintdef
30+ ------------------------------------
31+ CHECK (((id >= 1) AND (id < 101)))
32+ CHECK (((id >= 101) AND (id < 201)))
33+ (2 rows)
2834
29-
30- ((id >= 1) AND (id < 101))
31-
32- ((id >= 101) AND (id < 201))
3335
3436starting permutation: s1b s1_insert_150 s1r s1_show_partitions s2b s2_insert_300 s2c s2_show_partitions
3537set_spawn_using_bgw
38+ -------------------
39+
40+ (1 row)
3641
37-
3842step s1b: BEGIN;
3943step s1_insert_150: INSERT INTO range_rel SELECT generate_series(1, 150);
4044step s1r: ROLLBACK;
41- step s1_show_partitions: SELECTc.consrc FROM pg_inherits i LEFT JOIN pg_constraint c
45+ step s1_show_partitions: SELECTpg_get_constraintdef(c.oid) FROM pg_inherits i LEFT JOIN pg_constraint c
4246 ON c.conrelid = i.inhrelid
43- WHERE i.inhparent = 'range_rel'::regclass
47+ WHERE i.inhparent = 'range_rel'::regclass AND c.contype = 'c'
4448 ORDER BY c.oid;
45- consrc
49+ pg_get_constraintdef
50+ ------------------------------------
51+ CHECK (((id >= 1) AND (id < 101)))
52+ CHECK (((id >= 101) AND (id < 201)))
53+ (2 rows)
4654
47-
48- ((id >= 1) AND (id < 101))
49-
50- ((id >= 101) AND (id < 201))
5155step s2b: BEGIN;
5256step s2_insert_300: INSERT INTO range_rel SELECT generate_series(151, 300);
5357step s2c: COMMIT;
54- step s2_show_partitions: SELECTc.consrc FROM pg_inherits i LEFT JOIN pg_constraint c
58+ step s2_show_partitions: SELECTpg_get_constraintdef(c.oid) FROM pg_inherits i LEFT JOIN pg_constraint c
5559 ON c.conrelid = i.inhrelid
56- WHERE i.inhparent = 'range_rel'::regclass
60+ WHERE i.inhparent = 'range_rel'::regclass AND c.contype = 'c'
5761 ORDER BY c.oid;
58- consrc
62+ pg_get_constraintdef
63+ ------------------------------------
64+ CHECK (((id >= 1) AND (id < 101)))
65+ CHECK (((id >= 101) AND (id < 201)))
66+ CHECK (((id >= 201) AND (id < 301)))
67+ (3 rows)
5968
60-
61- ((id >= 1) AND (id < 101))
62-
63- ((id >= 101) AND (id < 201))
64-
65- ((id >= 201) AND (id < 301))
6669
6770starting permutation: s1b s1_insert_300 s1r s1_show_partitions s2b s2_insert_150 s2c s2_show_partitions
6871set_spawn_using_bgw
72+ -------------------
73+
74+ (1 row)
6975
70-
7176step s1b: BEGIN;
7277step s1_insert_300: INSERT INTO range_rel SELECT generate_series(151, 300);
7378step s1r: ROLLBACK;
74- step s1_show_partitions: SELECTc.consrc FROM pg_inherits i LEFT JOIN pg_constraint c
79+ step s1_show_partitions: SELECTpg_get_constraintdef(c.oid) FROM pg_inherits i LEFT JOIN pg_constraint c
7580 ON c.conrelid = i.inhrelid
76- WHERE i.inhparent = 'range_rel'::regclass
81+ WHERE i.inhparent = 'range_rel'::regclass AND c.contype = 'c'
7782 ORDER BY c.oid;
78- consrc
83+ pg_get_constraintdef
84+ ------------------------------------
85+ CHECK (((id >= 1) AND (id < 101)))
86+ CHECK (((id >= 101) AND (id < 201)))
87+ CHECK (((id >= 201) AND (id < 301)))
88+ (3 rows)
7989
80-
81- ((id >= 1) AND (id < 101))
82-
83- ((id >= 101) AND (id < 201))
84-
85- ((id >= 201) AND (id < 301))
8690step s2b: BEGIN;
8791step s2_insert_150: INSERT INTO range_rel SELECT generate_series(1, 150);
8892step s2c: COMMIT;
89- step s2_show_partitions: SELECTc.consrc FROM pg_inherits i LEFT JOIN pg_constraint c
93+ step s2_show_partitions: SELECTpg_get_constraintdef(c.oid) FROM pg_inherits i LEFT JOIN pg_constraint c
9094 ON c.conrelid = i.inhrelid
91- WHERE i.inhparent = 'range_rel'::regclass
95+ WHERE i.inhparent = 'range_rel'::regclass AND c.contype = 'c'
9296 ORDER BY c.oid;
93- consrc
97+ pg_get_constraintdef
98+ ------------------------------------
99+ CHECK (((id >= 1) AND (id < 101)))
100+ CHECK (((id >= 101) AND (id < 201)))
101+ CHECK (((id >= 201) AND (id < 301)))
102+ (3 rows)
94103
95-
96- ((id >= 1) AND (id < 101))
97-
98- ((id >= 101) AND (id < 201))
99-
100- ((id >= 201) AND (id < 301))
101104
102105starting permutation: s1b s1_insert_150 s2b s2_insert_300 s1r s2r s2_show_partitions
103106set_spawn_using_bgw
107+ -------------------
108+
109+ (1 row)
104110
105-
106111step s1b: BEGIN;
107112step s1_insert_150: INSERT INTO range_rel SELECT generate_series(1, 150);
108113step s2b: BEGIN;
109114step s2_insert_300: INSERT INTO range_rel SELECT generate_series(151, 300);
110115step s1r: ROLLBACK;
111116step s2r: ROLLBACK;
112- step s2_show_partitions: SELECTc.consrc FROM pg_inherits i LEFT JOIN pg_constraint c
117+ step s2_show_partitions: SELECTpg_get_constraintdef(c.oid) FROM pg_inherits i LEFT JOIN pg_constraint c
113118 ON c.conrelid = i.inhrelid
114- WHERE i.inhparent = 'range_rel'::regclass
119+ WHERE i.inhparent = 'range_rel'::regclass AND c.contype = 'c'
115120 ORDER BY c.oid;
116- consrc
121+ pg_get_constraintdef
122+ ------------------------------------
123+ CHECK (((id >= 1) AND (id < 101)))
124+ CHECK (((id >= 101) AND (id < 201)))
125+ CHECK (((id >= 201) AND (id < 301)))
126+ (3 rows)
117127
118-
119- ((id >= 1) AND (id < 101))
120-
121- ((id >= 101) AND (id < 201))
122-
123- ((id >= 201) AND (id < 301))