Log Every Query in Local Development
How to log every SQL statement in local PostgreSQL and MySQL, which settings to use, what it costs, and how to switch it off again safely.
Blog / Tag
How to log every SQL statement in local PostgreSQL and MySQL, which settings to use, what it costs, and how to switch it off again safely.
Use log_min_duration_statement and pg_stat_statements to find slow PostgreSQL queries, with exact settings, units and what needs a restart.