# PostgresAI vs Foglight for PostgreSQL: open source vs workload drill-down

> Foglight monitors PostgreSQL with Performance Investigator, alarm rules and AI query tuning, on premises or as SaaS. PostgresAI is open source and publishes its prices.

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

## Short answer

Foglight for PostgreSQL is part of Foglight for Databases from Quest Software, on premises or as Foglight Cloud. For PostgreSQL it has dashboards, Performance Investigator with wait breakdowns, baselines and explain plans, 18 alarm rules and 10 advisories, plus an AI Optimizer and an MCP server. PostgresAI monitors PostgreSQL, runs scheduled checkups and turns findings into Issues that you, your AI agent or a PostgresAI expert can act on. Pick Foglight if you want per-minute workload drill-down with captured plans, on premises or as SaaS. Pick PostgresAI if you want open-source monitoring, public prices or human experts.

## Where PostgresAI is ahead of Foglight for PostgreSQL

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))
   - Foglight for PostgreSQL: Foglight Cloud for Databases is a subscription bought through Quest Sales, one unit per monitored database instance and host. If a subscription is not renewed within a set period after it expires, the data is deleted with no option for restoration. [14][13]
2. **A published price per cluster.**
   - PostgresAI: Starter is $16 per cluster a month. Scale is $512 per cluster a month and covers a primary and up to 5 replicas. Self-hosting the open-source software carries no licence fee. ([Pricing](https://postgres.ai/pricing))
   - Foglight for PostgreSQL: Quest's Foglight Cloud FAQ says to contact Quest Sales to buy a subscription, and PostgreSQL is licensed per instance. The sources we reviewed publish no price. [14][13]
3. **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))
   - Foglight for PostgreSQL: The Foglight AI Optimizer rewrites a selected query and recommends schema and index changes, and Quest says you remain responsible for validating AI output before implementing it. The sources we reviewed do not describe running a change on a separate copy of the data. [8][12]

## 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 | Foglight for PostgreSQL |
|---|---|---|
| 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. | Part of Foglight for Databases. For PostgreSQL: dashboards, Performance Investigator (PI), alarm rules, advisories and explain plans. Agents collect telemetry and send it to a Foglight Management Server, on premises or in Foglight Cloud. [10][4][5][7] |
| 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. PostgreSQL 9.1 and newer on Windows and Linux, Amazon RDS, Aurora, Google Cloud SQL and Azure Database for PostgreSQL; Databricks Lakebase Postgres (beta on Google Cloud) and AlloyDB are also listed. Performance Investigator needs PostgreSQL 10 and newer, or 11 and newer on Azure. [3][2] |
| 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. On premises or Foglight Cloud. The PostgreSQL agent runs on an Agent Manager local or remote to the server. Foglight Cloud stores data in Azure data centers in the USA or Germany; string literals in SQL and plans are removed by default. [10][2][15][16][19] |
| Open source | Yes. The monitoring software is open source under Apache 2.0. Hosted plans are a separate paid service. | Not documented in the sources we reviewed. Foglight Cloud is sold as a subscription with one unit per monitored database instance. [13][14] |
| 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. A Statements dashboard lists top statements with calls, rows, total and average time and block read and write times. PI samples about every minute and shows explain plans that mark bad row estimates. The AI Optimizer, which needs a license, rewrites a selected PostgreSQL query and suggests schema changes. [4][6][5][8] |
| 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. PI groups wait events into resources and breaks workload down by SQL statement, database, user, client machine, program and session, compared with a baseline. The Connections dashboard shows each session's wait event and type. [5][4] |
| 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. 18 PostgreSQL alarm rules, such as index bloat, replication lag and statement response time above its history, and 10 advisories, such as autovacuum monitoring, possible need for indexes and the 10 slowest queries of the last week. [7] |
| 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 Foglight MCP Server, introduced in July 2026, gives AI clients read-only tools for alarms, agents, Performance Investigation, TopSQL and topology, with OAuth2. AI Insights, a chat that uses GPT-5.4 on Azure, added PostgreSQL execution plans in October 2026 and can query on-premises Foglight through the MCP Server. [9][18][11][12] |
| 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. AI Query Optimization suggests a rewrite and schema changes; the sources do not describe running a change on a separate copy of the data. [8] |
| 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. | Not documented in the sources we reviewed. [14] |
| Alerts | Email and Slack alerts on Starter and Scale. | Alarms rated Warning, Critical or Fatal, sent to contacts by email through notification channels. Rule thresholds can be changed or scoped. A bot for alarm analysis, added in February 2025, needs an additional license. [1][17][7][18] |
| History kept | 14 days on Starter, 13 months on Scale, custom on Enterprise. | Foglight Cloud keeps performance data for paid accounts for one year for trend analysis, at different granularity levels. [16][15] |
| 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. | Foglight Cloud runs in Microsoft Azure. The FAQ says Azure, its data center provider, maintains ISO 27001 and SOC 2 Type II; those are Azure's certifications, not Quest's. Quest documents how Foglight security features meet NIST recommended standards under FISMA. The sources we reviewed do not list certifications held by Quest for Foglight. [16][15] |

