YMatrix
Quick Start
Simulate Time Series Scenarios
Standard Cluster Deployment
Data Modeling
Connecting to The database
Data Writing
Data Migration
Data Query
Scene Application Examples
Federal Query
Maintenance and Monitoring
Global Maintenance
Partition Maintenance
Backup and Restore
Cluster Expansion
Enable Mirroring
Resource Management
Security
Monitoring
Performance Tuning
Troubleshooting
Reference Guide
Tool Guide
Data Type
Storage Engine
Execution Engine
Stream Processing
DR (Disaster Recovery)
Configuration Parameters
Index
Extension
SQL Reference
FAQ
This document describes the parameters related to the automatic cleanup category in the system configuration parameters.
Notes!
To ensure system stability and security, please exercise caution when manually modifying relevant parameters.
Control whether the server runs the autovacuum background process.
track_counts
must also be enabled for autovacuum to work properly. If track_counts
is set to off
, autovacuum
will not take effect on its own. Data Type | Default Value | Setting Category |
---|---|---|
boolean | off | master; system; reload |
Specify a fraction of the table size to be added to autovacuum_analyze_threshold
when determining whether to trigger ANALYZE
.
0.1
(10% of the table size). However, this setting can be overridden for individual tables by modifying the table storage parameters.Data type | Default value | Value range | Setting category |
---|---|---|---|
Floating point | 0.1 | 0.0 ~ 100.0 | Segments; Session; Reload |
Specify the minimum number of tuples that can be inserted, updated, or deleted on a table to trigger ANALYZE
.
Data type | Default value | Value range | Setting category |
---|---|---|---|
int | 50 | 0 ~ INT_MAX | segments;system;reload |
The maximum age (in transactions) that a table's pg_class.relfrozenxid
field can maintain before a VACUUM
operation is forced to prevent transaction ID rollback in the table.
pg_xact
subdirectory, which is why the default value is set to a relatively low 200 million transactions.Data type | Default value | Value range | Setting category |
---|---|---|---|
int | 200000000 | 100000 ~ 200000000 | segments;system;restart |
Specify the maximum number of automatic cleanup processes (other than the automatic cleanup launcher) that can run simultaneously.
Data type | Default value | Value range | Setting category |
---|---|---|---|
int | 3 | 1 ~ 262143 | segments;system;restart |
The maximum age (multi-transaction) that a table's pg_class.relminmxid
field can maintain before a VACUUM operation is enforced to prevent multi-transaction ID rollbacks in the table.
pg_multixact/members
and pg_multixact/offsets
subdirectories, which is why the default value is set to a relatively low 400 million transactions.Data type | Default value | Value range | Setting category |
---|---|---|---|
int | 400000000 | 10000 ~ 2000000000 | segments;system;restart |
When the autovacuum
parameter is enabled, this parameter specifies the minimum delay time (in seconds) for automatic cleanup to run on any given database.
VACUUM
and ANALYZE
commands for tables in the database based on the needs of system catalogs and auxiliary tables.Data type | Default value | Value range | Setting category |
---|---|---|---|
int | 60 | 1 ~ (INT_MAX/1000) | master;system;restart |
Specifies the cost delay value (in milliseconds) used in automatic VACUUM
operations.
-1
is specified, the vacuum_cost_delay
value is used.2 milliseconds
.Data type | Default value | Value range | Setting category |
---|---|---|---|
floating point | 2 | -1 ~ 100 | segments;system;reload |
Specifies the cost limit value used in automatic VACUUM
operations.
-1
(the default value) is specified, the vacuum_cost_limit
value is used.Data type | Default value | Value range | Setting category |
---|---|---|---|
int | -1 | -1 ~ 10000 | segments;system;reload |
Specify a fraction of the table size to add to autovacuum_vacuum_threshold
when deciding whether to trigger VACUUM
.
0.2
(20% of the table size).Data type | Default value | Value range | Setting category |
---|---|---|---|
floating point | 0.2 | 0.0 ~ 1.0 | segments;system;reload |
Specifies the minimum number of updated or deleted tuples that can trigger a VACUUM
operation on a table.
Data type | Default value | Value range | Setting category |
---|---|---|---|
int | 50 | 1 ~ INT_MAX | segments;system;reload |
If the automatic cleanup operation runs for at least the time specified by this parameter value, every action performed by the automatic cleanup will be logged.
0
will log all automatic cleanup actions.-1
(default value) will disable logging of automatic cleanup actions.250ms
, all automatic cleanup and analysis operations that run for 250ms
or longer will be logged.-1
, if an automatic cleanup action is skipped due to a lock conflict or concurrent deletion of a related object, a message will be logged for this.Data type | Default value | Value range | Setting category |
---|---|---|---|
int | -1 | -1 ~ INT_MAX | segments;system;reload |
Control the statistics of database activity collection.
| Data type | Default value | Value range | Setting category | | --- | --- | --- | | boolean | true | master;session;reload;superuser |