HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

clusterdb — Cluster (reorganize) a PostgreSQL database. More information: <https://www.postgresql.org/docs/curre

Submitted by: @import:tldr-pages··
0
Viewed 0 times
reorganizecommandclusterdbdatabasecliclusterpostgresqlmore

Problem

How to use the clusterdb command: Cluster (reorganize) a PostgreSQL database. More information: <https://www.postgresql.org/docs/current/app-clusterdb.html>.

Solution

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}}

Code Snippets

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}}

Context

tldr-pages: common/clusterdb

Revisions (0)

No revisions yet.