diff options
| author | Peter Geoghegan | 2022-02-12 02:26:15 +0000 |
|---|---|---|
| committer | Peter Geoghegan | 2022-02-12 02:26:15 +0000 |
| commit | efa4a9462a072b4cd6459058df274dd23022d0e2 (patch) | |
| tree | 8adfe9b4a3e94e7d2f7bab72d775952880e784d4 /src/include/commands | |
| parent | 872770fd6ccf12596b9e26234df9a37cae083af2 (diff) | |
Consolidate VACUUM xid cutoff logic.
Push the logic for determining whether or not a VACUUM operation will be
aggressive down into vacuum_set_xid_limits(). This makes the function's
signature significantly simpler, and seems clearer overall.
Author: Peter Geoghegan <pg@bowt.ie>
Discussion: https://postgr.es/m/CAH2-WzkymFbz6D_vL+jmqSn_5q1wsFvFrE+37yLgL_Rkfd6Gzg@mail.gmail.com
Diffstat (limited to 'src/include/commands')
| -rw-r--r-- | src/include/commands/vacuum.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/include/commands/vacuum.h b/src/include/commands/vacuum.h index e5e548d6b9..d64f6268f2 100644 --- a/src/include/commands/vacuum.h +++ b/src/include/commands/vacuum.h @@ -286,15 +286,13 @@ extern void vac_update_relstats(Relation relation, bool *frozenxid_updated, bool *minmulti_updated, bool in_outer_xact); -extern void vacuum_set_xid_limits(Relation rel, +extern bool vacuum_set_xid_limits(Relation rel, int freeze_min_age, int freeze_table_age, int multixact_freeze_min_age, int multixact_freeze_table_age, TransactionId *oldestXmin, TransactionId *freezeLimit, - TransactionId *xidFullScanLimit, - MultiXactId *multiXactCutoff, - MultiXactId *mxactFullScanLimit); + MultiXactId *multiXactCutoff); extern bool vacuum_xid_failsafe_check(TransactionId relfrozenxid, MultiXactId relminmxid); extern void vac_update_datfrozenxid(void); |
