select open change scope Open full search

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

Extensions / Monitoring

pg_stat_plans

Track per-plan call counts, execution times, and example EXPLAIN texts.

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

Overview

Packagepg_stat_plans
Version2.1.0
PostgreSQL versions16 · 17 · 18
RepositoryPGDG
Extension typePreloaded
Requires CREATE EXTENSIONYes
Requires preloadYes
TrustedNo
RelocatableYes
Shared libraries$libdir/pg_stat_plans
Stars51
Latest commit2026-06-24
Latest release2026-06-25
Catalogue updated2026-08-30

Related extensions

See also

pg_show_plansshow query plans of all currently running SQL statements
pg_store_planstrack plan statistics of all SQL statements executed
auto_explainProvides a means for logging execution plans of slow statements automatically
explain_uieasily jump into a visual plan UI for any SQL query
pg_overexplainAllow EXPLAIN to dump even more details
pg_stat_statementstrack planning and execution statistics of all SQL statements executed
pg_hint_planGive PostgreSQL ability to manually force some decisions in execution plans.
hypopgHypothetical indexes for PostgreSQL
pg_qualstatsAn extension collecting statistics about quals
online_advisorSuggest missing indexes and extended statistics online