select open change scope Open full search

PG.CENTER connects PostgreSQL documentation, reference, and ecosystem knowledge. Maintained by Pigsty.

Extensions / Monitoring

pg_stat_sql_plans

Track execution statistics by normalized SQL query and plan ID.

pgext.cloud · Source code · Documentation · License text · Control file

Overview

Packagepg_stat_sql_plans
Version0.2
PostgreSQL versions14 · 15 · 16 · 17 · 18
RepositoryUnspecified
Extension typePreloaded
Project statusActive
Requires CREATE EXTENSIONYes
Requires preloadYes
TrustedNo
RelocatableYes
Shared librariespg_stat_sql_plans
Schemapublic
Stars10
Latest commit2022-10-08
Catalogue updated2026-08-30

Related extensions

See also

pg_stat_statementstrack planning and execution statistics of all SQL statements executed
pg_stat_plansTrack per-plan call counts, execution times, and example EXPLAIN texts.
pg_stat_cluster_activitytrack execution statistics in whole cluster scope
pg_stat_statements2Track SQL execution statistics using a PostgreSQL 9.4 pg_stat_statements derivative integrated with sql_firewall
pg_store_planstrack plan statistics of all SQL statements executed
pg_query_statsLightweight shared-memory collector for per-query execution statistics.
aqoAdaptive query optimization extension using execution statistics to improve cardinality estimation.
pg_sessionsTracks per-session SQL execution metrics and optional Linux process resource statistics in shared memory.
pg_stat_monitorThe pg_stat_monitor is a PostgreSQL Query Performance Monitoring tool, based on PostgreSQL contrib module pg_stat_statements. pg_stat_monitor provides aggregated statistics, client information, plan details including plan, and histogram information.
pgtelemetryProvides monitoring views and functions for PostgreSQL activity, storage, locks, replication, WAL, vacuum, and query statistics.