# PostgresAI vs New Relic: open source with experts vs queries tied to traces

> New Relic collects Postgres slow queries, wait events and plans and links them to app traces. PostgresAI is open source and gives AI agents its Issues over MCP.

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

## Short answer

New Relic is an observability platform. Its PostgreSQL integration with query performance monitoring, generally available since July 2025, collects slow queries, wait events, blocking sessions and execution plan metrics, and Database 360 correlates database behavior with app traces. PostgresAI monitors PostgreSQL only, runs scheduled checkups and turns findings into Issues that you, your AI agent or a PostgresAI expert can act on. Pick New Relic if you already use it and want Postgres queries linked to the traces that ran them. Pick PostgresAI for open-source monitoring you can self-host, Postgres health checks with expert help, or DBLab clones to test a fix.

## Where PostgresAI is ahead of New Relic

1. **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))
   - New Relic: New Relic Ground Truth, its MCP server, needs a paid plan. Its tools run NRQL queries and analyze transactions, logs, traces and metrics; the tool reference lists no database-specific tools. [8][9]
2. **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))
   - New Relic: New Relic's PostgreSQL integration, nri-postgresql, is open source under the MIT license and sends data to the New Relic platform, a paid service with a free tier of 100 GB of ingest a month. The sources we reviewed do not describe a self-hosted backend. [13][2][7]
