Skip to content

Commit ed6f869

Browse files
reindexdb: add page (#18480)
1 parent 3115556 commit ed6f869

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

pages/common/reindexdb.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# reindexdb
2+
3+
> Rebuild indexes in a PostgreSQL database.
4+
> More information: <https://www.postgresql.org/docs/current/app-reindexdb.html>.
5+
6+
- Reindex a specific database:
7+
8+
`reindexdb {{database_name}}`
9+
10+
- Reindex a specific database using connection options:
11+
12+
`reindexdb {{database_name}} {{[-h|--host]}} {{hostname}} {{[-p|--port]}} {{port}} {{[-U|--username]}} {{username}}`
13+
14+
- Reindex all databases:
15+
16+
`reindexdb {{[-a|--all]}}`
17+
18+
- Reindex a specific table in a database:
19+
20+
`reindexdb {{database_name}} {{[-t|--table]}} {{table_name}}`
21+
22+
- Reindex a specific index in a database:
23+
24+
`reindexdb {{database_name}} {{[-i|--index]}} {{index_name}}`
25+
26+
- Reindex a specific schema in a database:
27+
28+
`reindexdb {{database_name}} {{[-S|--schema]}} {{schema_name}}`
29+
30+
- Reindex with verbose output:
31+
32+
`reindexdb {{database_name}} {{[-v|--verbose]}}`
33+
34+
- Reindex a database using multiple parallel jobs:
35+
36+
`reindexdb {{database_name}} {{[-j|--jobs]}} {{number_of_jobs}}`

0 commit comments

Comments
 (0)