mirror of
				https://github.com/postgres/postgres.git
				synced 2025-11-03 09:13:20 +03:00 
			
		
		
		
	Fix the parameters order for TableAmRoutine.relation_copy_for_cluster()
Specify OldTable first, NewTable second as used by table_relation_copy_for_cluster() and as implemented in heapam_relation_copy_for_cluster(). Backpatch to PostgreSQL 12, where TableAmRoutine was introduced. Discussion: https://postgr.es/m/ME3P282MB3166860D4911AE82F92DF7C5B63F2%40ME3P282MB3166.AUSP282.PROD.OUTLOOK.COM Author: Japin Li Reviewed-by: Pavel Borisov Backpatch-through: 12
This commit is contained in:
		@@ -601,8 +601,8 @@ typedef struct TableAmRoutine
 | 
				
			|||||||
									   const RelFileNode *newrnode);
 | 
														   const RelFileNode *newrnode);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	/* See table_relation_copy_for_cluster() */
 | 
						/* See table_relation_copy_for_cluster() */
 | 
				
			||||||
	void		(*relation_copy_for_cluster) (Relation NewTable,
 | 
						void		(*relation_copy_for_cluster) (Relation OldTable,
 | 
				
			||||||
											  Relation OldTable,
 | 
																  Relation NewTable,
 | 
				
			||||||
											  Relation OldIndex,
 | 
																  Relation OldIndex,
 | 
				
			||||||
											  bool use_sort,
 | 
																  bool use_sort,
 | 
				
			||||||
											  TransactionId OldestXmin,
 | 
																  TransactionId OldestXmin,
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user