What is pg_stat_statements?

pg_stat_statements is a PostgreSQL extension that records execution statistics for every normalized SQL statement: calls, total and mean time, rows and more.

It is the standard way to find the queries that consume the most time in a PostgreSQL database, before reaching for indexes or rewrites.

pg_stat_statements in LordBase

LordBase query analytics is based on pg_stat_statements. Query analytics

Related terms

Free for up to 3 databases

PostgreSQL, Redis and MongoDB in one place. Upgrade when your project grows.

Last updated

What is pg_stat_statements? Definition | LordBase