mirror of
				https://github.com/postgres/postgres.git
				synced 2025-11-03 09:13:20 +03:00 
			
		
		
		
	Stabilize regression tests introduced by 259c96fa8f
				
					
				
			Add the ORDER BY clause to new queries to avoid ordering ambiguity. Per buildfarm member rorqual.
This commit is contained in:
		@@ -871,11 +871,12 @@ CREATE TABLE tp_1_2 PARTITION OF t FOR VALUES FROM (1) TO (2);
 | 
			
		||||
ALTER TABLE t MERGE PARTITIONS (tp_0_1, tp_1_2) INTO tp_0_2;
 | 
			
		||||
SELECT c.relname, a.amname
 | 
			
		||||
FROM pg_class c JOIN pg_am a ON c.relam = a.oid
 | 
			
		||||
WHERE c.oid IN ('t'::regclass, 'tp_0_2'::regclass);
 | 
			
		||||
WHERE c.oid IN ('t'::regclass, 'tp_0_2'::regclass)
 | 
			
		||||
ORDER BY c.relname;
 | 
			
		||||
 relname |        amname         
 | 
			
		||||
---------+-----------------------
 | 
			
		||||
 tp_0_2  | partitions_merge_heap
 | 
			
		||||
 t       | partitions_merge_heap
 | 
			
		||||
 tp_0_2  | partitions_merge_heap
 | 
			
		||||
(2 rows)
 | 
			
		||||
 | 
			
		||||
DROP TABLE t;
 | 
			
		||||
 
 | 
			
		||||
@@ -1503,7 +1503,8 @@ ALTER TABLE t SPLIT PARTITION tp_0_2 INTO
 | 
			
		||||
   PARTITION tp_1_2 FOR VALUES FROM (1) TO (2));
 | 
			
		||||
SELECT c.relname, a.amname
 | 
			
		||||
FROM pg_class c JOIN pg_am a ON c.relam = a.oid
 | 
			
		||||
WHERE c.oid IN ('t'::regclass, 'tp_0_1'::regclass, 'tp_1_2'::regclass);
 | 
			
		||||
WHERE c.oid IN ('t'::regclass, 'tp_0_1'::regclass, 'tp_1_2'::regclass)
 | 
			
		||||
ORDER BY c.relname;
 | 
			
		||||
 relname |        amname        
 | 
			
		||||
---------+----------------------
 | 
			
		||||
 t       | partition_split_heap
 | 
			
		||||
 
 | 
			
		||||
@@ -544,7 +544,8 @@ CREATE TABLE tp_1_2 PARTITION OF t FOR VALUES FROM (1) TO (2);
 | 
			
		||||
ALTER TABLE t MERGE PARTITIONS (tp_0_1, tp_1_2) INTO tp_0_2;
 | 
			
		||||
SELECT c.relname, a.amname
 | 
			
		||||
FROM pg_class c JOIN pg_am a ON c.relam = a.oid
 | 
			
		||||
WHERE c.oid IN ('t'::regclass, 'tp_0_2'::regclass);
 | 
			
		||||
WHERE c.oid IN ('t'::regclass, 'tp_0_2'::regclass)
 | 
			
		||||
ORDER BY c.relname;
 | 
			
		||||
DROP TABLE t;
 | 
			
		||||
DROP ACCESS METHOD partitions_merge_heap;
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -889,7 +889,8 @@ ALTER TABLE t SPLIT PARTITION tp_0_2 INTO
 | 
			
		||||
   PARTITION tp_1_2 FOR VALUES FROM (1) TO (2));
 | 
			
		||||
SELECT c.relname, a.amname
 | 
			
		||||
FROM pg_class c JOIN pg_am a ON c.relam = a.oid
 | 
			
		||||
WHERE c.oid IN ('t'::regclass, 'tp_0_1'::regclass, 'tp_1_2'::regclass);
 | 
			
		||||
WHERE c.oid IN ('t'::regclass, 'tp_0_1'::regclass, 'tp_1_2'::regclass)
 | 
			
		||||
ORDER BY c.relname;
 | 
			
		||||
DROP TABLE t;
 | 
			
		||||
DROP ACCESS METHOD partition_split_heap;
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user