Skip to content

pgcue#

PostgreSQL operational checks and guidance, ready to run.

GitHub Release Go PostgreSQL macOS Windows Linux GitHub License CI Coverage CodeQL Trivy Security Scan Scan GitHub Actions

pgcue bundles read-only checks for a running PostgreSQL server. See which applications hold connections, which statements cost the most, and which databases use the most disk space. Each check explains when to use it and how to read its results.

$ pgcue run storage.database_size --database orders
database_name  size
─────────────  ─────
orders         12 GB

Features#

  • Read-only checks for activity, statements, storage, and WAL.
  • Documentation for every check: when to use it, what to look for, and what each column means.
  • A guided investigation that shows which applications and transactions are occupying connections.
  • SQL for each PostgreSQL version from 14, chosen to match the server.
  • Read-only sessions that install nothing in the database.
  • Tables for people, JSON for scripts and monitoring, and --watch for live views.
  • An interactive browser, for when you don't know which check you need.
  • A single binary for Linux, macOS and Windows, and a container image.

Requirements#

  • PostgreSQL 14 or later.
  • A role that can connect. Membership of pg_monitor is recommended, so that results are complete.
  • Optionally, pg_stat_statements for statements.top.

Start here#

  1. Tutorial: install pgcue, connect, and investigate common symptoms.
  2. Connecting: connection settings, encryption, privileges and optional extensions.
  3. Running checks: parameters, JSON output and monitoring.
  4. Running investigations: step by step or unattended.

Reference#