Install PostgreSQL 12 on Mac OS X with brew
PostgreSQL 12 has been released on 3rd October. So you can use this post to easily install PostgreSQL 12 on mac using brew.
PostgreSQL is a powerful, open-source object-relational database system. The core of the PostgreSQL object-relational database management system is available in several sources and binary formats.
Related Post: How to install PostgreSQL 10 on Mac
Related Post: How to install PostgreSQL 11 on Mac with brew
1. Brew Tap
Firstly we need to tap brew for postgresql version 12.
brew tap petere/postgresql
You might also like: How to install postgresql 10 on centos 7
2. Install Postgresql 12
Now you can search for available postgresql packages using the following command
brew search postgresql
It will list all the available postgresql packages.
Now you can use the following command to install the PostgreSQL 12.
brew install petere/postgresql/[email protected]
Now postgresql database is set up and you can log in and create a new user and password.
If you got some issues installing postgresql on mac please feel free to comment below.