mirror of
https://github.com/postgres/postgres.git
synced 2025-06-14 18:42:34 +03:00
Simplify vacuum_set_xid_limits() signature.
Pass VACUUM parameters (VacuumParams state) to vacuum_set_xid_limits() directly, rather than passing most individual VacuumParams fields as separate arguments. Also make vacuum_set_xid_limits() output parameter symbol names match those used by its vacuumlazy.c caller. Author: Peter Geoghegan <pg@bowt.ie> Discussion: https://postgr.es/m/CAH2-Wz=TE7gW5DgSahDkf0UEZigFGAoHNNN6EvSrdzC=Kn+hrA@mail.gmail.com
This commit is contained in:
@ -823,6 +823,7 @@ copy_table_data(Oid OIDNewHeap, Oid OIDOldHeap, Oid OIDOldIndex, bool verbose,
|
||||
Form_pg_class relform;
|
||||
TupleDesc oldTupDesc PG_USED_FOR_ASSERTS_ONLY;
|
||||
TupleDesc newTupDesc PG_USED_FOR_ASSERTS_ONLY;
|
||||
VacuumParams params;
|
||||
TransactionId OldestXmin,
|
||||
FreezeXid;
|
||||
MultiXactId OldestMxact,
|
||||
@ -914,7 +915,8 @@ copy_table_data(Oid OIDNewHeap, Oid OIDOldHeap, Oid OIDOldIndex, bool verbose,
|
||||
* Since we're going to rewrite the whole table anyway, there's no reason
|
||||
* not to be aggressive about this.
|
||||
*/
|
||||
vacuum_set_xid_limits(OldHeap, 0, 0, 0, 0, &OldestXmin, &OldestMxact,
|
||||
memset(¶ms, 0, sizeof(VacuumParams));
|
||||
vacuum_set_xid_limits(OldHeap, ¶ms, &OldestXmin, &OldestMxact,
|
||||
&FreezeXid, &MultiXactCutoff);
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user