mirror of
https://github.com/postgres/postgres.git
synced 2025-10-22 14:32:25 +03:00
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
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user