Skip to content

Instantly share code, notes, and snippets.

@squeedee
Last active August 29, 2015 14:27
Show Gist options
  • Save squeedee/dec6b2e61071a3a66833 to your computer and use it in GitHub Desktop.
Save squeedee/dec6b2e61071a3a66833 to your computer and use it in GitHub Desktop.
  • In gocd repo
./scripts/jump
  • target concourse bosh
bosh target 10.0.52.6
  • ssh to the db machine
bosh ssh db/0 --default_password p

  • become vcap
sudo su vcap # pass is 'p'
  • edit the postgres conf
vi /var/vcap/store/postgresql/postgresql.conf
  • add a line log_statement = all

  • save :wq

  • clear logs, restart the server, watch the logs


rm /var/vcap/sys/log/postgresql/postgresql.log
/var/vcap/packages/postgresql_9.3/bin/pg_ctl restart -D /var/vcap/store/postgresql -m fast
tail -f /var/vcap/sys/log/postgresql/postgresql.log
@squeedee
Copy link
Author

To 'disable' remove the log_statement line

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