Documentation / Storage Parameters / TOAST tables
toast.autovacuum_freeze_max_age
TOAST autovacuum_freeze_max_age
Per-table value for autovacuum_freeze_max_age parameter. Note that autovacuum will ignore per-table autovacuum_freeze_max_age parameters that are larger than the system-wide setting (it can only be set smaller).
Reading PostgreSQL 18.6.
Description
Per-table value for autovacuum_freeze_max_age parameter. Note that autovacuum will ignore per-table autovacuum_freeze_max_age parameters that are larger than the system-wide setting (it can only be set smaller).
- Applies to
- TOAST tables
- Value type
- integer
Usage
WITH (toast.autovacuum_freeze_max_age = value)TOAST inheritance
This option applies to the associated TOAST table. Set it with the toast. prefix in WITH or ALTER TABLE SET. An unset TOAST option inherits the corresponding explicitly set parent-table option.
The manual describes table and TOAST forms together. Autoanalyze does not apply to TOAST tables; only explicitly documented toast. forms are listed here.
Common table storage rules
The WITH clause can specify storage parameters for tables, and for indexes associated with a UNIQUE , PRIMARY KEY , or EXCLUDE constraint. Storage parameters for indexes are documented in CREATE INDEX . The storage parameters currently available for tables are listed below. For many of these parameters, as shown, there is an additional parameter with the same name prefixed with toast. , which controls the behavior of the table's secondary TOAST table, if any (see Section 66.2 for more information about TOAST). If a table parameter value is set and the equivalent toast. parameter is not, the TOAST table will use the table's parameter value. Specifying these parameters for partitioned tables is not supported, but you may specify them for individual leaf partitions.
Materialized views
This clause specifies optional storage parameters for the new materialized view; see Storage Parameters in the CREATE TABLE documentation for more information. All parameters supported for CREATE TABLE are also supported for CREATE MATERIALIZED VIEW . See CREATE TABLE for more information.
Related global parameter: autovacuum_freeze_max_age
The following same-version GUC definition explains its purpose and units. Global defaults and activation rules describe the GUC; the relation-option override rules remain those above.
Specifies the maximum age (in transactions) that a table's pg_class . relfrozenxid field can attain before a VACUUM operation is forced to prevent transaction ID wraparound within the table. Note that the system will launch autovacuum processes to prevent wraparound even when autovacuum is otherwise disabled.
Vacuum also allows removal of old files from the pg_xact subdirectory, which is why the default is a relatively low 200 million transactions. This parameter can only be set at server start, but the setting can be reduced for individual tables by changing table storage parameters. For more information see Section 24.1.5 .
Related entries
Documentation and source
- PostgreSQL 18 English manual
- Related global parameter: autovacuum_freeze_max_age
- PostgreSQL 18 English manual
Source build
- Version
- 18.6
- Build
- Local English manual 18.6
- Source fingerprint
eb6c2292fdf28e1b4635ab478eec3919411cdf4a6c07553387870e26201f3744
Related entries
toast.autovacuum_enabledTOAST autovacuum_enabledtoast.autovacuum_freeze_min_ageTOAST autovacuum_freeze_min_agetoast.autovacuum_freeze_table_ageTOAST autovacuum_freeze_table_agetoast.autovacuum_multixact_freeze_max_ageTOAST autovacuum_multixact_freeze_max_agetoast.autovacuum_multixact_freeze_min_ageTOAST autovacuum_multixact_freeze_min_agetoast.autovacuum_multixact_freeze_table_ageTOAST autovacuum_multixact_freeze_table_agetoast.autovacuum_vacuum_cost_delayTOAST autovacuum_vacuum_cost_delaytoast.autovacuum_vacuum_cost_limitTOAST autovacuum_vacuum_cost_limittoast.autovacuum_vacuum_insert_scale_factorTOAST autovacuum_vacuum_insert_scale_factortoast.autovacuum_vacuum_insert_thresholdTOAST autovacuum_vacuum_insert_thresholdtoast.autovacuum_vacuum_max_thresholdTOAST autovacuum_vacuum_max_thresholdtoast.autovacuum_vacuum_scale_factorTOAST autovacuum_vacuum_scale_factor
Back to Storage Parameters · Recorded in PostgreSQL 10 through 20; the first sample is not necessarily its introduction.