pg_stat_plans is a new PostgreSQL extension that tracks aggregated statistics for query plans rather than SQL statements. This walkthrough demonstrates integrating pg_stat_plans with pgwatch monitoring tool to track query plans for resource-intensive queries. The tutorial covers writing custom SQL queries to join

7m read timeFrom cybertec-postgresql.com
Post cover image
Table of contents
Writing The QueryAdding a New MetricVisualizing The MeasurementsFinal notes

Sort: