Adjust cluster_rel and vacuum_set_xid_limits calls to PG14 changes

PG14 adds an isTopLevel argument to cluster_rel and
vacuum_set_xid_limits.

https://github.com/postgres/postgres/commit/a7212be8b9
This commit is contained in:
Sven Klemm 2021-06-01 20:58:57 +02:00 committed by Sven Klemm
parent c270891a4e
commit c49a0b3e8e
2 changed files with 11 additions and 1 deletions

View File

@ -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();
}

View File

@ -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,