Postgresql’s pg_stat_statements

This is a postgresql module allowing to track planning and execution statistics of all SQL statements executed by a server.

Using this, we can monitor/figure out what the slowest queries executed on the server are.

Resources: