Skip to content

Database size#

What it does

Shows the on-disk size of databases in the PostgreSQL cluster.

$ pgcue run storage.database_size

Use when

  • PostgreSQL storage usage is growing.
  • Identifying which database accounts for cluster disk usage.

Inspect

  • Databases that dominate storage or grow rapidly between snapshots.

Result

Point-in-time measurement at execution time.

Columns#

Column Meaning
database_name Database represented by the row.
size Human-readable on-disk database size.

Parameters#

Option Type Default Description
--database string null Database name to filter by; null returns all databases.

Compatibility#

  • PostgreSQL 14+