

Usually, it is a good practice to restart the system before starting the service as it might save your system from consuming extra computing resources. Once the database system has been installed on your machine, the next step is to start the service. Fig - PostgreSQL installed using Homebrew Once PostgreSQL has been installed, you can see the status on the terminal window as follows.
#Postgres homebrew install install#
It will also install other dependencies required for the PostgreSQL database to run properly. Installation using this method can take some time depending on the network bandwidth. You can use the following command to install PostgreSQL using Homebrew. Once your machine is equipped with Homebrew, now you can install the PostgreSQL database. brew update Fig - Running update command on homebrew Installing PostgreSQL using Homebrew If you already have Homebrew installed, it would be a good practice to update it using the command below. If you want to understand more about how Homebrew works, there is a good article here. This command will install Homebrew on your machine. In case you find that your machine is not equipped with Homebrew, you can run the following command to install it. Fig - Check if homebrew is installed on MacOS You can just open your terminal on Mac and type " brew". Nowadays, most of the latest macOS machines are installed with homebrew, which is a package manager for the Mac operation system. The latest stable version that can be installed is 13.0. You can either download the specified version from the official website or use homebrew to install it. There are multiple ways to download and install the PostgreSQL server on a Mac.
#Postgres homebrew install how to#
In this article, I am going to explain how to install and use PostgreSQL on a Mac. This database is available to be used in multiple platforms such as Windows, Linux and macOS. PostgreSQL is open-source and has very powerful community-driven support which enables it to be one of the most popular relational database management systems after MySQL. PostgreSQL has been one of the most widely used relational database management system.
