Fix the parameters order for TableAmRoutine.relation_copy_for_cluster()
authorAlexander Korotkov
Wed, 3 Apr 2024 18:29:18 +0000 (21:29 +0300)
committerAlexander Korotkov
Wed, 3 Apr 2024 18:42:38 +0000 (21:42 +0300)
commitbafad43c37bf531f392e65ba726c253040b608f2
tree0f64704387430f85a283d87aafcd19a2e6efc410
parentcbfbb14bd7de9e90fb107cdcaa783264bf8fcdb9
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
src/include/access/tableam.h