# PostgresAI vs DBtune: monitoring and checkups vs automated parameter tuning

> DBtune tunes PostgreSQL server parameters against your workload, automatically or with approval. PostgresAI monitors queries and waits and files findings as Issues.

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

## Short answer

DBtune is a PostgreSQL configuration tuning service. An agent next to the database reports metrics, and DBtune tries parameter settings such as work_mem and max_wal_size, measures average query runtime or throughput, and applies the best ones automatically or after your approval. Its October 2026 release made index recommendations generally available and added autovacuum monitoring. PostgresAI monitors Postgres, runs scheduled checkups and turns findings into Issues that you, your AI agent or a PostgresAI expert can act on. Pick DBtune to tune server parameters from measured results. Pick PostgresAI for query-level monitoring, checkups and expert help. The two can run on the same database.

## Where PostgresAI is ahead of DBtune

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))
   - DBtune: The DBtune agent is open source under Apache 2.0. The tuning service is sold as SaaS, with a free Starter tier for 3 servers, and self-hosting it is the Enterprise Server edition, priced on request. [10][2][7]
2. **Test the fix on a full-size copy first.**
   - PostgresAI: With 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. ([DBLab Engine](https://postgres.ai/docs/database-lab), [DBLab compared with other ways to branch](https://postgres.ai/compare#branching))
   - DBtune: DBtune tests parameter configurations on the connected database, or on a shadow system you set up. Index recommendations are modelled with HypoPG on a statistical snapshot, and the docs say reported speedups may not match production. [18][5][16]
3. **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))
   - DBtune: The DBtune agent collects wait events every 5 seconds as tuning input. The sources we reviewed do not describe a wait event view. [8]

