Skip to main content

PostgresAI vs Azure PostgreSQL built-in tools

any provider vs Azure only

Azure Database for PostgreSQL includes Query Store and autonomous tuning with index advice. PostgresAI runs the same checkups on any provider and files Issues with a fix.

See plans and pricingOpen the live demoTalk to us

Checked on against 14 pages of Azure PostgreSQL built-in tools documentation. PostgreSQL only. Markdown

Where PostgresAI is ahead of Azure PostgreSQL built-in tools​

Each point pairs what our documentation says with what the Azure PostgreSQL built-in tools documentation says. Follow the links and check.

  1. The same checks wherever Postgres runs

    PostgresAI

    Amazon RDS and Aurora, Google Cloud SQL, Azure Database for PostgreSQL, Supabase, Tiger Data, self-managed servers and Postgres running on Kubernetes. docs

    Azure PostgreSQL built-in tools

    Microsoft describes autonomous tuning as a built-in offering of Azure Database for PostgreSQL flexible server. It needs at least 4 vCores, adaptive autovacuum is not supported on elastic clusters, and Microsoft says not to enable Query Store on the Burstable tier. 361

  2. 13 months of history

    PostgresAI

    Scale keeps 13 months of history. docs

    Azure PostgreSQL built-in tools

    Query Store keeps 7 days by default and at most 30. Azure Monitor metrics are kept up to 93 days, with at most 30 days on one chart. Autonomous tuning recommendations are deleted 35 days after they were last produced. 183

  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. docsdocs 2

    Azure PostgreSQL built-in tools

    Autonomous tuning evaluates candidate indexes with the hypopg extension and reports the estimated plan cost improvement per query. The sources we reviewed do not describe running a change on a separate copy of the data. 3

  4. 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. docsdocs 2

    Azure PostgreSQL built-in tools

    These tools are features of Azure Database for PostgreSQL, which Microsoft describes as a fully managed database service, and they run only inside that service. 133

Short answer​

Azure Database for PostgreSQL flexible server includes Query Store, Query Performance Insight, autonomous tuning (index, ANALYZE and VACUUM recommendations), intelligent tuning and adaptive autovacuum, and troubleshooting guides. They come with the server and Query Store has no extra charge. PostgresAI monitors PostgreSQL on any provider and turns checkup findings into Issues with a fix. On Azure, use both: keep the built-in tools, and add PostgresAI for checkups, agent access, history beyond Azure's limits or expert help.

When Azure PostgreSQL built-in tools is the better choice​

  • Built into the server: Query Store is available at no extra charge and troubleshooting guides cost nothing beyond the Log Analytics ingestion they need.
  • Autonomous tuning recommends CREATE INDEX, dropping duplicate or unused indexes, REINDEX of invalid indexes, ANALYZE and VACUUM, each with a SQL statement; index recommendations include estimated size and query cost impact.
  • Intelligent tuning and adaptive autovacuum change write and autovacuum parameters automatically; adaptive autovacuum records each change in an audit view.
  • Query Store records wait samples every 100 ms by default and can store query plans, all queryable as views in the azure_sys database.
  • The Azure MCP Server has PostgreSQL tools to list servers and tables, run queries, read table schemas and read or set server parameters.
The Issues list in the PostgresAI Console: unused indexes consuming 19.2 GiB, redundant indexes that can be deleted to save 3.76 GiB, an invalid index and estimated index bloat, each opened by a checkup.

What you get​

Checkup findings as Issues in the PostgresAI Console. How it works

See plans and pricingOpen the live demoTalk to us

PostgresAI and Azure PostgreSQL built-in tools, side by side​

QuestionPostgresAIAzure PostgreSQL built-in tools
What it isPostgreSQL 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 2Features of Azure Database for PostgreSQL flexible server: Query Store, Query Performance Insight in the portal, autonomous tuning recommendations, intelligent tuning and adaptive autovacuum that change parameters, troubleshooting guides, and Azure Monitor metrics and logs. 12357
Where your Postgres can run, and which versionsYesAmazon 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. docsNoOnly Azure Database for PostgreSQL flexible server, which supports PostgreSQL 11 to 18, with 11 to 13 under extended support. Autonomous tuning needs PostgreSQL 12 or newer and adaptive autovacuum parameter tuning 14 or newer. Adaptive autovacuum is not supported on elastic clusters. 3146
Where it runs and what it collectsYesHosted 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 2NoPart of Azure Database for PostgreSQL, which Microsoft describes as "a fully managed database service". Query Store and recommendations are stored in the azure_sys database on your server; Query Performance Insight and the troubleshooting guides also need logs sent to a Log Analytics workspace. 13127
Open sourceYesThe monitoring software is open source under Apache 2.0. Hosted plans are a separate paid service. docsdocs 2Does not applyDoes not apply: these tools are features of Azure Database for PostgreSQL, a Microsoft cloud service. 13
Query performance analysisYesTop 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 2YesQuery Store keeps runtime statistics in 15-minute windows by default, up to 500 queries per window, with optional query plans. Query Performance Insight shows long-running queries and top queries by calls, data usage, IOPS and temporary files. Query Store is opt-in, and Microsoft says not to enable it on the Burstable tier. 12
Wait event analysisYesAn ASH-style wait event dashboard built from samples of pg_stat_activity. No extra extension is needed. docsYesQuery Store wait sampling records wait event type and name per query, sampled every 100 ms by default, and Query Performance Insight has a Wait Statistics tab. An enhanced metric counts sessions by wait event type. 128
Health checks and recommendationsYesScheduled 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 2YesAutonomous tuning runs every 12 hours by default and recommends B-tree indexes, dropping duplicate or unused indexes, REINDEX, ANALYZE and VACUUM. You apply them yourself. It needs Query Store and at least 4 vCores. Troubleshooting guides cover CPU, memory, IOPS, temp files and autovacuum. 347
AI and agent accessYesThe 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 2YesThe Azure MCP Server has PostgreSQL tools to list servers, databases and tables, run a query, get a table schema and get or set server parameters; it lists a GitHub Copilot subscription as a prerequisite. Recommendations are also available with az postgres flexible-server autonomous-tuning commands. 9104
Testing a fix before productionYesWith 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 2PartlyAutonomous tuning uses the hypopg extension to evaluate candidate indexes and reports the estimated plan cost improvement per query. The sources we reviewed do not describe running a change on a separate copy of the data. 3
Human PostgreSQL expertsYesScale 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 2PartlyAzure support plans from Developer ($29 a month) to Unified Enterprise, which includes advisory support, with Cloud Solution Architect services available. The sources we reviewed do not describe PostgreSQL-specific consulting. 11
AlertsEmail and Slack alerts on Starter and Scale. docsAzure Monitor alerts on platform, enhanced, autovacuum and availability metrics, and log query alerts in Log Analytics. 8
History kept14 days on Starter, 13 months on Scale, custom on Enterprise. docsQuery Store: 7 days by default, 1 to 30 days. Metrics: up to 93 days. Autonomous tuning recommendations are deleted 35 days after they were last produced. Adaptive autovacuum audit records: 90 days. 1836
Security attestationsSOC 2 Type 2 examination completed for the Security and Availability criteria, covering March 4 to June 4, 2026. The SOC 3 report is public. docsMicrosoft states that Azure undergoes independent SOC 2 Type 2 audits; the list of services in scope is in the Azure SOC 2 Type 2 attestation report. 12

