diff options
author | Alexander Korotkov <akorotkov@postgresql.org> | 2024-04-03 21:29:18 +0300 |
---|---|---|
committer | Alexander Korotkov <akorotkov@postgresql.org> | 2024-04-04 00:34:28 +0300 |
commit | 97ce821e3e171ce99fa7c398889ac08432cd0264 (patch) | |
tree | a146c277979c25af7d3c67c9fcc7cd6c9b2f9f77 /src | |
parent | f470b5c67924f791228e464b9c02cc1e53ef2906 (diff) | |
download | postgresql-97ce821e3e171ce99fa7c398889ac08432cd0264.tar.gz postgresql-97ce821e3e171ce99fa7c398889ac08432cd0264.zip |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/include/access/tableam.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/access/tableam.h b/src/include/access/tableam.h index 2c1a540155a..e7eeb754098 100644 --- a/src/include/access/tableam.h +++ b/src/include/access/tableam.h @@ -631,8 +631,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, |