diff options
author | Peter Geoghegan <pg@bowt.ie> | 2022-11-23 11:10:06 -0800 |
---|---|---|
committer | Peter Geoghegan <pg@bowt.ie> | 2022-11-23 11:10:06 -0800 |
commit | b6074846cebc33d752f1d9a66e5a9932f21ad177 (patch) | |
tree | 33a2668556fa0ac3bb62c6759186588c3e4d1a0b /src/include/commands | |
parent | 02d647bbf0576ebb87f9dc24e1db4dd034f04048 (diff) | |
download | postgresql-b6074846cebc33d752f1d9a66e5a9932f21ad177.tar.gz |
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
Diffstat (limited to 'src/include/commands')
-rw-r--r-- | src/include/commands/vacuum.h | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/src/include/commands/vacuum.h b/src/include/commands/vacuum.h index 5d816ba7f4..b63751c468 100644 --- a/src/include/commands/vacuum.h +++ b/src/include/commands/vacuum.h @@ -286,15 +286,11 @@ extern void vac_update_relstats(Relation relation, bool *frozenxid_updated, bool *minmulti_updated, bool in_outer_xact); -extern bool vacuum_set_xid_limits(Relation rel, - int freeze_min_age, - int multixact_freeze_min_age, - int freeze_table_age, - int multixact_freeze_table_age, - TransactionId *oldestXmin, - MultiXactId *oldestMxact, - TransactionId *freezeLimit, - MultiXactId *multiXactCutoff); +extern bool vacuum_set_xid_limits(Relation rel, const VacuumParams *params, + TransactionId *OldestXmin, + MultiXactId *OldestMxact, + TransactionId *FreezeLimit, + MultiXactId *MultiXactCutoff); extern bool vacuum_xid_failsafe_check(TransactionId relfrozenxid, MultiXactId relminmxid); extern void vac_update_datfrozenxid(void); |