PostgresAI vs pganalyze
open source vs plan and log insights
pganalyze collects query plans and logs and gives index, query and VACUUM advice. PostgresAI is open-source monitoring that files each finding as an Issue with a fix.
Where PostgresAI is ahead of pganalyze
Each point pairs what our documentation says with what the pganalyze documentation says. Follow the links and check.
Open source, no licence fee to self-host
13 months of history
PostgresAIScale keeps 13 months of history. docs
pganalyzepganalyze keeps 14 days of historic statistics on Production, 35 days on Scale and 100 days on Enterprise. 3
Test the fix on a full-size copy first
PostgresAIWith DBLab Engine, a separate open-source product, an index or query change runs on a full-size thin clone of the database, created in seconds, before it reaches production. docsdocs 2
pganalyzepganalyze Workbooks run EXPLAIN ANALYZE of a query and its variants on a database you connect. The docs say Workbooks are not suited for testing CREATE INDEX, do not support DML queries and limit each run to 60 seconds. 11
An AI agent can work through the findings
PostgresAIThe 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. docsdocs 2
pganalyzeThe pganalyze MCP server has 30 tools, including Workbooks tools that run EXPLAIN ANALYZE. It is in public preview, limited to 100 requests per billable server per hour, and its tools may change. 12
Short answer
pganalyze is a PostgreSQL monitoring service that collects query statistics, EXPLAIN plans from auto_explain and Postgres logs, and turns them into Index, Query and VACUUM Advisor insights. PostgresAI monitors Postgres, runs scheduled checkups and turns findings into Issues that you, your AI agent or a PostgresAI expert can act on. Pick pganalyze if per-query plan analysis, log analysis and query tuning workbooks are what you need. Pick PostgresAI if you want open-source monitoring you can self-host with no licence fee, human experts on the plan, or DBLab clones to test a fix.
When pganalyze is the better choice
- Automatic EXPLAIN plan collection from auto_explain, with plan insights such as disk sorts, mis-estimates and stale stats, and a Query Advisor that flags issues like inefficient nested loops.
- Index Advisor models hundreds of candidate index combinations across the whole workload, and is on every plan including the $149 Production plan.
- Log Insights classifies Postgres log lines and includes 100+ preconfigured log event filters with PII filtering on Scale.
- Workbooks hold a baseline query and variants (planner settings, pg_hint_plan hints, rewrites), compare plans and test bind parameter sets.
- Install guides for 10 platforms, including Heroku Postgres, Crunchy Bridge, Aiven, Supabase and Neon, and PostgreSQL 10 and newer.