Pricing​

ProductPlanList priceNotes
PostgresAIStarter$16 per cluster/monthPrimary only, 14-day retention, no expert requests included
PostgresAIScale$512 per cluster/monthPrimary and up to 5 replicas in one cluster, 13-month retention, Grafana dashboards, 2 expert requests a month
PostgresAIEnterpriseCustomContact sales
PostgresAISelf-hostedNo licence feeOpen source under Apache 2.0; you run it yourself
Azure PostgreSQL built-in toolsQuery StoreNo extra chargeOpt-in; not recommended on the Burstable tier 1
Azure PostgreSQL built-in toolsTroubleshooting guidesNo extra chargeBeyond Log Analytics ingestion, which all guides need 7
Azure PostgreSQL built-in toolsEmbedded Grafana dashboardsNo extra costPrebuilt dashboards in the Azure portal for Azure Monitor metrics 8

List prices on 18 Nov 2026. The billing units differ, so this is not a total-cost comparison. Logs sent to Log Analytics have ingestion, retention and query costs, and Query Performance Insight needs them. The sources we reviewed do not state a separate price for autonomous tuning, intelligent tuning or adaptive autovacuum. PostgresAI pricing

Using PostgresAI with Azure PostgreSQL built-in tools​

PostgresAI monitoring supports Azure Database for PostgreSQL, so it can run against the same server while Query Store, autonomous tuning and the troubleshooting guides stay on. Azure keeps its index and parameter tuning; PostgresAI adds scheduled checkups, Issues with a fix, 13 months of history on Scale and expert help.

Questions​

Does Azure Database for PostgreSQL recommend indexes?
Yes. Autonomous tuning analyzes the Query Store workload and recommends B-tree indexes to create, duplicate or unused indexes to drop, and invalid indexes to reindex, with a SQL script for each. It also recommends ANALYZE and VACUUM. You run the scripts yourself. 34
What do the Azure tuning features need?
Query Store must be enabled with pg_qs.query_capture_mode set to top or all. Autonomous tuning needs at least 4 vCores and PostgreSQL 12 or newer. Query Performance Insight also needs wait sampling and a Log Analytics workspace. 123
Does Azure change PostgreSQL settings automatically?
Intelligent tuning adjusts bgwriter_delay, checkpoint_completion_target, max_wal_size and min_wal_size. Adaptive autovacuum, when enabled, tunes five autovacuum parameters every 30 minutes and records each change in an audit view. 56
How long does Query Store keep data?
7 days by default, configurable from 1 to 30 days with pg_qs.retention_period_in_days. Azure Monitor metrics are kept up to 93 days. 18
Can I use PostgresAI with Azure Database for PostgreSQL?
Yes. PostgresAI monitoring supports Azure Database for PostgreSQL, so it runs next to Query Store and autonomous tuning on the same server and adds checkups, Issues and expert help. 1

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.

See plans and pricingOpen the live demoTalk to us

Sources​

  1. Azure Database for PostgreSQL: Query Store
  2. Azure Database for PostgreSQL: Query Performance Insight
  3. Azure Database for PostgreSQL: autonomous tuning
  4. Azure Database for PostgreSQL: use autonomous tuning recommendations
  5. Azure Database for PostgreSQL: intelligent tuning
  6. Azure Database for PostgreSQL: adaptive autovacuum
  7. Azure Database for PostgreSQL: troubleshooting guides
  8. Azure Database for PostgreSQL: monitor using metrics and logs
  9. Azure MCP Server tools for Azure Database for PostgreSQL
  10. What is the Azure MCP Server?
  11. Azure support plans
  12. Azure compliance: SOC 2 Type 2
  13. What is Azure Database for PostgreSQL flexible server?
  14. Microsoft Learn: Supported versions of PostgreSQL in Azure Database for PostgreSQL

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.