PostgreSQL

Postgres in Production Special Series: Diagnosing High Cardinality Workloads in pg_stat_statements (Part 6)

In the sixth episode of a Postgres in Production series, Ryan Booz examines high cardinality workloads and how they limit the usefulness of pg_stat_statements. ORMs, dynamic SQL and AI-assisted development tools can generate far more unique queries than expected. The episode includes a side-by-side demo of the same workload on Postgres 17 and Postgres 18 and checks for whether pg_stat_statements is losing data needed for query tuning.

AI-written summary, checked against the cited sources. How summaries work

Read at pganalyze