4a36bb144bbec6b5001f6cdecdc1f9497191c9b7
- Author
- Robby Russell <robby@planetargon.com>
- Committer
- Robby Russell <robby@planetargon.com>
- Date
Message
Merge pull request #2108 from rimenes/add-status-reload-to-postgres
Add reload and status aliases to postgres
Diff
1diff --git a/plugins/postgres/postgres.plugin.zsh b/plugins/postgres/postgres.plugin.zsh
2index cdd142e92c61c8db172e72a165923b5d96b11d12..c2dbef244fe7f3a11209f19486047ebe2fd6fd54 100644
3--- a/plugins/postgres/postgres.plugin.zsh
4+++ b/plugins/postgres/postgres.plugin.zsh
5@@ -1,6 +1,8 @@
6-# Aliases to stop, start and restart Postgres
7-# Paths noted below are for Postgress installed via Homebrew on OSX
8+# Aliases to control Postgres
9+# Paths noted below are for Postgres installed via Homebrew on OSX
10
11 alias startpost='pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start'
12 alias stoppost='pg_ctl -D /usr/local/var/postgres stop -s -m fast'
13-alias restartpost='stoppost && sleep 1 && startpost'
14+alias restartpost='stoppost && sleep 1 && startpost'
15+alias reloadpost='pg_ctl reload -D /usr/local/var/postgres -s'
16+alias statuspost='pg_ctl status -D /usr/local/var/postgres -s'