# PostgreSQL to SQL Field Notes: Operational Statistics

DevFeed: [PostgreSQL to SQL Field Notes: Operational Statistics](<https://devfeed.tech/articles/postgresql-to-sql-field-notes-operational-statistics-105871.md>)

Original publisher: [Read original article](<https://devblogs.microsoft.com/azure-sql/pg-to-sql-statistics/>)

Author: Jerry Nixon

Published: 2026-10-28T18:47:53Z

Content type: comparison

Language: en

Sources: [Azure SQL Dev Corner](<https://devfeed.tech/sources/azure-sql-dev-corner.md>)

Topics: [Azure SQL](<https://devfeed.tech/topics/azure-sql.md>), [PostgreSQL](<https://devfeed.tech/topics/postgresql.md>), [SQL](<https://devfeed.tech/topics/sql.md>)

Tags: [azure-sql](<https://devfeed.tech/tags/azure-sql.md>), [azure-sql-database](<https://devfeed.tech/tags/azure-sql-database.md>), [operational](<https://devfeed.tech/tags/operational.md>), [postgresql](<https://devfeed.tech/tags/postgresql.md>), [sql](<https://devfeed.tech/tags/sql.md>), [sql-server-2025](<https://devfeed.tech/tags/sql-server-2025.md>), [statistics](<https://devfeed.tech/tags/statistics.md>)

## AI overview

The article's main distinction is that both PostgreSQL and Azure SQL expose useful operational statistics, but Azure SQL has a broader set of execution and resource diagnostics built into the engine. In Azure SQL, `sys.dm_exec_requests` and `sys.dm_exec_query_statistics_xml` can show operator-level progress for a running query; `sys.dm_exec_query_plan_stats` can retrieve a cached query's last actual plan when enabled. DMVs also expose current and accumulated waits and query memory grants, while Extended Events can capture events such as deadlocks. These capabilities have limits: cached plans can be evicted, wait totals need comparison over time, and missing-index suggestions are estimates that require evaluation. PostgreSQL offers mature statistics, `EXPLAIN`, spill diagnostics, and extensions such as `auto_explain` and `pg_wait_sampling`; deeper diagnostics may require advance configuration and instrumentation. Self-managed PostgreSQL can also offer OS-level profiling access that Azure SQL Database restricts.

## Source excerpt

Welcome to SQL First, welcome to SQL! You're going to like this. I've said this before, but it's still true: moving from PostgreSQL is real work, and depending on your old database, this process will vary widely in complexity. I am confident that you're going to love the mindful and modern features of SQL. Take [...] The post PostgreSQL to SQL Field Notes: Operational Statistics appeared first on Azure SQL Dev Corner.