vacuumdb -d appdb

Category: Databases & SQL

vacuumdb -d appdb

Vacuum a database from the shell

vacuumdb is the command-line wrapper for VACUUM, useful in cron jobs. Dead rows are removed so space can be reused, mirroring what autovacuum does in the background. Add --verbose to see per-table results.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.