A simple way to identify slow Postgres SQLs
I've just learned probably the simplest way to identify slow Postgres queries in your application. Postgres has the built-in extension named pg_stat_statements that tracks the executed SQLs, their execution times, and other things. First of all, you can enable the extension with: CREATE EXTENSION pg_