Skip to content

Instantly share code, notes, and snippets.

@ajsharma
Last active May 23, 2022 22:16
Show Gist options
  • Save ajsharma/56e6e011a66a67bc0a568c745b424daf to your computer and use it in GitHub Desktop.
Save ajsharma/56e6e011a66a67bc0a568c745b424daf to your computer and use it in GitHub Desktop.
How to tail Homebrew Postgres logs in terminal
# File located at /opt/homebrew/var/postgres/postgresql.conf
# Find `log_statement` and set it to 'all'.
log_statement = 'all'
# Postgres must be restarted before changes take effect.
# After updating config, run
brew services restart postgresql
# Then, to follow the logs
tail -f /opt/homebrew/var/log/postgres.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment