admin 管理员组文章数量: 1086019
2024年4月14日发(作者:网站分析工具)
autovacuum触发条件
English Answer:
Triggers for Autovacuum.
Autovacuum is a PostgreSQL feature that automatically
removes dead tuples from tables. Dead tuples are rows that
have been deleted or updated, but still exist in the table.
Autovacuum can be triggered by the following events:
Transaction commit: When a transaction commits,
autovacuum checks if any of the tables that were modified
by the transaction need to be vacuumed.
Idle time: If PostgreSQL has been idle for a period of
time, autovacuum will check if any of the tables in the
database need to be vacuumed.
Manual invocation: Autovacuum can also be invoked
manually using the `VACUUM` or `VACUUM FULL` commands.
Autovacuum Parameters.
The following parameters can be used to control
autovacuum behavior:
autovacuum_vacuum_cost_limit: This parameter specifies
the maximum amount of work that autovacuum will perform in
a single vacuum operation.
autovacuum_vacuum_cost_delay: This parameter specifies
the minimum amount of time that must pass before autovacuum
will vacuum a table again.
autovacuum_vacuum_threshold: This parameter specifies
the percentage of dead tuples in a table that must exist
before autovacuum will vacuum the table.
autovacuum_vacuum_scale_factor: This parameter
specifies a multiplier that is used to adjust the
autovacuum_vacuum_threshold parameter based on the size of
the table.
版权声明:本文标题:autovacuum触发条件 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://roclinux.cn/p/1713082084a618952.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论