mirror of
https://github.com/timescale/timescaledb.git
synced 2025-05-19 20:24:46 +08:00
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:
parent
c270891a4e
commit
c49a0b3e8e
@ -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();
|
||||
}
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user