# PostgresAI vs Supabase advisors: history and wait events vs built-in lints

> Supabase advisors run security, performance and health checks on every project. PostgresAI keeps 13 months of history on Scale and adds a wait event dashboard.

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

Disclosure: PostgresAI has a Supabase integration: the PostgresAI Console can connect to Supabase projects and set up monitoring for them.

## Short answer

Supabase advisors are deterministic checks that ship with the Supabase platform: security and performance lints from the open-source splinter project, health checks on error rates, and a Query Performance report with index_advisor. Agents reach them through the Supabase MCP server, CLI and Management API. PostgresAI monitoring supports Supabase and runs on the same database, adding wait event history, scheduled checkups turned into Issues, 13-month retention on Scale and human experts. Keep the advisors on; add PostgresAI if you want longer history, wait events or expert help, or one tool across several providers.

## Where PostgresAI is ahead of Supabase advisors

1. **13 months of history.**
   - PostgresAI: Scale keeps 13 months of history. ([Pricing](https://postgres.ai/pricing))
   - Supabase advisors: Supabase reports cover up to 24 hours on Free, 7 days on Pro and 28 days on Team and Enterprise. Logs are kept 1, 7, 28 and 90 days on those plans. [5][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))
   - Supabase advisors: Supabase branches are separate environments for testing changes. New branches start with no data by default; data comes from a seed file or the Include data option, and branch creation in the Dashboard is in beta. [12]
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))
   - Supabase advisors: A Supabase detection check reads wait events from a current pg_stat_activity snapshot of long-running or blocked sessions, and cannot reconstruct sessions that ended between runs. The sources we reviewed do not describe wait event history. [16]

## 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 | Supabase advisors |
|---|---|---|
| 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. | Security, Performance and Health advisors in Supabase Studio, a Query Performance report with index_advisor, and an AI Assistant in the Dashboard for SQL, schema design, error debugging and RLS policies (its feature page says public alpha). [1][5][4][10][11] |
| 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: partly. Supabase projects. The index_advisor extension and the Postgres best practices agent skill are documented for Postgres outside Supabase; index_advisor needs hypopg. [1][9][14][13] |
| 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: partly. Part of the Supabase platform. Supabase can be self-hosted with Docker, but the self-hosting guide lists advanced metrics beyond logs among features not available, and does not say whether the advisors are included. [1][13] |
| Open source | Yes. The monitoring software is open source under Apache 2.0. Hosted plans are a separate paid service. | Yes. splinter, the lint queries behind the advisors, and index_advisor are open source under the PostgreSQL License. [8][9] |
| 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. The Query Performance report gives a detailed analysis of slow queries, and index_advisor is opened from it per query. The CLI adds supabase inspect db commands such as outliers, cache-hit and unused-indexes, and most of them work on any Postgres database. [5][4][15] |
| 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 performance detection check reads wait_event_type, wait_event and blocking PIDs from a current pg_stat_activity snapshot for long-running or blocked sessions; Supabase notes it cannot reconstruct sessions that ended between runs. The sources we reviewed do not describe wait event history. [16][3] |
| 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. Lints include unindexed foreign keys, missing primary keys, unused and duplicate indexes, table bloat, disabled autovacuum, RLS initplan and multiple permissive policies, plus security lints and health checks on API, Auth, Storage and Edge Function error rates. [1] |
| 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. The Supabase MCP server has get_advisors, query_logs and execute_sql, with a read_only mode. A documented hourly agent uses get_advisors and read-only execute_sql to report performance findings; it does not create indexes or cancel sessions. [2][3] |
| 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. Branches are separate Supabase environments for testing. New branches start with no data by default; data comes from a seed file or the Include data option, and branch creation in the Dashboard is in beta. [12] |
| 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. Support by plan: community on Free, email on Pro, priority email with SLAs on Team, 24x7x365 enterprise support on Enterprise. The sources we reviewed do not describe PostgreSQL consulting. [7] |
| Alerts | Email and Slack alerts on Starter and Scale. | The Metrics API, in beta, exposes about 200 Postgres series to scrape once a minute into Grafana or another tool, where you build alerting policies such as saturation detection and index regression. The documented agent prompts report findings in your agent harness. The sources we reviewed do not describe advisor email notifications. [6][3][1] |
| History kept | 14 days on Starter, 13 months on Scale, custom on Enterprise. | Report time ranges: 24 hours on Free, 7 days on Pro, 28 days on Team and Enterprise. Logs are kept 1, 7, 28 and 90 days on Free, Pro, Team and Enterprise. [5][7] |
| 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 pricing page lists SOC 2 and ISO 27001 as included on Team and Enterprise, and HIPAA as a paid add-on on those plans. [7] |

