The automatic cleanup process (autovacuum) in the system automatically runs the VACUUM and ANALYZE statements to reclaim the record space marked as deleted and update statistics about the table.
Parameter description: Specifies whether to start the automatic cleanup process (autovacuum). Ensure that the track_counts parameter is set to on before enabling the automatic cleanup process.
Type: SIGHUP
Value range: Boolean
Default value: on
Parameter description: Specifies whether the autoanalyze or autovacuum function is enabled. This parameter is valid only when autovacuum is set to on.
Type: SIGHUP
Value range: enumerated values
Default value: mix
Parameter description: Specifies the timeout period of autoanalyze. If the duration of analyze on a table exceeds the value of autoanalyze_timeout, analyze is automatically canceled.
Type: SIGHUP
Value range: an integer ranging from 0 to 2147483. The unit is second.
Default value: 5min
Parameter description: Specifies the upper limit of I/Os triggered by the autovacuum process per second. This parameter has been discarded in version 8.1.2 and is reserved for compatibility with earlier versions. This parameter is invalid in the current version.
Type: SIGHUP
Value range: an integer ranging from –1 to 1073741823. –1 indicates that the default Cgroup is used.
Default value: –1
Parameter description: Specifies the maximum number of automatic cleanup threads running at the same time.
Type: SIGHUP
Value range: an integer ranging from 0 to 128. 0 indicates that autovacuum is disabled.
Default value: 3
Parameter description: Specifies the interval between two automatic cleanup operations.
Type: SIGHUP
Value range: an integer ranging from 1 to 2147483. The unit is second.
Default value: 60s
Parameter description: Specifies the threshold for triggering the VACUUM operation. When the number of deleted or updated records in a table exceeds the specified threshold, the VACUUM operation is executed on this table.
Type: SIGHUP
Value range: an integer ranging from 0 to INT_MAX
Default value: 50
Parameter description: Specifies the threshold for triggering the ANALYZE operation. When the number of deleted, inserted, or updated records in a table exceeds the specified threshold, the ANALYZE operation is executed on this table.
Type: SIGHUP
Value range: an integer ranging from 0 to INT_MAX
Default value:
Parameter description: Specifies the size scaling factor of a table added to the autovacuum_vacuum_threshold parameter when a VACUUM event is triggered.
Type: SIGHUP
Value range: a floating point number ranging from 0.0 to 100.0
Default value: 0.2
Parameter description: Specifies the size scaling factor of a table added to the autovacuum_analyze_threshold parameter when an ANALYZE event is triggered.
Type: SIGHUP
Value range: a floating point number ranging from 0.0 to 100.0
Default value:
Parameter description: Specifies the maximum age (in transactions) that a table's pg_class.relfrozenxid column can attain before a VACUUM operation is forced to prevent transaction ID wraparound within the table.
The old files under the subdirectory of pg_clog/ can also be deleted by the VACUUM operation. Even if the automatic cleanup process is forbidden, the system will invoke the automatic cleanup process to prevent the cyclic repetition.
Type: SIGHUP
Value range: an integer ranging from 100000 to 576460752303423487
Default value: 4000000000
Parameter description: Specifies the value of the cost delay used in the autovacuum operation.
Type: SIGHUP
Value range: an integer ranging from –1 to 100. The unit is ms. -1 indicates that the normal vacuum cost delay is used.
Default value: 2ms
Parameter description: Specifies the value of the cost limit used in the autovacuum operation.
Type: SIGHUP
Value range: an integer ranging from –1 to 10000. -1 indicates that the normal vacuum cost limit is used.
Default value: –1