Install Postgres and psql on Mac
Published: Oct 11, 2019
Updated: Feb 28, 2022
Updated: Feb 28, 2022
For your local database needs.
-
Download and install Postgres.app
-
Set environment variables in your shell config file
export POSTGRES_HOME=/Applications/Postgres.app/Contents/Versions/latest export PATH=${POSTGRES_HOME}/bin:${PATH}
-
Restart Terminal
-
Confirm installation
psql --version