## When Foglight for PostgreSQL is the better choice

- Performance Investigator samples PostgreSQL every minute and breaks workload down by statement, database, user, client machine, program and session, with wait resources and a baseline chart.
- Runs on premises or as Foglight Cloud, with agents on a Foglight Agent Manager that can be local or remote to the database.
- Explain plans in Performance Investigator flag the costliest and largest operations and bad row estimates.
- 18 PostgreSQL alarm rules and 10 advisories, including replication slot WAL status, index bloat, autovacuum monitoring and slow query tuning.
- Supports PostgreSQL from version 9.1, on Windows and Linux, RDS, Aurora, Cloud SQL and Azure, plus AlloyDB and Databricks Lakebase Postgres.

## 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 |
| Foglight for PostgreSQL | Foglight Cloud for Databases | No public price | One unit per monitored PostgreSQL instance and one host; buy through Quest Sales; free trial, proof-of-concept plan or demo environment [14][13][19] |

PostgresAI prices: https://postgres.ai/pricing. AI Query Optimization and AI alarm analysis need separate licenses. On-premises licensing is not covered in the Foglight Cloud documentation we reviewed.

## Using both

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

## Questions

### Which PostgreSQL versions does Foglight support?

Foglight for PostgreSQL supports PostgreSQL 9.1 and newer, on Windows and Linux and on Amazon RDS, Aurora, Google Cloud SQL and Azure Database for PostgreSQL. Performance Investigator needs version 10 or newer. [2][3]

### Is Foglight available as SaaS?

Yes. Foglight for Databases runs on premises or as Foglight Cloud, which stores data in Azure data centers in the USA or Germany. The PostgreSQL agent runs on a Foglight Agent Manager, local or remote to the database server. [10][15][2][19]

### What does Foglight for PostgreSQL cost?

Quest publishes no price in the sources we reviewed. Foglight Cloud for Databases is licensed per monitored database instance through Quest Sales. The product page offers a free trial, and the FAQ describes a proof-of-concept plan or a demo environment. [14][13][19]

### Does Foglight show PostgreSQL execution plans?

Yes. With Explain Plans and Explain Analyze enabled for the agent and an admin user configured, Performance Investigator shows execution plans and flags the costliest operations, the largest ones and bad row estimates. [6][5]

### Can I use PostgresAI and Foglight together?

Yes. DBLab, the PostgresAI cloning product, copies any PostgreSQL source, so a team that monitors with Foglight 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)
- [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)
- [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)
- [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 Foglight for PostgreSQL

1. [Foglight documentation: alarms](https://docs.foglightcloud.com/foglightcloudmonitoringconcepts/alarms/)
2. [Foglight documentation: prerequisites for monitoring PostgreSQL](https://docs.foglightcloud.com/monitoringdatabases/monitoringpostgresql/requirements/)
3. [Foglight documentation: supported platforms](https://docs.foglightcloud.com/gettingstartedfoglightcloud/supportedplatforms/)
4. [Foglight documentation: PostgreSQL dashboards](https://docs.foglightcloud.com/monitoringdatabases/monitoringpostgresql/dashboards/)
5. [Foglight documentation: PostgreSQL Performance Investigator](https://docs.foglightcloud.com/monitoringdatabases/monitoringpostgresql/usingpostgresql/)
6. [Foglight documentation: configuring PostgreSQL](https://docs.foglightcloud.com/monitoringdatabases/monitoringpostgresql/configuringpostgresql/)
7. [Foglight documentation: PostgreSQL rules](https://docs.foglightcloud.com/monitoringdatabases/monitoringpostgresql/rules/)
8. [Foglight documentation: AI query optimization](https://docs.foglightcloud.com/monitoringdatabases/usingqueryoptimization/)
9. [Foglight documentation: MCP Server](https://docs.foglightcloud.com/integratingfoglight/mcpservercloud/)
10. [Foglight AI Insights: architecture overview](https://docs.foglightcloud.com/foglightaiinsights/gettingstarted/architecture/)
11. [Foglight AI Insights: what's new](https://docs.foglightcloud.com/foglightaiinsights/gettingstarted/whatsnew/)
12. [Foglight AI Insights: FAQ](https://docs.foglightcloud.com/foglightaiinsights/aifaqs/)
13. [Foglight documentation: database licensing](https://docs.foglightcloud.com/monitoringdatabases/databaselicensing/)
14. [Foglight Cloud FAQ: subscription and activation](https://docs.foglightcloud.com/faq/subscriptionactivation/)
15. [Foglight Cloud: data handling and security](https://docs.foglightcloud.com/datahandlingsecurity/)
16. [Foglight Cloud FAQ: data handling and security](https://docs.foglightcloud.com/faq/datahandlingsecurity/)
17. [Foglight documentation: notification channels](https://docs.foglightcloud.com/foglightcloudmonitoringconcepts/managingnotifications/managingnotificationchannels/)
18. [Foglight Cloud: what's new](https://docs.foglightcloud.com/gettingstartedfoglightcloud/whats-new/)
19. [Quest Foglight product page](https://www.quest.com/foglight)

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