After reading the Postgresql documentation, we found that it's recommendable to run the Vacuum tasks daily:
We recommend that active production databases be vacuumed frequently (at least nightly), in order to remove dead rows.
Nonetheless, we're considering running the Reindex tasks in a daily basis too, but we're concerned about the possible implications of doing it (maybe the database size could increase as a consequence of the daily reindex, for example)
All the time (with
autovacuum=on
) and also weekly withvacuumdb -avz
, logging output to file.Only when needed. To check if it is needed see -> http://bucardo.org/check_postgres/check_postgres.pl.html#bloat, http://wiki.postgresql.org/wiki/Show_database_bloat
Unneeded I/O, unneeded locking.