Skip to content

Conversation

@0xgouda
Copy link
Contributor

@0xgouda 0xgouda commented Nov 20, 2025

  • This metric uses the new pg_stat_plans extension to provide insights about different plans for the most resource-intensive queries, including plan, number of calls, and execution times.

This metric uses the new `pg_stat_plans` extension to
provide insights about query planning and performance of
different plans for a specific query.
@0xgouda 0xgouda changed the title [+] add stats_plans metric. [+] add stat_plans metric. Nov 20, 2025
Refactor the metric query to return all plans for
top resource intensive queries which is more useful in deubgging.

The query retrieves the 'top resource intensive' queries via
copying parts of the `stat_statements` metric query.
The plan mimics `Stat Statements Top` but provides
insights for top plans for a given query id.
@0xgouda 0xgouda force-pushed the add-stat-plans-metric branch from 3f7df60 to 758552d Compare November 25, 2025 08:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant