- Runs
VACUUM ANALYZEon all tables or selected tables - Optional
VACUUM FULLfor more aggressive space reclamation - Optional
REINDEXto 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: