Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有几个关于 autovacuum 的问题:
在加载/更新数据或大查询的漫长过程之前关闭清理是否安全?
autovacuum 的推荐配置是什么?
广告1:是的,它是安全的,但是您需要重新启动PostgreSQL才能更改autovacuum设置。
autovacuum
广告 2:建议您坚持使用默认值。如果您发现 autovacuum 无法跟上,请考虑提高autovacuum_max_workers和autovacuum_vacuum_cost_limit.
autovacuum_max_workers
autovacuum_vacuum_cost_limit