summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Korotkov2024-04-03 18:29:18 +0000
committerAlexander Korotkov2024-04-03 18:42:38 +0000
commitbafad43c37bf531f392e65ba726c253040b608f2 (patch)
tree0f64704387430f85a283d87aafcd19a2e6efc410
parentcbfbb14bd7de9e90fb107cdcaa783264bf8fcdb9 (diff)
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
-rw-r--r--src/include/access/tableam.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/access/tableam.h b/src/include/access/tableam.h
index ac7b279f322..5e195fd292f 100644
--- a/src/include/access/tableam.h
+++ b/src/include/access/tableam.h
@@ -617,8 +617,8 @@ typedef struct TableAmRoutine
const RelFileLocator *newrlocator);
/* See table_relation_copy_for_cluster() */
- void (*relation_copy_for_cluster) (Relation NewTable,
- Relation OldTable,
+ void (*relation_copy_for_cluster) (Relation OldTable,
+ Relation NewTable,
Relation OldIndex,
bool use_sort,
TransactionId OldestXmin,