Skip to content

Instantly share code, notes, and snippets.

@chinloongtan
Created April 1, 2016 03:28
Show Gist options
  • Save chinloongtan/e234259cf90092e8f8b869bb5561df25 to your computer and use it in GitHub Desktop.
Save chinloongtan/e234259cf90092e8f8b869bb5561df25 to your computer and use it in GitHub Desktop.
cd /usr/local/var/postgres
cat server.log # (check if last line is "FATAL: lock file "postmaster.pid" already exists")
rm postmaster.pid
# finally restart pg
pgstop
pgstart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment