Install Postgres and psql on Mac
Published: 2019-10-11
-
Download and install Postgres.app
-
Set environment variables in your bash config file, e.g.
~/.bash_profile
export POSTGRES_HOME=/Applications/Postgres.app/Contents/Versions/latest export PATH=$POSTGRES_HOME/bin:$PATH
-
Source bash config file
source ~/.bash_profile
-
Confirm installation
psql --version