NEW RasterizedDB 1.1.0 is out: sharding and the gateway, the message broker, roles and row-level security, compression, .NET on NuGet, and the enterprise edition. What's new ›
OBSERVABILITY

Ask the database about itself.

A small family of SHOW statements answers what a console needs: sizes, what holds each table, the cost of every statement shape, backup and replication health, and every runtime knob.

1 / 3

The statements

SQL
SHOW DATABASE STATS          -- one metric per row
SHOW TABLES                  -- a row per table, with its sizes
SHOW TABLE STATS orders      -- live rows, slots per live row, ...
SHOW SCHEMA MAP              -- relationships, for drawing a graph
SHOW QUERIES 50              -- the last statements, newest first
SHOW QUERY STATS             -- a row per statement shape, with totals
SHOW BACKUP STATUS
SHOW REPLICATION PEER STATUS
SHOW CONFIG
2 / 3

What the numbers tell you

  • rows_scanned says why a statement was slow when it was scan-bound
  • materialised shows the cost of relations built before the scan
  • Slots per live row flags a table updated in a loop that needs a vacuum
  • What is holding each table: memory, files on which disk, or S3
  • pg_stat_statements and pg_stat_user_tables for PostgreSQL tools
3 / 3

Seen, not just queried

rdb_studio's dashboard plots these as live lines, its ACTIVITY screen ranks statements by cost, and the sharding gateway exports Prometheus metrics.

✓ page rendered in 113 µs axum + tera + htmx · no other javascript