aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlexander Korotkov <akorotkov@postgresql.org>2024-04-03 21:29:18 +0300
committerAlexander Korotkov <akorotkov@postgresql.org>2024-04-03 21:31:06 +0300
commitc2faf48fa3b262f57cb999a3ab1e00e8d46176cd (patch)
tree6a823c6c770d2388864e1c3e7b8a1600f6c0409c /src
parent4fb56a734d4c40c75ccfd8c4b2948266b8bf6e5d (diff)
downloadpostgresql-c2faf48fa3b262f57cb999a3ab1e00e8d46176cd.tar.gz
postgresql-c2faf48fa3b262f57cb999a3ab1e00e8d46176cd.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.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/access/tableam.h b/src/include/access/tableam.h
index 5d0431a21b5..6a7b4a54725 100644
--- a/src/include/access/tableam.h
+++ b/src/include/access/tableam.h
@@ -601,8 +601,8 @@ typedef struct TableAmRoutine
const RelFileNode *newrnode);
/* 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,