## 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 | DBtune |
|---|---|---|
| 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 configuration optimization service: it tunes PostgreSQL server parameters from measured workload results. Version 4.0.0 of October 2026 made index recommendations generally available and added autovacuum monitoring. [3][1][9] |
| 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. Setup guides for community PostgreSQL, Amazon RDS and Aurora, Azure Database for PostgreSQL flexible server, Google Cloud SQL, Aiven, CloudNativePG, EPAS and Patroni. The FAQ says it supports all PostgreSQL versions still maintained by the community. It needs pg_stat_statements. [4][5][6] |
| 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 with an agent next to the database, or Enterprise Server, self-hosted for enterprise customers. The agent sends metrics, settings and schema metadata, and query text with obfuscated parameters by default; no row data. [2][7][8] |
| Open source | Yes. The monitoring software is open source under Apache 2.0. Hosted plans are a separate paid service. | Partly. The agent is open source under Apache 2.0. The DBtune service is sold on paid plans with a free Starter tier; the sources we reviewed do not describe its source code as public. [10][2] |
| 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: partly. Uses pg_stat_statements to compute average query runtime and a workload fingerprint of queries by runtime and call count, as tuning targets. Index tuning lists the queries an index would affect, with their runtime over the last 7 days, and estimates the speedup with the planner and HypoPG. [11][16] |
| 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. The agent collects hot signals such as wait events every 5 seconds. The sources we reviewed do not describe a wait event analysis view. [8] |
| 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. Index recommendations for new indexes and for unused, redundant or bloated ones, with expected speedup and DDL that you run yourself; autovacuum monitoring of transaction ID use, worker saturation and bloat on PostgreSQL 16 and newer; recommendations for restart-only parameters, max_connections and version upgrades. [16][17][9][12] |
| 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. | Not documented in the sources we reviewed. DBtune describes itself as agentic AI, but the docs and release notes we read do not describe an MCP server or CLI for AI coding agents. [1][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. | Test on a copy: partly. A tuning session tests configurations on the connected database and compares them with the baseline, with memory and performance guardrails; Human in the loop holds each one for approval. The FAQ says you can tune a shadow system and apply the result to production. Index recommendations are modelled with HypoPG on a statistical snapshot. [18][14][15][5][16] |
| 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. Professional has a dedicated Slack channel and email support, answered within 24 hours during business hours. Enterprise adds phone support within 60 minutes during business hours, and Enterprise and Enterprise Server include onboarding with training and help configuring the first database servers. [2] |
| Alerts | Email and Slack alerts on Starter and Scale. | When a guardrail threshold is reached, DBtune sends an email and shows an in-platform notification. Release 3.1.5 added alerts for an outdated workload fingerprint. [14][9] |
| History kept | 14 days on Starter, 13 months on Scale, custom on Enterprise. | Not documented in the sources we reviewed. [8] |
| 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 DBtune home page states that it is SOC 2 Type II certified. Release 3.6.8 of April 2026 says DBtune completed its SOC 2 Type II audit. [1][9] |

## When DBtune is the better choice

- Automated tuning of server parameters: on community PostgreSQL, up to 16 in reload-only mode with no restart, and 20 with restart mode, measured against average query runtime, throughput or a workload fingerprint.
- Applies the best configuration automatically, or with Human in the loop, each configuration waits for your approval.
- Guardrails: the agent reverts to the baseline configuration if memory use passes 90% of RAM, and thresholds on runtime and throughput can be set.
- Starter is free for 3 database servers; Professional is $150 per core per year with unlimited servers.
- SOC 2 Type II certified, and an Enterprise Server edition for self-hosting on Docker Compose or Kubernetes, with the full SaaS feature set.

## 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 |
| DBtune | Starter | Free | 3 database servers, community support, SaaS with an agent [2] |
| DBtune | Professional | $150 per core/year | Unlimited servers, recommended for servers under 32 cores; Slack and email support; buy through AWS or Azure Marketplace [2] |
| DBtune | Enterprise | Contact sales | Unlimited servers, premium support with phone response within 60 minutes, onboarding [2] |
| DBtune | Enterprise Server | Contact sales | Self-hosted in a private cloud or data center [2][7] |

PostgresAI prices: https://postgres.ai/pricing. DBtune prices Professional per database server core per year; PostgresAI prices per cluster per month. The two units are not directly comparable.

## Using both

DBtune and PostgresAI monitoring both document Amazon RDS and Aurora, Google Cloud SQL, Azure Database for PostgreSQL and self-managed servers, and both read pg_stat_statements. A team can let DBtune tune server parameters while PostgresAI monitors queries and wait events and runs checkups on the same database.

## Questions

### Does DBtune monitor queries?

DBtune reads pg_stat_statements to measure average query runtime and a workload fingerprint, which it uses as tuning targets, and index tuning estimates how much a new index would speed up the queries you ran. Its main job is tuning server parameters; the sources we reviewed do not describe a query monitoring dashboard. [11][16][3]

### Does DBtune restart my database?

Not by default. The FAQ says DBtune by default only uses reloads. Restart mode, which you choose per session, can restart the database up to 30 times, typically over 2 to 4 hours. [5][13]

### What does DBtune cost?

Starter is free for 3 database servers. Professional is $150 per year per database server core, recommended for servers under 32 cores. The pricing page shows no amount for Enterprise or the self-hosted Enterprise Server. [2]

### Is DBtune open source?

The DBtune agent is open source under Apache 2.0. The tuning service itself is sold as SaaS or as a self-hosted Enterprise Server. PostgresAI monitoring is open source under Apache 2.0. [10][2]

### Can I use PostgresAI and DBtune together?

Yes. DBtune changes server parameters; PostgresAI monitors queries and wait events and runs checkups. Both support Amazon RDS and Aurora, Cloud SQL, Azure and self-managed Postgres. [4]

## Sources for PostgresAI

- [postgresai repository](https://gitlab.com/postgres-ai/postgresai)
- [How much does it cost?](https://postgres.ai/docs/questions-and-answers)
- [DBLab Engine](https://postgres.ai/docs/database-lab)
- [DBLab compared with other ways to branch](https://postgres.ai/compare#branching)
- [Wait event analysis dashboard](https://postgres.ai/docs/monitoring/dashboards/wait-events)
- [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)
- [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)
- [Pricing](https://postgres.ai/pricing)
- [Postgres consulting](https://postgres.ai/consulting)
- [Security and compliance](https://postgres.ai/security)

## Sources for DBtune

1. [DBtune home page](https://www.dbtune.com/)
2. [DBtune pricing](https://www.dbtune.com/pricing)
3. [DBtune documentation: how DBtune works](https://www.dbtune.com/docs/overview)
4. [DBtune documentation: supported PostgreSQL flavors](https://www.dbtune.com/docs/category/supported-databases)
5. [DBtune documentation: FAQ](https://www.dbtune.com/docs/faq)
6. [DBtune documentation: community PostgreSQL](https://www.dbtune.com/docs/postgresql)
7. [DBtune documentation: self-hosted deployment](https://www.dbtune.com/docs/self-hosted-overview)
8. [DBtune documentation: agent monitoring and privacy](https://www.dbtune.com/docs/agent-monitoring-and-privacy)
9. [DBtune release notes](https://www.dbtune.com/release-notes)
10. [DBtune agent license](https://github.com/dbtuneai/dbtune-agent/blob/main/LICENSE)
11. [DBtune documentation: tuning targets](https://www.dbtune.com/docs/tuning-targets)
12. [DBtune documentation: recommendations](https://www.dbtune.com/docs/recommendations)
13. [DBtune documentation: tuning modes](https://www.dbtune.com/docs/tuning-modes)
14. [DBtune documentation: production-safe tuning](https://www.dbtune.com/docs/ensuring-production-safe-dbtune)
15. [DBtune documentation: human in the loop](https://www.dbtune.com/docs/Human-in-the-loop)
16. [DBtune documentation: index tuning](https://www.dbtune.com/docs/index-tuning)
17. [DBtune documentation: autovacuum monitoring](https://www.dbtune.com/docs/autovacuum)
18. [DBtune documentation: server parameter tuning](https://www.dbtune.com/docs/server-parameter-tuning)

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