psql -U postgres -c 'SHOW config_file'
log_statement = 'none' # none, ddl, mod, all
For MacOS
brew services restart postgresql@14
SELECT
*
FROM
pg_settings
WHERE
category IN( 'Reporting and Logging / Where to Log' , 'File Locations')
ORDER BY
category,
name;
/opt/homebrew/var/postgresql@14/pg_log
pg_dump -U postgres -h localhost -d mamma_development | gzip > ./mamma_development.sql.gz
SELECT pg_current_logfile();
/opt/homebrew/var/log/postgres.log