Cluster size#
What it does
Shows the on-disk size of the postgres cluster.
Use when
- PostgreSQL storage usage is growing.
- Establishing the total database footprint before investigating further.
Inspect
- The current cluster size and its change between snapshots.
Result
Point-in-time measurement at execution time.
Columns#
| Column | Meaning |
|---|---|
cluster_name |
Configured PostgreSQL cluster name, or UNSET. |
total_cluster_size |
Human-readable sum of all tablespace sizes. |
Compatibility#
- PostgreSQL 14+
Related checks#
- Database size
storage.database_size - Largest tables
storage.largest_tables