pgFirstAid

PostgreSQL health check that ranks problems from a single SQL function

Image 1 of 1: pgFirstAid home with its one-line install, a description and its feature list

Installs as one SQL function or view and returns findings ranked from CRITICAL to INFO, each with a remediation step and a link to the PostgreSQL docs. Checks span table bloat, replication slots, blocked queries and known CVEs.

  • 0Dependencies

Trade-offs

  • A single SQL function with no external tools. Setup is a paste into the database, but results depend on privileges: non-superuser accounts may see fewer findings.
  • pg_stat_statements stays optional. The function keeps running without it and reports a setup action, and the workload checks wait until it is installed.

Q&A2

It is read-only, reads system catalog views and is designed not to lock or block user queries. Its recommendations still need review and a non-production test before acting on them.

Reviews

Loading reviews

    More in Postgres

    See all 25 →
    • SupermetryCookie-free web and product analytics on one Go binary and PostgreSQL
    • arbiterPostgreSQL job queue for Haskell, with no broker and no leader
    • StreambedPostgres-to-Iceberg CDC engine with a built-in Postgres wire query server
    • MigrationPilotPostgreSQL migration linter that blocks unsafe DDL before merge
    • go-ledgerMulti-tenant double-entry payment ledger API in Go, built in public
    • pistachioDeclarative PostgreSQL schema management with a plan and apply workflow