Clamp result of MultiXactMemberFreezeThreshold

Heikki Linnakangas <heikki.linnakangas@iki.fi>

Commit: c425113eebb7dbc7f0031ed97b32f267a9cac75f
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: 2024-06-13T16:01:30Z
Releases: 17.0
Clamp result of MultiXactMemberFreezeThreshold

The purpose of the function is to reduce the effective
autovacuum_multixact_freeze_max_age if the multixact members SLRU is
approaching wraparound, to make multixid freezing more aggressive.
The returned value should therefore never be greater than plain
autovacuum_multixact_freeze_max_age.

Reviewed-by: Robert Haas
Discussion: https://www.postgresql.org/message-id/85fb354c-f89f-4d47-b3a2-3cbd461c90a3@iki.fi
Backpatch-through: 12, all supported versions

Files

PathChange+/−
src/backend/access/transam/multixact.c modified +8 −1

Discussion