类型: | integer |
默认: | -1 (-1) |
最低限度: | -1 (-1) |
最大: | 2147483647 (2147483647ms) |
单元: | milliseconds (ms) |
上下文: | sighup |
重新开始: | false |
如果自动清理运行至少该值所指定的时间量,被自动清理执行的每一个动作都会被日志记录。 将该参数设置为0会记录所有的自动清理动作。 -1
(默认值)将禁用对自动清理动作的记录。 如果指定值时没有单位,则以毫秒为单位。 例如,如果你将它设置为250ms
,则所有运行250ms或更长时间的 自动清理和分析将被记录。此外,当该参数被设置为除-1
外的任何值时, 如果一个自动清理动作由于一个锁冲突或者被并发删除的关系而被跳过,将会为此记录一个消息。 开启这个参数对于追踪自动清理活动非常有用。这个参数只能在 postgresql.conf文件或者服务器命令行中设置。但是可以通过更改表的存储 参数为个别表覆盖这个设置。
建议 [EN]
Logs all autovacuum actions which take more than the specified time. Useful for figuring out if autovacuum is bogging down your system or blocking.
在 StackOverflow
在 pgsql-hackers
- Re: GIN pending list cleanup during autoanalyze blocks cleanup by VACUUM
- Re: should we enable log_checkpoints out of the box?
- Re: prion failed with ERROR: missing chunk number 0 for toast value 14334 in pg_toast_2619
- Re: pg14b1 stuck in lazy_scan_prune/heap_page_prune of pg_statistic
- Re: Suggestion: Unified options API. Need help from core team