Apple - How to restart PostgreSQL installed by Brew in OSX?
Brew has that covered:
brew services restart postgresql
Manually Start PostgreSQL:
pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start
Manually Stop PostgreSQL:
pg_ctl -D /usr/local/var/postgres stop -s -m fast
This stackoverflow discussion really goes into some great detail, with many more options. I used it to create an alias to just run:
postgresql.server stop
postgresql.server start