PostgreSQL 9.6 installation and configuration using brew


brew install postgresql@9.6
echo 'export PATH="/usr/local/opt/postgresql@9.6/bin:$PATH"' >> ~/.bash_profile
source ~/.bash_profile
pg_ctl -D /usr/local/var/postgresql@9.6 start

To configure starting postgres when the machine starts, use:

brew services start postgresql@9.6
Posted on Tue Oct 23 04:51:09 EDT 2018 by Subhash Chandran
postgresql brew postgres