Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions pages/common/reindexdb.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# reindexdb

> Rebuild indexes in a PostgreSQL database.
> More information: <https://www.postgresql.org/docs/current/app-reindexdb.html>.

- Reindex a specific database:

`reindexdb {{database_name}}`

- Reindex a specific database using connection options:

`reindexdb {{database_name}} {{[-h|--host]}} {{hostname}} {{[-p|--port]}} {{port}} {{[-U|--username]}} {{username}}`

- Reindex all databases:

`reindexdb {{[-a|--all]}}`

- Reindex a specific table in a database:

`reindexdb {{database_name}} {{[-t|--table]}} {{table_name}}`

- Reindex a specific index in a database:

`reindexdb {{database_name}} {{[-i|--index]}} {{index_name}}`

- Reindex a specific schema in a database:

`reindexdb {{database_name}} {{[-S|--schema]}} {{schema_name}}`

- Reindex with verbose output:

`reindexdb {{database_name}} {{[-v|--verbose]}}`

- Reindex a database using multiple parallel jobs:

`reindexdb {{database_name}} {{[-j|--jobs]}} {{number_of_jobs}}`