3. **PostgreSQL experts on the plan.**
   - PostgresAI: 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. ([Pricing](https://postgres.ai/pricing), [Postgres consulting](https://postgres.ai/consulting))
   - New Relic: New Relic editions include product support, from a 2-business-day response SLA on Standard to a 1-hour critical response SLA on Enterprise. The sources we reviewed do not describe PostgreSQL expert help. [7]

## 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 | New Relic |
|---|---|---|
| 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. | An observability platform. For PostgreSQL, an on-host integration collects metrics and, with query performance monitoring turned on, slow queries, wait events, blocking sessions and execution plans. Database 360 correlates database behavior with app traces and infrastructure. [2][3][6] |
| 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. The infrastructure agent and integration run on a host with network access to the database. The guide covers SSL settings for Amazon RDS and Aurora and Azure Database for PostgreSQL Flexible Server. The OpenTelemetry integration, added as a public preview in August 2026, documents hosted and Amazon RDS setups. [2][5][3] |
| 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: not documented. The New Relic infrastructure agent runs on a host you choose and sends data to New Relic; storage in the EU data center costs an extra $0.05/GB a month. Query text is normalized and anonymized. The sources we reviewed do not describe a self-hosted New Relic backend. [2][7] |
| Open source | Yes. The monitoring software is open source under Apache 2.0. Hosted plans are a separate paid service. | Partly. The PostgreSQL integration, nri-postgresql, is open source under the MIT license. New Relic itself is a paid service with a free tier. [13][7] |
| 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. Slow queries, individual queries and execution plan metrics from pg_stat_statements. Queries slower than a threshold, 1 ms by default, are sent, with 20 records per metric by default. A dashboard has query analysis, query details and wait time analysis tabs. [2][1][3] |
| 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: yes. Query performance monitoring collects PostgreSQL wait events and blocking sessions, shown in a wait time analysis tab and a blocking details widget. The OpenTelemetry integration, added as a public preview in August 2026, also samples wait events and blocking PIDs; this is off by default. [2][1][4][5] |
| 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. | Not documented in the sources we reviewed. The query performance monitoring page mentions recommendations for query optimization; the sources we reviewed do not describe scheduled health checks for PostgreSQL. [1][2][6] |
| 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: yes. New Relic Ground Truth, a New Relic-hosted MCP server for paid plans, with setup for Claude Code, Codex, Claude Desktop, VS Code and others. Its tools run NRQL queries and analyze transactions and metrics; the tool reference lists no database-specific tools. [8][9] |
| 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. [1][6] |
| 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 edition: ticketed support with a 2-business-day response SLA on Standard, a 2-hour critical initial response SLA on Pro and 1 hour on Enterprise. The sources we reviewed do not describe PostgreSQL consulting. [7] |
| Alerts | Email and Slack alerts on Starter and Scale. | Alert workflows notify email, Slack, PagerDuty, Microsoft Teams, Opsgenie, Jira, ServiceNow, AWS EventBridge, webhooks and other destinations. [11] |
| History kept | 14 days on Starter, 13 months on Scale, custom on Enterprise. | Infrastructure integration data is kept 395 days (13 months) with the original data option and 485 days (16 months) with Data Plus. [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. | New Relic lists SOC 1, SOC 2, ISO 27001, ISO 42001, FedRAMP, PCI DSS, TISAX and HIPAA enabled capabilities. [12] |

## When New Relic is the better choice

- Database 360 correlates Postgres behavior with the app traces and infrastructure entities around it, and analyzes slow queries with plans, waits and locks.
- A perpetual free tier with 100 GB of data ingest a month and one full platform user, so a small setup can start at $0.
- Query performance monitoring records execution plan nodes per query, with node type, index used, estimated costs and rows removed by filter, plus per-query CPU and execution time.
- Postgres query monitoring includes blocking sessions and wait events per query, with query text normalized and anonymized before it is sent.
- The PostgreSQL integration, nri-postgresql, is open source under the MIT license, and an OpenTelemetry-based PostgreSQL integration was added as a public preview in August 2026.

## 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 |
| New Relic | Free | $0 | 100 GB/month of data ingest, one full platform user, free basic users; no MCP server [7][8] |
| New Relic | Standard | $10 first full platform user/month, $99 each additional | Up to 5 full platform users; core users $49/user; data ingest $0.40/GB beyond the free 100 GB [7] |
| New Relic | Pro | $349 per full platform user/month | Annual commitment; $418.80/user pay as you go; core users $49/user; data ingest $0.40/GB beyond the free 100 GB [7] |
| New Relic | Enterprise | Contact sales | Custom data and user pricing [7] |

PostgresAI prices: https://postgres.ai/pricing. New Relic bills by users and data ingest, or by compute and data ingest. Data Plus ingest is $0.60/GB beyond the free 100 GB on Standard and Pro.

## Using both

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

## Questions

### Does New Relic show PostgreSQL wait events and execution plans?

Yes, with query performance monitoring turned on in the PostgreSQL integration. It collects slow queries, wait events, blocking sessions, individual queries and execution plan metrics. New Relic announced this as generally available on July 22, 2025. [2][3]

### Does New Relic work with Amazon RDS?

Yes. The integration runs on a host with network access to the database, and the guide covers SSL settings for Amazon RDS and Aurora and Azure Database for PostgreSQL Flexible Server. [2]

### What does New Relic cost?

There is a free tier with 100 GB of ingest a month. Paid plans bill full platform users ($10 for the first and $99 for each additional on Standard, $349 a user on Pro with an annual commitment) and data ingest at $0.40/GB beyond 100 GB. [7]

### Can I use PostgresAI and New Relic together?

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

## Sources for PostgresAI

- [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 repository](https://gitlab.com/postgres-ai/postgresai)
- [How much does it cost?](https://postgres.ai/docs/questions-and-answers)
- [Pricing](https://postgres.ai/pricing)
- [Postgres consulting](https://postgres.ai/consulting)
- [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)
- [Wait event analysis dashboard](https://postgres.ai/docs/monitoring/dashboards/wait-events)
- [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)
- [Security and compliance](https://postgres.ai/security)

## Sources for New Relic

1. [New Relic documentation: query performance monitoring](https://docs.newrelic.com/docs/infrastructure/infrastructure-data/query-performance-monitoring/)
2. [New Relic documentation: PostgreSQL monitoring integration](https://docs.newrelic.com/install/postgresql/)
3. [New Relic: enhanced database performance monitoring generally available (July 2025)](https://docs.newrelic.com/whats-new/2025/07/whats-new-07-24-db-query-performance-monitoring/)
4. [New Relic documentation: PostgreSQL NRDOT metrics reference](https://docs.newrelic.com/docs/opentelemetry/db360/postgresql/metrics-reference/)
5. [New Relic docs release notes, August 21, 2026](https://docs.newrelic.com/docs/release-notes/docs-release-notes/docs-8-21-2026/)
6. [New Relic Database 360](https://newrelic.com/platform/database-performance-monitoring)
7. [New Relic pricing](https://newrelic.com/pricing)
8. [New Relic documentation: Ground Truth (MCP server)](https://docs.newrelic.com/docs/agentic-ai/mcp/overview/)
9. [New Relic documentation: MCP tool reference](https://docs.newrelic.com/docs/agentic-ai/mcp/tool-reference/)
10. [New Relic documentation: manage data retention](https://docs.newrelic.com/docs/data-apis/manage-data/manage-data-retention/)
11. [New Relic documentation: notification integrations](https://docs.newrelic.com/docs/alerts/get-notified/notification-integrations/)
12. [New Relic documentation: regulatory audits](https://docs.newrelic.com/docs/security/security-privacy/compliance/regulatory-audits-new-relic-services/)
13. [nri-postgresql repository](https://github.com/newrelic/nri-postgresql)

## 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.