## When Supabase advisors is the better choice

- Included with the platform: the advisors are deterministic checks that ship with Supabase, with nothing to install or pay for separately.
- Security lints for Supabase's API layer, such as RLS disabled in public, tables exposed through pg_graphql and SECURITY DEFINER functions callable by anon or authenticated users.
- Agent access in several forms: get_advisors in the Supabase MCP server, supabase db advisors in the CLI, the Management API, and a documented hourly read-only agent for performance.
- The Query Performance report links slow queries to index_advisor, which suggests CREATE INDEX statements for a query; it builds on the hypopg extension.
- splinter and index_advisor are open source under the PostgreSQL License, and the Postgres best practices agent skill is for Postgres running anywhere.

## 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 |
| Supabase advisors | Free | $0/month | Advisors ship with the platform; 1-day log retention, reports up to 24 hours, community support [7][1][5] |
| Supabase advisors | Pro | From $25/month | $10/month compute credits, 7-day log retention, email support [7] |
| Supabase advisors | Team | From $599/month | 28-day log retention, SOC 2 and ISO 27001, priority email support and SLAs [7] |
| Supabase advisors | Enterprise | Custom | 90-day log retention, 24x7x365 enterprise support [7] |

PostgresAI prices: https://postgres.ai/pricing. These are Supabase platform plans; the advisors are not sold separately.

## Using both

PostgresAI monitoring supports Supabase, so it runs on the same project while the Supabase advisors stay on in Studio and through MCP. PostgresAI adds wait events, scheduled checkups as Issues, longer history and expert help; DBLab can copy a Supabase database with dump and restore to test a fix on full-size data.

## Questions

### What do Supabase advisors check?

Security lints such as RLS disabled in public tables and exposed SECURITY DEFINER functions, performance lints such as unindexed foreign keys, unused or duplicate indexes and table bloat, and health checks on API and Auth error rates. [1]

### Can an AI agent read Supabase advisors?

Yes. The Supabase MCP server has a get_advisors tool for security and performance findings, and Supabase documents an hourly read-only agent for Claude, Codex and Cursor that reports new performance findings. [2][3]

### Are Supabase advisors open source?

The lint queries come from splinter and index recommendations from index_advisor, both open source under the PostgreSQL License. [8][9]

### Can I use PostgresAI and Supabase advisors together?

Yes. PostgresAI monitoring supports Supabase and runs alongside the built-in advisors. It adds wait event history, scheduled checkups as Issues, 13-month retention on Scale and expert requests. [1]

## Sources for PostgresAI

- [Pricing](https://postgres.ai/pricing)
- [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)
- [What are Issues?](https://postgres.ai/docs/questions-and-answers)
- [Monitoring quick start](https://postgres.ai/docs/monitoring/getting-started)
- [Data privacy: metadata only](https://postgres.ai/docs/monitoring#data-privacy-metadata-only)
- [postgresai repository](https://gitlab.com/postgres-ai/postgresai)
- [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)
- [Postgres consulting](https://postgres.ai/consulting)
- [Security and compliance](https://postgres.ai/security)

## Sources for Supabase advisors

1. [Supabase docs: advisors](https://supabase.com/docs/guides/observability/advisors)
2. [Supabase docs: Supabase MCP server](https://supabase.com/docs/guides/ai-tools/mcp)
3. [Supabase docs: automate performance checks with agents](https://supabase.com/docs/guides/observability/automate-with-agents/performance)
4. [Supabase docs: index_advisor](https://supabase.com/docs/guides/database/extensions/index_advisor)
5. [Supabase docs: reports](https://supabase.com/docs/guides/observability/reports)
6. [Supabase docs: metrics](https://supabase.com/docs/guides/observability/metrics)
7. [Supabase pricing](https://supabase.com/pricing)
8. [splinter repository](https://github.com/supabase/splinter)
9. [index_advisor repository](https://github.com/supabase/index_advisor)
10. [Supabase blog: AI Assistant v2](https://supabase.com/blog/supabase-ai-assistant-v2)
11. [Supabase AI Assistant](https://supabase.com/features/ai-assistant)
12. [Supabase docs: branching](https://supabase.com/docs/guides/deployment/branching)
13. [Supabase docs: self-hosting](https://supabase.com/docs/guides/self-hosting)
14. [Supabase docs: agent skills](https://supabase.com/docs/guides/ai-tools/ai-skills)
15. [Supabase docs: inspect the database](https://supabase.com/docs/guides/observability/inspect)
16. [Supabase docs: detection checks](https://supabase.com/docs/guides/observability/detecting)

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