Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Fuck You Postgres
# Fix postgres after OSX crashed
pg_resetxlog /usr/local/var/postgres
rm /usr/local/var/postgres/
pg_resetxlog /usr/local/var/postgres
pg_resetxlog -f /usr/local/var/postgres
pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start
Copy link

danielpuglisi commented Nov 11, 2014

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