Postgresql 9.3
确定是否正在运行Autovacuum
这是特定于Unix上的Postgres 9.3。对于Windows,请参阅此 问题.
查询Postgres系统表
SELECT
schemaname, relname,
last_vacuum, last_autovacuum,
vacuum_count, autovacuum_count -- not available on 9.0 and earlier
FROM pg_stat_user_tables;
GREP系统过程状态
$ ps -axww | grep autovacuum
24352 ?? Ss 1:05.33 postgres: autovacuum launcher process (postgres)
Grep Postgres日志
# grep autovacuum /var/log/postgresql
LOG: autovacuum launcher started
LOG: autovacuum launcher shutting down
如果您想进一步了解 Autovacuum 活动,设置 log_min_messages
至 DEBUG1..DEBUG5
. 。 SQL命令 VACUUM VERBOSE
将在日志级别输出信息 INFO
.
关于Autovacuum守护程序,Posgres Docs国家:
在默认配置中,启用了AutoVacuuming,并适当设置相关配置参数。
也可以看看: