@@ -11,30 +11,26 @@ step s1_insert_150: INSERT INTO range_rel SELECT generate_series(1, 150);
1111step s1r: ROLLBACK;
1212step s1_show_partitions: SELECT pg_get_constraintdef(c.oid) FROM pg_inherits i LEFT JOIN pg_constraint c
1313 ON c.conrelid = i.inhrelid
14- WHERE i.inhparent = 'range_rel'::regclass
14+ WHERE i.inhparent = 'range_rel'::regclass AND c.contype = 'c'
1515 ORDER BY c.oid;
1616pg_get_constraintdef
1717------------------------------------
18- PRIMARY KEY (id)
1918CHECK (((id >= 1) AND (id < 101)))
20- PRIMARY KEY (id)
2119CHECK (((id >= 101) AND (id < 201)))
22- (4 rows)
20+ (2 rows)
2321
2422step s2b: BEGIN;
2523step s2_insert_150: INSERT INTO range_rel SELECT generate_series(1, 150);
2624step s2c: COMMIT;
2725step s2_show_partitions: SELECT pg_get_constraintdef(c.oid) FROM pg_inherits i LEFT JOIN pg_constraint c
2826 ON c.conrelid = i.inhrelid
29- WHERE i.inhparent = 'range_rel'::regclass
27+ WHERE i.inhparent = 'range_rel'::regclass AND c.contype = 'c'
3028 ORDER BY c.oid;
3129pg_get_constraintdef
3230------------------------------------
33- PRIMARY KEY (id)
3431CHECK (((id >= 1) AND (id < 101)))
35- PRIMARY KEY (id)
3632CHECK (((id >= 101) AND (id < 201)))
37- (4 rows)
33+ (2 rows)
3834
3935
4036starting 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);
4844step s1r: ROLLBACK;
4945step s1_show_partitions: SELECT pg_get_constraintdef(c.oid) FROM pg_inherits i LEFT JOIN pg_constraint c
5046 ON c.conrelid = i.inhrelid
51- WHERE i.inhparent = 'range_rel'::regclass
47+ WHERE i.inhparent = 'range_rel'::regclass AND c.contype = 'c'
5248 ORDER BY c.oid;
5349pg_get_constraintdef
5450------------------------------------
55- PRIMARY KEY (id)
5651CHECK (((id >= 1) AND (id < 101)))
57- PRIMARY KEY (id)
5852CHECK (((id >= 101) AND (id < 201)))
59- (4 rows)
53+ (2 rows)
6054
6155step s2b: BEGIN;
6256step s2_insert_300: INSERT INTO range_rel SELECT generate_series(151, 300);
6357step s2c: COMMIT;
6458step s2_show_partitions: SELECT pg_get_constraintdef(c.oid) FROM pg_inherits i LEFT JOIN pg_constraint c
6559 ON c.conrelid = i.inhrelid
66- WHERE i.inhparent = 'range_rel'::regclass
60+ WHERE i.inhparent = 'range_rel'::regclass AND c.contype = 'c'
6761 ORDER BY c.oid;
6862pg_get_constraintdef
6963------------------------------------
70- PRIMARY KEY (id)
7164CHECK (((id >= 1) AND (id < 101)))
72- PRIMARY KEY (id)
7365CHECK (((id >= 101) AND (id < 201)))
74- PRIMARY KEY (id)
7566CHECK (((id >= 201) AND (id < 301)))
76- (6 rows)
67+ (3 rows)
7768
7869
7970starting 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);
8778step s1r: ROLLBACK;
8879step s1_show_partitions: SELECT pg_get_constraintdef(c.oid) FROM pg_inherits i LEFT JOIN pg_constraint c
8980 ON c.conrelid = i.inhrelid
90- WHERE i.inhparent = 'range_rel'::regclass
81+ WHERE i.inhparent = 'range_rel'::regclass AND c.contype = 'c'
9182 ORDER BY c.oid;
9283pg_get_constraintdef
9384------------------------------------
94- PRIMARY KEY (id)
9585CHECK (((id >= 1) AND (id < 101)))
96- PRIMARY KEY (id)
9786CHECK (((id >= 101) AND (id < 201)))
98- PRIMARY KEY (id)
9987CHECK (((id >= 201) AND (id < 301)))
100- (6 rows)
88+ (3 rows)
10189
10290step s2b: BEGIN;
10391step s2_insert_150: INSERT INTO range_rel SELECT generate_series(1, 150);
10492step s2c: COMMIT;
10593step s2_show_partitions: SELECT pg_get_constraintdef(c.oid) FROM pg_inherits i LEFT JOIN pg_constraint c
10694 ON c.conrelid = i.inhrelid
107- WHERE i.inhparent = 'range_rel'::regclass
95+ WHERE i.inhparent = 'range_rel'::regclass AND c.contype = 'c'
10896 ORDER BY c.oid;
10997pg_get_constraintdef
11098------------------------------------
111- PRIMARY KEY (id)
11299CHECK (((id >= 1) AND (id < 101)))
113- PRIMARY KEY (id)
114100CHECK (((id >= 101) AND (id < 201)))
115- PRIMARY KEY (id)
116101CHECK (((id >= 201) AND (id < 301)))
117- (6 rows)
102+ (3 rows)
118103
119104
120105starting permutation: s1b s1_insert_150 s2b s2_insert_300 s1r s2r s2_show_partitions
@@ -131,15 +116,12 @@ step s1r: ROLLBACK;
131116step s2r: ROLLBACK;
132117step s2_show_partitions: SELECT pg_get_constraintdef(c.oid) FROM pg_inherits i LEFT JOIN pg_constraint c
133118 ON c.conrelid = i.inhrelid
134- WHERE i.inhparent = 'range_rel'::regclass
119+ WHERE i.inhparent = 'range_rel'::regclass AND c.contype = 'c'
135120 ORDER BY c.oid;
136121pg_get_constraintdef
137122------------------------------------
138- PRIMARY KEY (id)
139123CHECK (((id >= 1) AND (id < 101)))
140- PRIMARY KEY (id)
141124CHECK (((id >= 101) AND (id < 201)))
142- PRIMARY KEY (id)
143125CHECK (((id >= 201) AND (id < 301)))
144- (6 rows)
126+ (3 rows)
145127