Open your terminal search for all the available PostgreSQL versions with the command: brew search postgresql If whatever latest version of PostgreSQL Homebrew installed for you is not enough you can install a specific version. You can check the version of PostgreSQL you have installed by running the following command: psql -versionĪt the time I wrote this post the output was: psql (PostgreSQL) 13.3 Installing a different version of PostgreSQL Go to your terminal and install the latest version of PostgreSQL with the following command: brew install postgresql Checking the PostgreSQL version In this tutorial I'll show how I usually setup PostgreSQL on Mac (OSX) via Homebrew.
Homebrew provides an easy way to install open-source software in your Mac, if you don't have it installed please head to brew.sh and follow the instructions before following the rest of this tutorial.