mirror of
https://github.com/postgres/postgres.git
synced 2025-10-24 01:29:19 +03:00
Teach autovacuum about multixact member wraparound.
The logic introduced in commitb69bf30b9band repaired in commits669c7d20e6and7be47c56afhelps to ensure that we don't overwrite old multixact member information while it is still needed, but a user who creates many large multixacts can still exhaust the member space (and thus start getting errors) while autovacuum stands idly by. To fix this, progressively ramp down the effective value (but not the actual contents) of autovacuum_multixact_freeze_max_age as member space utilization increases. This makes autovacuum more aggressive and also reduces the threshold for a manual VACUUM to perform a full-table scan. This patch leaves unsolved the problem of ensuring that emergency autovacuums are triggered even when autovacuum=off. We'll need to fix that via a separate patch. Thomas Munro and Robert Haas
This commit is contained in:
@@ -126,6 +126,7 @@ extern void MultiXactAdvanceNextMXact(MultiXactId minMulti,
|
||||
MultiXactOffset minMultiOffset);
|
||||
extern void MultiXactAdvanceOldest(MultiXactId oldestMulti, Oid oldestMultiDB);
|
||||
extern void MultiXactSetSafeTruncate(MultiXactId safeTruncateMulti);
|
||||
extern int MultiXactMemberFreezeThreshold(void);
|
||||
|
||||
extern void multixact_twophase_recover(TransactionId xid, uint16 info,
|
||||
void *recdata, uint32 len);
|
||||
|
||||
Reference in New Issue
Block a user