reindexdb
Rebuild indexes in a PostgreSQL database. tldr-pages
On several platforms
Several platforms
Reindex a specific database
reindexdb database_nameIdentifyReindex a specific database using connection options
reindexdb database_name --host hostname --port port --username usernameIdentifyReindex all databases
reindexdb --allIdentifyReindex a specific table in a database
reindexdb database_name --table table_nameIdentifyReindex a specific index in a database
reindexdb database_name --index index_nameIdentifyReindex a specific schema in a database
reindexdb database_name --schema schema_nameIdentifyReindex with verbose output
reindexdb database_name --verboseIdentifyReindex a database using multiple parallel jobs
reindexdb database_name --jobs number_of_jobsIdentify