12
Settings
Configuration parameters
vacuum_freeze_min_age = 0 50 000 000
vacuum_freeze_table_age = 150 000 000
autovacuum_freeze_max_age = 200 000 000
vacuum_failsafe_age = 1 600 000 000
Table storage parameters
autovacuum_freeze_min_age
toast.autovacuum_freeze_min_age
autovacuum_freeze_table_age
toast.autovacuum_freeze_table_age
autovacuum_freeze_max_age
toast.autovacuum_freeze_max_age
↑?
The default values are quite conservative.
The limit for autovacuum_freeze_max_age is about 2 billion transactions,
but the default value is ten times smaller. We can increase the
vacuum_freeze_table_age and autovacuum_freeze_max_age values to
reduce overhead, but it is important to understand that if autovacuum fails to
complete freezing in time (for example, due to an active transaction), the
administrator will have little time to take action. Note that changing the
autovacuum_freeze_max_age parameter requires a server restart.
The default value of vacuum_failsafe_age is significantly larger than the
autovacuum_freeze_max_age, and if there is little time left before the
transaction ID exhaustion, the failsafe mechanism will accelerate freezing.
Note that the server can adjust the vacuum_freeze_min_age,
vacuum_freeze_table_age and vacuum_failsafe_age parameter settings
based on the autovacuum_freeze_max_age value.
Most of the parameters can also be set for individual tables using storage
parameters. This should only be done in special cases where a table
requires specific treatment. Note that the parameter names at the table level
differ slightly from the configuration parameter names.
Multitransactions (multixacts) and additional freezing settings for them are
discussed in the Locks module.