PostgreSQL 9.3
Determinar si Autovacuum está funcionando
Esto es específico de Postgres 9.3 en UNIX. Para Windows, consulte esta pregunta .
Consultar la tabla del sistema de Postgres
SELECT
schemaname, relname,
last_vacuum, last_autovacuum,
vacuum_count, autovacuum_count -- not available on 9.0 and earlier
FROM pg_stat_user_tables;
Estado del proceso del sistema Grep
$ ps -axww | grep autovacuum
24352 ?? Ss 1:05.33 postgres: autovacuum launcher process (postgres)
Registro de Postgres de Grep
# grep autovacuum /var/log/postgresql
LOG: autovacuum launcher started
LOG: autovacuum launcher shutting down
Si quieres saber más sobre el autovacío actividad, establece log_min_messages
a DEBUG1..DEBUG5
. El comando SQL VACUUM VERBOSE
generará información a nivel de registro INFO
.
Con respecto al Autovacuum Daemon, los documentos de Posgres establecen:
Ver también:
- http://www.postgresql.org/docs/ current/static/routine-vacuuming.html
- http://www.postgresql.org/ docs/current/static/runtime-config-autovacuum.html