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