Commit
2ac3ef7a0 added a query with an underdetermined output row order;
it has failed multiple times in the buildfarm since then. Add an ORDER BY
to fix. Also, don't rely on a DROP CASCADE to drop in a well-determined
order; that hasn't failed yet but I don't trust it much, and we're not
saving any typing by using CASCADE anyway.
where attname = 'a'
and (attrelid = 'p'::regclass
or attrelid = 'p1'::regclass
- or attrelid = 'p11'::regclass);
+ or attrelid = 'p11'::regclass)
+order by attrelid::regclass::text;
attrelid | attname | attnum
----------+---------+--------
p | a | 1
(1 row)
-- cleanup
-drop table p cascade;
-NOTICE: drop cascades to 2 other objects
-DETAIL: drop cascades to table p1
-drop cascades to table p11
+drop table p, p1, p11;
where attname = 'a'
and (attrelid = 'p'::regclass
or attrelid = 'p1'::regclass
- or attrelid = 'p11'::regclass);
+ or attrelid = 'p11'::regclass)
+order by attrelid::regclass::text;
alter table p1 attach partition p11 for values from (2) to (5);
alter table p attach partition p1 for values from (1, 2) to (1, 10);
select tableoid::regclass, * from p;
-- cleanup
-drop table p cascade;
+drop table p, p1, p11;