diff --git a/src/process_utility.c b/src/process_utility.c index 8ac73cdf2..a0fdba7cb 100644 --- a/src/process_utility.c +++ b/src/process_utility.c @@ -2635,7 +2635,14 @@ process_cluster_start(ProcessUtilityArgs *args) * Since we keep OIDs between transactions, there is a potential * issue if an OID gets reassigned between two subtransactions */ - cluster_rel(cim->chunkoid, cim->indexoid, stmt->options); + cluster_rel(cim->chunkoid, + cim->indexoid, + stmt->options +#if PG14_GE + , + args->context == PROCESS_UTILITY_TOPLEVEL +#endif + ); PopActiveSnapshot(); CommitTransactionCommand(); } diff --git a/tsl/src/reorder.c b/tsl/src/reorder.c index f5d24738a..f0020c93b 100644 --- a/tsl/src/reorder.c +++ b/tsl/src/reorder.c @@ -627,6 +627,9 @@ copy_heap_data(Oid OIDNewHeap, Oid OIDOldHeap, Oid OIDOldIndex, bool verbose, 0, 0, 0, +#if PG14_GE + true, +#endif &OldestXmin, &FreezeXid, NULL,