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 / Category
Everything about running databases on a developer machine: installing several versions, keeping ports and data directories apart, logging statements for debugging and knowing what that costs.
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.
Run PostgreSQL 15, 16 and 17 on one machine using separate data directories and ports, with exact initdb and pg_ctl commands and common pitfalls.