Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Fuck You Postgres
#!/bin/bash
#
# Fix postgres after OSX crashed
pg_resetxlog /usr/local/var/postgres
rm /usr/local/var/postgres/postmaster.pid
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
@danielpuglisi
Copy link
Author

danielpuglisi commented Nov 11, 2014

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