Created
November 11, 2014 09:06
-
-
Save danielpuglisi/b708c802a159e5d868b3 to your computer and use it in GitHub Desktop.
Fuck You Postgres
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Inspired by Psql: could not connect... Oh fuck you!