Files
cheatsheet-tldr/tldr/clusterdb
2025-10-07 00:19:24 +00:00

22 lines
457 B
Plaintext

---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# 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}}`