Skip to content
TrackPodcasts
technologySep 2, 202611:32pending

What pg_stat_statements Actually Tells You About Your Queries

About this episode

This story was originally published on HackerNoon at: https://hackernoon.com/what-pg_stat_statements-actually-tells-you-about-your-queries.
Learn how to use pg_stat_statements to find PostgreSQL queries that consume the most execution and planning time, even when they run in milliseconds.
Check more stories related to undefined at: https://hackernoon.com/c/undefined. You can also check exclusive content about #postgresql-query-analysis, #slow-query-optimization, #postgresql-partition-pruning, #pg_stat_statements, #planning-time-optimization, #postgresql-query-performance, #query-fingerprint-monitoring, #good-company, and more.

This story was written by: @tigerdata. Learn more about this writer by checking @tigerdata's about page, and for more stories, please visit hackernoon.com.

Your slowest PostgreSQL query isn't necessarily your most expensive. This guide uses pg_stat_statements to analyze real query fingerprints by total execution time, call frequency, buffer usage, and planning time. It shows how a 0.2ms query can consume more planning time than every other statement combined, how partition pruning creates hidden costs, and where pg_stat_statements' blind spots begin.

Get every episode summarized

Each time The Good Tech Companies publishes, we email you a written briefing from the transcript — the topics, who appeared, and any specific claims, with the ad reads skipped.

Email me new episodes

Free for 3 shows. No card needed.

Hosts & guests

No transcript yet

This episode has not been transcribed. Request it and it moves to the front of the queue.

What pg_stat_statements Actually Tells You About Your Queries

The Good Tech Companies

0:00
11:32

More episodes

More from The Good Tech Companies

View all episodes →