- Runs
VACUUM ANALYZE
on all tables or selected tables - Optional
VACUUM FULL
for more aggressive space reclamation - Optional
REINDEX
to rebuild all indexes - Includes table size reporting before and after optimization
- Supports filtering tables (include/exclude lists)
- Provides detailed progress and timing information
- First, install the required dependency: