# PostgresAI vs pgDash: open source with wait events vs pgmetrics reports

> pgDash monitors PostgreSQL from pgmetrics reports, as SaaS or self-hosted, with alerts. PostgresAI is open source and samples wait events from pg_stat_activity.

Checked on 2026-11-18. Page: https://postgres.ai/compare/postgresai-vs-pgdash. All comparisons: https://postgres.ai/compare.

## Short answer

pgDash is a PostgreSQL monitoring service from RapidLoop. The open-source pgmetrics tool collects a report, usually from a cron job every few minutes, and the pgdash CLI sends it to pgDash SaaS or a self-hosted server. It shows queries and plans, diagnostics, index and bloat data, replication and alerts. PostgresAI monitors Postgres, runs scheduled checkups and turns findings into Issues that you, your AI agent or a PostgresAI expert can act on. Pick pgDash for PgBouncer and Pgpool dashboards, change alerts, or an air-gapped install. Pick PostgresAI for open-source monitoring you can self-host with no licence fee, a wait event dashboard, an MCP server, or human experts.

## Where PostgresAI is ahead of pgDash

1. **Open source, no licence fee to self-host.**
   - PostgresAI: The monitoring software is open source under Apache 2.0, so self-hosting it carries no licence fee. ([postgresai repository](https://gitlab.com/postgres-ai/postgresai), [How much does it cost?](https://postgres.ai/docs/questions-and-answers))
   - pgDash: pgDash collects data with pgmetrics, which is open source under Apache 2.0. pgDash itself is sold as SaaS or as a self-hosted version on Pro and Enterprise, licensed annually and paid in advance. [13][12][3][10]
2. **Wait events with no extra extension.**
   - PostgresAI: An ASH-style wait event dashboard built from samples of pg_stat_activity. No extra extension is needed. ([Wait event analysis dashboard](https://postgres.ai/docs/monitoring/dashboards/wait-events))
   - pgDash: pgDash Locks and Backends shows backends waiting on locks and which queries wait for which. Data arrives each time pgmetrics runs and sends a report; the docs suggest running it every 5 to 10 minutes from a cron job. [2][5][7]
3. **13 months of history.**
   - PostgresAI: Scale keeps 13 months of history. ([Pricing](https://postgres.ai/pricing))
   - pgDash: pgDash keeps 30 days of data on Basic and 90 days on Pro and Enterprise. Self-hosted pgDash prunes time series data older than 3 months by default. [3][10]
4. **An AI agent can work through the findings.**
   - PostgresAI: The postgresai CLI and an MCP server give an agent the Issues, action items and checkup reports. The setup guide covers Cursor, Claude Code, Windsurf and Codex. ([How to install MCP for AI coding tools](https://postgres.ai/docs/postgresai-howtos/how-to-install-mcp), [PostgresAI CLI reference](https://postgres.ai/docs/reference-guides/postgresai-cli-reference))
   - pgDash: pgDash has an AI-enhanced Chat that answers questions about a server's status, configuration and performance, on Pro and Enterprise. The sources we reviewed do not describe an MCP server or a CLI for AI agents. [1][2][11]

## Check it on your own database

```
npx postgresai@latest checkup postgresql://user@host:5432/db --no-upload
```

The express checkup works with PostgreSQL 14 or newer. With --no-upload it needs no account and sends no report data to PostgresAI. It needs Node.js 18 or newer and a database role with pg_monitor. Compare what it finds with what your current tool shows for the same database.

- [Live demo (login demo, password demo)](https://demo.postgres.ai)
- [Checkup command reference](https://postgres.ai/docs/reference-guides/postgresai-cli-reference#command-checkup)

## Side by side

| | PostgresAI | pgDash |
|---|---|---|
| What it is | PostgreSQL monitoring with scheduled health checkups. Findings become Issues with severity, evidence and a recommended fix, which you, your AI agent or a PostgresAI expert can act on. | A PostgreSQL monitoring and diagnostics service. pgmetrics collects a report, the pgdash CLI uploads it, and pgDash shows queries and plans, Diagnostics reports, tables and indexes, locks and backends, replication, alerts, Teams sharing and an AI-enhanced chat. [1][2][4] |
| Where your Postgres can run, and which versions | Any provider: yes. Amazon RDS and Aurora, Google Cloud SQL, Azure Database for PostgreSQL, Supabase, Tiger Data, self-managed servers and Postgres running on Kubernetes. PostgreSQL 14 and newer, with the pg_stat_statements extension. | Any provider: yes. Self-managed servers, and a dedicated guide for AWS RDS and Aurora, including Aurora Serverless and Global. pgmetrics works with PostgreSQL 9.3 to 18 and also lists Azure Database for PostgreSQL Flexible Server, Azure Cosmos DB for PostgreSQL and Google Cloud SQL. [6][12] |
| Where it runs and what it collects | Self-hosted option: yes. Hosted by PostgresAI, or self-hosted in your own cloud account or on your own server. It collects database metadata such as statistics, normalized query texts and wait events, not table data or query parameters. | Self-hosted option: yes. SaaS at app.pgdash.io, or self-hosted on Debian 11 and 12, Ubuntu 20.04 to 24.04 or RHEL 8 and 9, with no internet access needed. By default pgmetrics sends the 100 slowest queries from pg_stat_statements, first 500 characters of each. [9][10][7] |
| Open source | Yes. The monitoring software is open source under Apache 2.0. Hosted plans are a separate paid service. | Partly. The pgmetrics collector is open source under Apache 2.0. pgDash itself is a commercial product, sold as SaaS or as an annual self-hosted license. [13][12][3] |
| Query performance analysis | Query analysis: yes. Top queries from pg_stat_statements by calls, execution time, planning time and rows, with a drill-down dashboard for a single query. For execution plans, Joe runs EXPLAIN on a DBLab clone. | Query analysis: yes. Query statistics from pg_stat_statements, time series per query, and execution plans with visualization and tuning suggestions. Plans come from auto_explain output in the Postgres logs, read locally or through CloudWatch Logs for RDS and Aurora. [2][7] |
| Wait event analysis | Wait events: yes. An ASH-style wait event dashboard built from samples of pg_stat_activity. No extra extension is needed. | Wait events: partly. Locks and Backends shows backends waiting on locks, which queries wait for which, and long-open or idle transactions. Data arrives each time pgmetrics runs, which the docs suggest every 5 to 10 minutes. The sources we reviewed do not describe a sampled wait event history. [2][5][7] |
| Health checks and recommendations | Health checks: yes. Scheduled checkup reports on settings, autovacuum and bloat, and indexes (invalid, unused, redundant). Each finding becomes an Issue with severity, evidence and a specific fix. | Health checks: yes. Diagnostics reports scan servers and databases for issues. Configuration Check gives recommendations on security, data safety, tuning and reliability. Index Management finds unused and bloated indexes; table bloat and vacuum data are shown per table. [2] |
| AI and agent access | Agent access: yes. The postgresai CLI (alias pgai) and an MCP server with tools for Issues, action items and checkup reports. The setup guide covers Cursor, Claude Code, Windsurf and Codex. | Agent access: partly. AI-enhanced Chat answers questions about a server's status, configuration and performance (Pro and Enterprise); self-hosted installs bring an OpenAI or Google Gemini key. Alerts can go to webhooks. The sources we reviewed do not describe an MCP server. [1][11][14] |
| Testing a fix before production | Test on a copy: yes. With DBLab Engine, a separate open-source product: a full-size thin clone of the database in seconds, where an index or query change can be run on real data. DBLab is set up and priced separately. | Not documented in the sources we reviewed. [2][1] |
| Human PostgreSQL experts | Human experts: yes. Scale includes two expert requests a month, answered within 24 business hours. Either plan can buy a one-off pack of two requests for $500. Consulting is separate. | Human experts: partly. Product support by email at support@rapidloop.com for self-hosted installs. The sources we reviewed do not describe PostgreSQL consulting. [9] |
| Alerts | Email and Slack alerts on Starter and Scale. | Warning and critical threshold rules at server, database, table and tablespace level, such as wraparound, replication lag, bloat and free disk. Notifications go to email, Slack, PagerDuty, VictorOps, xMatters and webhooks. [8][1] |
| History kept | 14 days on Starter, 13 months on Scale, custom on Enterprise. | 30 days on Basic, 90 days on Pro and Enterprise. Self-hosted pgDash prunes time series data older than 3 months by default. [3][10] |
| Security attestations | SOC 2 Type 2 examination completed for the Security and Availability criteria, covering March 4 to June 4, 2026. The SOC 3 report is public. | The security page, last updated 18 February 2022, describes HTTPS-only access with HSTS and TLS 1.2 and 1.3, and hashed passwords. The sources we reviewed do not describe SOC 2 or ISO 27001 attestations. [15] |

## When pgDash is the better choice

- The self-hosted version has the same features as SaaS and runs air-gapped, with no internet access needed; Debian, Ubuntu and RHEL packages are provided.
- Change Alerts flag new or dropped users, tables and indexes and sudden table size changes between two consecutive reports (Pro and Enterprise).
- Integrations add dashboards for PgBouncer pools, Pgpool backends and query cache, and AWS CloudWatch metrics and logs for RDS and Aurora.
- Index Management lists unused indexes and bloated indexes that need reindexing, and Tablespace Management generates SQL to move or drop objects.
- The pgmetrics collector is open source under Apache 2.0, works with PostgreSQL 9.3 to 18, and needs no extension on the server.

## Pricing

| Product | Plan | List price | Notes |
|---|---|---|---|
| PostgresAI | Starter | $16 per cluster/month | Primary only, 14-day retention, no expert requests included |
| PostgresAI | Scale | $512 per cluster/month | Primary and up to 5 replicas in one cluster, 13-month retention, Grafana dashboards, 2 expert requests a month |
| PostgresAI | Enterprise | Custom | Contact sales |
| PostgresAI | Self-hosted | No licence fee | Open source under Apache 2.0; you run it yourself |
| pgDash | Basic | $100/month | 2 database servers, 30 days of history, basic alerting, integrations [3] |
| pgDash | Pro | $200/month | 5 database servers included, $50 for each additional server; 90 days of history; change alerts, AI-enhanced Chat, Teams [3] |
| pgDash | Enterprise | Contact us | 20+ database servers, 90 days of history, same features as Pro [3] |
| pgDash | Self-hosted | Quote | Pro or Enterprise, priced like SaaS but licensed annually, paid in advance with a 10% discount [3][10] |

PostgresAI prices: https://postgres.ai/pricing. pgDash bills by the maximum number of concurrent servers monitored in a month. A server is one PostgreSQL cluster; each RDS read replica and each Aurora replica counts as one. There is a 14-day free trial.

## Using both

DBLab is a separate product that copies any PostgreSQL source, so a team that monitors with pgDash can still use a DBLab clone to try an index or query change on full-size data before production.

## Questions

### Is pgDash open source?

The collector, pgmetrics, is open source under Apache 2.0. pgDash, the service that stores and shows the data, is a commercial product from RapidLoop, sold as SaaS or as a self-hosted annual license. PostgresAI monitoring is open source under Apache 2.0. [13][12][3]

### Does pgDash work with Amazon RDS?

Yes. pgDash documents AWS RDS PostgreSQL and Aurora, including Serverless and Global. pgmetrics runs on a machine with access to the database, typically an EC2 instance, and can also pull CloudWatch metrics and Postgres logs. [6]

### What does pgDash cost?

Basic is $100 a month for 2 servers and Pro is $200 a month for 5 servers plus $50 for each extra server. Enterprise, for 20 or more servers, is priced on request. Self-hosted is available on Pro and Enterprise as an annual license. [3]

### How often does pgDash collect data?

Each time you run pgmetrics and pipe its report to the pgdash CLI, usually from a cron job. The docs suggest every 5 to 10 minutes; alert rules are evaluated when each report arrives. [5][7][8]

### Can I use PostgresAI and pgDash together?

Yes. DBLab, the PostgresAI cloning product, copies any PostgreSQL source, so a team that monitors with pgDash can test an index or query change on a full-size DBLab clone before production.

## Sources for PostgresAI

- [postgresai repository](https://gitlab.com/postgres-ai/postgresai)
- [How much does it cost?](https://postgres.ai/docs/questions-and-answers)
- [Wait event analysis dashboard](https://postgres.ai/docs/monitoring/dashboards/wait-events)
- [Pricing](https://postgres.ai/pricing)
- [How to install MCP for AI coding tools](https://postgres.ai/docs/postgresai-howtos/how-to-install-mcp)
- [PostgresAI CLI reference](https://postgres.ai/docs/reference-guides/postgresai-cli-reference)
- [PostgresAI monitoring overview](https://postgres.ai/docs/monitoring)
- [Monitoring quick start](https://postgres.ai/docs/monitoring/getting-started)
- [Data privacy: metadata only](https://postgres.ai/docs/monitoring#data-privacy-metadata-only)
- [Query performance analysis dashboard](https://postgres.ai/docs/monitoring/dashboards/query-analysis)
- [Joe bot](https://postgres.ai/docs/joe-bot)
- [Checkup reports](https://postgres.ai/docs/checkup)
- [How to work with Issues](https://postgres.ai/docs/postgresai-howtos/how-to-work-with-issues)
- [DBLab Engine](https://postgres.ai/docs/database-lab)
- [DBLab compared with other ways to branch](https://postgres.ai/compare#branching)
- [Postgres consulting](https://postgres.ai/consulting)
- [Security and compliance](https://postgres.ai/security)

## Sources for pgDash

1. [pgDash home page](https://pgdash.io/)
2. [pgDash features](https://pgdash.io/features)
3. [pgDash pricing](https://pgdash.io/pricing)
4. [pgDash documentation: overview](https://docs.pgdash.io/)
5. [pgDash documentation: getting started](https://docs.pgdash.io/getting-started)
6. [pgDash documentation: AWS RDS and Aurora](https://docs.pgdash.io/aws-rds-getting-started)
7. [pgDash documentation: working with queries](https://docs.pgdash.io/queries)
8. [pgDash documentation: alerts](https://docs.pgdash.io/alerts)
9. [pgDash documentation: self-hosted](https://docs.pgdash.io/self-hosted)
10. [pgDash documentation: self-hosted FAQ](https://docs.pgdash.io/self-hosted-faq)
11. [pgDash documentation: AI integration for self-hosted](https://docs.pgdash.io/ai)
12. [pgmetrics documentation](https://pgmetrics.io/docs/)
13. [pgmetrics repository](https://github.com/rapidloop/pgmetrics)
14. [pgDash documentation: webhooks](https://docs.pgdash.io/webhooks)
15. [pgDash security](https://pgdash.io/security)

## How we compare

These pages compare what each product does for PostgreSQL; other databases and the rest of the stack are out of scope. What we say about the other product comes from its own documentation, pricing page, changelog or source repository, read on the date shown; each row cites its source. "Not documented" means we did not find it in those sources, not that the product cannot do it. Prices are list prices and the billing units differ, so they are not a total-cost comparison. Product names are trademarks of their owners.
