17 lines
364 B
Markdown
17 lines
364 B
Markdown
|
|
# clusterdb
|
||
|
|
|
||
|
|
> Cluster (reorganize) a PostgreSQL database.
|
||
|
|
> More information: <https://www.postgresql.org/docs/current/app-clusterdb.html>.
|
||
|
|
|
||
|
|
- Cluster a specific database:
|
||
|
|
|
||
|
|
`clusterdb {{database_name}}`
|
||
|
|
|
||
|
|
- Cluster all databases:
|
||
|
|
|
||
|
|
`clusterdb {{[-a|--all]}}`
|
||
|
|
|
||
|
|
- Cluster a specific table in a database:
|
||
|
|
|
||
|
|
`clusterdb {{[-t|--table]}} {{table_name}} {{database_name}}`
|