postgresql_16:4.10.1 Routine Vacuuming
PostgreSQL 16 > Server Administration > Routine Database Maintenance Tasks > Routine Vacuuming
PostgreSQL databases require periodic maintenance known as *vacuuming*. For many installations, it is sufficient to let vacuuming be performed by the *autovacuum daemon*, which is described in (see postgresql_16:4.10.1.6). You might need to adjust the autovacuuming parameters described there to obtain best results for your situation. Some database administrators will want to supplement or replace the daemon's activities with manually-managed VACUUM commands, which typically are executed according to a schedule by cron or Task Scheduler scripts. To set up manually-managed vacuuming properly, it is essential to understand the issues discussed in the next few subsections. Administrators who rely on autovacuuming may still wish to skim this material to help them understand and adjust autovacuuming.
Subsections
- postgresql_16:4.10.1.1 Vacuuming Basics
- postgresql_16:4.10.1.2 Recovering Disk Space
- postgresql_16:4.10.1.3 Updating Planner Statistics
- postgresql_16:4.10.1.4 Updating the Visibility Map
- postgresql_16:4.10.1.5 Preventing Transaction ID Wraparound Failures
- postgresql_16:4.10.1.6 The Autovacuum Daemon