postgres.plugin.zsh 439 B

12345678
  1. # Aliases to control Postgres
  2. # Paths noted below are for Postgres installed via Homebrew on OSX
  3. alias startpost='pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start'
  4. alias stoppost='pg_ctl -D /usr/local/var/postgres stop -s -m fast'
  5. alias restartpost='stoppost && sleep 1 && startpost'
  6. alias reloadpost='pg_ctl reload -D /usr/local/var/postgres -s'
  7. alias statuspost='pg_ctl status -D /usr/local/var/postgres -s'