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