1. Find the log file psql -U postgres -c 'SHOW config_file' 2. Change the settings log_statement = 'none' # none, ddl, mod, all 3. Restart postgresql service For MacOS brew services restart postgresql@14
pg_dump -U postgres -h localhost -d mamma_development | gzip > ./mamma_development.sql.gz