Skip to content

Instantly share code, notes, and snippets.

@killmenot
Created December 11, 2014 21:02
Show Gist options
  • Save killmenot/2122f4cd025a9d000d07 to your computer and use it in GitHub Desktop.
Save killmenot/2122f4cd025a9d000d07 to your computer and use it in GitHub Desktop.
PostgreSQL command line aliases
# PostgreSQL
export PATH="/Library/PostgreSQL/9.3/bin:$PATH"
alias postgres.start="sudo su postgres -c '/Library/PostgreSQL/9.3/bin/pg_ctl -D /Library/PostgreSQL/9.3/data start'"
alias postgres.stop="sudo su postgres -c '/Library/PostgreSQL/9.3/bin/pg_ctl -D /Library/PostgreSQL/9.3/data stop -s -m fast'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment