Skip to content

Instantly share code, notes, and snippets.

@sbellware
Created April 17, 2019 17:52
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save sbellware/d5ded2dbbeefc0a9ada2b27f4245c350 to your computer and use it in GitHub Desktop.
Save sbellware/d5ded2dbbeefc0a9ada2b27f4245c350 to your computer and use it in GitHub Desktop.
Some useful Postgres configuration changes for a dev machine

Some useful Postgres configuration changes for a dev machine:

log_connections = on
log_disconnections = on
log_statement = 'all'

Optionally, set log timestamps to local time

log_timezone = 'US/Central' # Or whatever your timezone is

Note: To find the config file on your machine:

 psql -c "SHOW config_file;"
@dlidstrom
Copy link

Thanks for sharing this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment