@@ -2,122 +2,126 @@ Parsed test spec with 2 sessions
2
2
3
3
starting permutation: s1b s1_insert_150 s1r s1_show_partitions s2b s2_insert_150 s2c s2_show_partitions
4
4
set_spawn_using_bgw
5
+ -------------------
6
+
7
+ (1 row)
5
8
6
-
7
9
step s1b: BEGIN;
8
10
step s1_insert_150: INSERT INTO range_rel SELECT generate_series(1, 150);
9
11
step s1r: ROLLBACK;
10
- step s1_show_partitions: SELECT c.consrc FROM pg_inherits i LEFT JOIN pg_constraint c
12
+ step s1_show_partitions: SELECT pg_get_constraintdef(c.oid) FROM pg_inherits i LEFT JOIN pg_constraint c
11
13
ON c.conrelid = i.inhrelid
12
- WHERE i.inhparent = 'range_rel'::regclass
14
+ WHERE i.inhparent = 'range_rel'::regclass AND c.contype = 'c'
13
15
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)
15
21
16
-
17
- ((id >= 1) AND (id < 101))
18
-
19
- ((id >= 101) AND (id < 201))
20
22
step s2b: BEGIN;
21
23
step s2_insert_150: INSERT INTO range_rel SELECT generate_series(1, 150);
22
24
step s2c: COMMIT;
23
- step s2_show_partitions: SELECT c.consrc FROM pg_inherits i LEFT JOIN pg_constraint c
25
+ step s2_show_partitions: SELECT pg_get_constraintdef(c.oid) FROM pg_inherits i LEFT JOIN pg_constraint c
24
26
ON c.conrelid = i.inhrelid
25
- WHERE i.inhparent = 'range_rel'::regclass
27
+ WHERE i.inhparent = 'range_rel'::regclass AND c.contype = 'c'
26
28
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)
28
34
29
-
30
- ((id >= 1) AND (id < 101))
31
-
32
- ((id >= 101) AND (id < 201))
33
35
34
36
starting permutation: s1b s1_insert_150 s1r s1_show_partitions s2b s2_insert_300 s2c s2_show_partitions
35
37
set_spawn_using_bgw
38
+ -------------------
39
+
40
+ (1 row)
36
41
37
-
38
42
step s1b: BEGIN;
39
43
step s1_insert_150: INSERT INTO range_rel SELECT generate_series(1, 150);
40
44
step s1r: ROLLBACK;
41
- step s1_show_partitions: SELECT c.consrc FROM pg_inherits i LEFT JOIN pg_constraint c
45
+ step s1_show_partitions: SELECT pg_get_constraintdef(c.oid) FROM pg_inherits i LEFT JOIN pg_constraint c
42
46
ON c.conrelid = i.inhrelid
43
- WHERE i.inhparent = 'range_rel'::regclass
47
+ WHERE i.inhparent = 'range_rel'::regclass AND c.contype = 'c'
44
48
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)
46
54
47
-
48
- ((id >= 1) AND (id < 101))
49
-
50
- ((id >= 101) AND (id < 201))
51
55
step s2b: BEGIN;
52
56
step s2_insert_300: INSERT INTO range_rel SELECT generate_series(151, 300);
53
57
step s2c: COMMIT;
54
- step s2_show_partitions: SELECT c.consrc FROM pg_inherits i LEFT JOIN pg_constraint c
58
+ step s2_show_partitions: SELECT pg_get_constraintdef(c.oid) FROM pg_inherits i LEFT JOIN pg_constraint c
55
59
ON c.conrelid = i.inhrelid
56
- WHERE i.inhparent = 'range_rel'::regclass
60
+ WHERE i.inhparent = 'range_rel'::regclass AND c.contype = 'c'
57
61
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)
59
68
60
-
61
- ((id >= 1) AND (id < 101))
62
-
63
- ((id >= 101) AND (id < 201))
64
-
65
- ((id >= 201) AND (id < 301))
66
69
67
70
starting permutation: s1b s1_insert_300 s1r s1_show_partitions s2b s2_insert_150 s2c s2_show_partitions
68
71
set_spawn_using_bgw
72
+ -------------------
73
+
74
+ (1 row)
69
75
70
-
71
76
step s1b: BEGIN;
72
77
step s1_insert_300: INSERT INTO range_rel SELECT generate_series(151, 300);
73
78
step s1r: ROLLBACK;
74
- step s1_show_partitions: SELECT c.consrc FROM pg_inherits i LEFT JOIN pg_constraint c
79
+ step s1_show_partitions: SELECT pg_get_constraintdef(c.oid) FROM pg_inherits i LEFT JOIN pg_constraint c
75
80
ON c.conrelid = i.inhrelid
76
- WHERE i.inhparent = 'range_rel'::regclass
81
+ WHERE i.inhparent = 'range_rel'::regclass AND c.contype = 'c'
77
82
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)
79
89
80
-
81
- ((id >= 1) AND (id < 101))
82
-
83
- ((id >= 101) AND (id < 201))
84
-
85
- ((id >= 201) AND (id < 301))
86
90
step s2b: BEGIN;
87
91
step s2_insert_150: INSERT INTO range_rel SELECT generate_series(1, 150);
88
92
step s2c: COMMIT;
89
- step s2_show_partitions: SELECT c.consrc FROM pg_inherits i LEFT JOIN pg_constraint c
93
+ step s2_show_partitions: SELECT pg_get_constraintdef(c.oid) FROM pg_inherits i LEFT JOIN pg_constraint c
90
94
ON c.conrelid = i.inhrelid
91
- WHERE i.inhparent = 'range_rel'::regclass
95
+ WHERE i.inhparent = 'range_rel'::regclass AND c.contype = 'c'
92
96
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)
94
103
95
-
96
- ((id >= 1) AND (id < 101))
97
-
98
- ((id >= 101) AND (id < 201))
99
-
100
- ((id >= 201) AND (id < 301))
101
104
102
105
starting permutation: s1b s1_insert_150 s2b s2_insert_300 s1r s2r s2_show_partitions
103
106
set_spawn_using_bgw
107
+ -------------------
108
+
109
+ (1 row)
104
110
105
-
106
111
step s1b: BEGIN;
107
112
step s1_insert_150: INSERT INTO range_rel SELECT generate_series(1, 150);
108
113
step s2b: BEGIN;
109
114
step s2_insert_300: INSERT INTO range_rel SELECT generate_series(151, 300);
110
115
step s1r: ROLLBACK;
111
116
step s2r: ROLLBACK;
112
- step s2_show_partitions: SELECT c.consrc FROM pg_inherits i LEFT JOIN pg_constraint c
117
+ step s2_show_partitions: SELECT pg_get_constraintdef(c.oid) FROM pg_inherits i LEFT JOIN pg_constraint c
113
118
ON c.conrelid = i.inhrelid
114
- WHERE i.inhparent = 'range_rel'::regclass
119
+ WHERE i.inhparent = 'range_rel'::regclass AND c.contype = 'c'
115
120
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)
117
127
118
-
119
- ((id >= 1) AND (id < 101))
120
-
121
- ((id >= 101) AND (id < 201))
122
-
123
- ((id >= 201) AND (id < 301))
0 commit comments