mirror of
https://github.com/postgres/postgres.git
synced 2025-07-27 12:41:57 +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:
@ -360,12 +360,7 @@ heap_vacuum_rel(Relation rel, VacuumParams *params,
|
||||
* an aggressive VACUUM then lazy_scan_heap cannot leave behind unfrozen
|
||||
* XIDs < FreezeLimit (all MXIDs < MultiXactCutoff also need to go away).
|
||||
*/
|
||||
aggressive = vacuum_set_xid_limits(rel,
|
||||
params->freeze_min_age,
|
||||
params->multixact_freeze_min_age,
|
||||
params->freeze_table_age,
|
||||
params->multixact_freeze_table_age,
|
||||
&OldestXmin, &OldestMxact,
|
||||
aggressive = vacuum_set_xid_limits(rel, params, &OldestXmin, &OldestMxact,
|
||||
&FreezeLimit, &MultiXactCutoff);
|
||||
|
||||
skipwithvm = true;
|
||||
|
Reference in New Issue
Block a user