Skip to content

Instantly share code, notes, and snippets.

@danielpuglisi
Created November 11, 2014 09:06
Show Gist options
  • Save danielpuglisi/b708c802a159e5d868b3 to your computer and use it in GitHub Desktop.
Save danielpuglisi/b708c802a159e5d868b3 to your computer and use it in GitHub Desktop.
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

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