I recently started using PostgreSQL after using SQL Server for a while. Is there something like dm_exec_query_stats?
I haven't been able to find anything other than logging every long running query. I'm looking for something that won't fill up the disk quite as quickly.
pg_stat_statements
extension is probably the closest thing: postgresql.org/docs/current/static/pgstatstatements.html – a_horse_with_no_name Sep 19 '14 at 20:29pg_stat_plans
- github.com/2ndQuadrant/pg_stat_plans - and theauto_explain
module – Craig Ringer Sep 20 '14 at 12:06