What you get
Checkup findings as Issues in the PostgresAI Console. How it works
PostgresAI and pganalyze, side by side
| Question | PostgresAI | pganalyze |
|---|---|---|
| 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. docsdocs 2 | A PostgreSQL monitoring and tuning service. A collector sends query statistics, schema, plans and logs to pganalyze Cloud or a self-hosted Enterprise Server, which runs the Index, Query and VACUUM Advisors, Log Insights and automated checks. 235 |
| Where your Postgres can run, and which versions | YesAmazon 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. docs | YesInstall guides for Amazon RDS and Aurora, Azure Flexible Server, Google Cloud SQL and AlloyDB, CloudNativePG on Kubernetes, self-managed servers, Heroku Postgres, Crunchy Bridge, Aiven, Supabase and Neon. The minimum supported version is PostgreSQL 10. It needs pg_stat_statements. 12 |
| Where it runs and what it collects | YesHosted 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. docsdocs 2 | Yespganalyze Cloud, or Enterprise Server behind your firewall (Docker on a VM, or Kubernetes on EKS or AKS) on the Enterprise plan. The collector never sends table rows; parameter values in query samples are sent unless filter_query_sample is set to normalize. 235 |
| Open source | YesThe monitoring software is open source under Apache 2.0. Hosted plans are a separate paid service. docsdocs 2 | PartlyThe collector is open source under the 3-clause BSD license. The pganalyze FAQ answers "Is pganalyze open source?" with no: it is a commercial product, sold as a cloud service or as the self-hosted Enterprise Server. 42 |
| Query performance analysis | YesTop 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. docsdocs 2 | YesQuery statistics from pg_stat_statements, plus EXPLAIN plans collected from auto_explain output in the Postgres logs with 8 plan insights. Plan collection and Query Advisor, which analyzes plans for issues such as inefficient nested loops, are on the Scale plan and higher. 1083 |
| Wait event analysis | YesAn ASH-style wait event dashboard built from samples of pg_stat_activity. No extra extension is needed. docs | YesA Wait Events tab with data collected every 10 seconds, plotted in 150-second buckets, and Connection Traces per connection. Both are on the Scale plan and higher. 13 |
| Health checks and recommendations | YesScheduled checkup reports on settings, autovacuum and bloat, and indexes (invalid, unused, redundant). Each finding becomes an Issue with severity, evidence and a specific fix. docsdocs 2 | YesAutomated checks for slow queries, blocking and idle transactions, missing, invalid and unused indexes, settings, disk space, replication lag and VACUUM, including wraparound. VACUUM Advisor covers bloat, freezing, autovacuum performance and activity. 697 |
| AI and agent access | YesThe 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. docsdocs 2 | PreviewAn MCP server in public preview at app.pganalyze.com/mcp with 30 tools for servers, queries, tables, EXPLAIN plans, issues, logs and Workbooks. Setup is documented for Claude Code, Codex and Cursor, with OAuth, API key or personal access token (early access). During the preview it is limited to 100 requests per billable server per hour. 12 |
| Testing a fix before production | YesWith 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. docsdocs 2 | PartlyIndex Advisor models candidate indexes without creating them. Workbooks compare EXPLAIN ANALYZE of a query and its variants on a database you connect; the docs list limits: not suited for testing CREATE INDEX, no DML queries, 60 seconds per run. The sources we reviewed do not describe running a change on a separate copy of the data. 711 |
| Human PostgreSQL experts | YesScale 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. docsdocs 2 | PartlyEnterprise includes proactive Solution Engineering support and training for using pganalyze, and a one-month guided evaluation for large deployments. The sources we reviewed do not describe PostgreSQL consulting beyond the product. 32 |
| Alerts | Email and Slack alerts on Starter and Scale. docs | Alert destinations: email, Slack and PagerDuty, plus webhooks and incident.io in early access. Email and PagerDuty are notified for critical issues only. 6 |
| History kept | 14 days on Starter, 13 months on Scale, custom on Enterprise. docs | 14 days on Production, 35 days on Scale, 100 days on Enterprise. 3 |
| 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. docs | The pricing and security pages state that pganalyze is SOC 2 Type 2 certified. Infrastructure is hosted in Amazon data centers. 143 |
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 |
| pganalyze | Production | $149/month | 1 database server, 14 days of history, Index Advisor, Workbooks, health checks, MCP server 3 |
| pganalyze | Scale | $399/month | Up to 4 servers, $100/month for each additional billable server; 35 days of history; Query and VACUUM Advisors, auto_explain plans, Log Insights, SAML SSO 3 |
| pganalyze | Enterprise | Custom | Annual; Enterprise Server for self-hosting, 100 days of history, LDAP, Solution Engineering support 3 |
List prices on 18 Nov 2026. The billing units differ, so this is not a total-cost comparison. pganalyze bills per billable server: a primary counts as 1.0 and a replica as 0.5. There is a 14-day free trial with Scale features and no free plan. PostgresAI pricing
Using PostgresAI with pganalyze
DBLab is a separate product that copies any PostgreSQL source, so a team that monitors with pganalyze can still use a DBLab clone to try an index or query change on full-size data before production.
Questions
- Is pganalyze open source?
- The pganalyze collector is open source under the 3-clause BSD license. The pganalyze FAQ says pganalyze itself is not open source: it is a commercial product, sold as a cloud service or as the self-hosted Enterprise Server. PostgresAI monitoring is open source under Apache 2.0. 42
- Does pganalyze work with Amazon RDS?
- Yes. pganalyze has install guides for Amazon RDS and Aurora, Google Cloud SQL and AlloyDB, Azure Flexible Server and several other providers. The collector runs on a server with network access to the database. 1
- What does pganalyze cost?
- Production is $149 a month for one server and Scale is $399 a month for up to 4 servers, with $100 a month for each extra billable server. Enterprise, including self-hosted Enterprise Server, has custom annual pricing. A 14-day trial needs no credit card. 32
- Can I self-host pganalyze?
- Yes, on the Enterprise plan. pganalyze Enterprise Server runs behind your firewall on Docker or Kubernetes, and no monitoring data leaves your network. 52
- Can I use PostgresAI and pganalyze together?
- Yes. DBLab, the PostgresAI cloning product, copies any PostgreSQL source, so a team that monitors with pganalyze can test an index or query change on a full-size DBLab clone before production.
Check it on your own database
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.
Sources
- pganalyze documentation: get started (install)
- pganalyze FAQ
- pganalyze pricing
- pganalyze collector repository
- pganalyze Enterprise Server
- pganalyze documentation: alerts and check-up
- pganalyze documentation: Index Advisor
- pganalyze documentation: Query Advisor
- pganalyze documentation: VACUUM Advisor
- pganalyze documentation: EXPLAIN plans
- pganalyze documentation: Workbooks
- pganalyze documentation: MCP server
- pganalyze documentation: connections and wait events
- pganalyze security
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. Found a mistake? Tell us and we will correct the page.
More comparisons
- Datasentinelopen source with fixes vs session and plan data
- EDB Postgres Enterprise Managerany Postgres vs EDB fleets
- pgDashopen source with wait events vs pgmetrics reports
- pgEdge AI DBA Workbenchhuman experts vs an AI assistant
- pgMustardwhole-database monitoring vs one plan at a time
- Amazon DevOps Guru for RDSany cloud vs ML on RDS (closing)
- Azure PostgreSQL built-in toolsany provider vs Azure only
- Cloud SQL Query Insightsany provider vs inside Cloud SQL
- All comparisons