Skip to content

Commit

Permalink
unfuck postgres
Browse files Browse the repository at this point in the history
  • Loading branch information
gabebw committed Feb 13, 2015
1 parent 5105164 commit 0dc5906
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions zsh/postgres.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,7 @@ function db-dump() {

# db-restore DB_NAME
alias db-restore='pg_restore --verbose --clean --no-acl --no-owner -d'

# This file sticks around when postgres force-quits. Postgres reads it and
# thinks it's running but it's not.
alias unfuck-postgres="rm -f /usr/local/var/postgres/postmaster.pid && brew services restart postgres"

0 comments on commit 0dc5906

Please sign in to comment.