This is a step-by-step guide to install PostgreSQL on a Mac OS machine. We will be installing PostgreSQL version 11.3 on Mac using the installer provided by EnterpriseDB in this article.
GUI Client Apps. There are many clients for PostgreSQL on the Mac. You can find many of them in the Community Guide to PostgreSQL GUI Tools in the PostgreSQL wiki. Some of them are quite powerful; some are still a bit rough. PostgreSQL is an open-source, object-relational database management system (ORDBMS) available for all major platforms including Linux, UNIX, Windows, and OS X. It allows you to add custom functions developed using different programming languages such as C/C, Java, etc. It is designed to handle a range of workloads, from single machines to data warehouses or Web services with many concurrent.
PostgreSQL Tools. PgAdmin is the most popular and feature rich Open Source administration and development platform for PostgreSQL, the most advanced Open Source database in the world. PgAdmin may be used on Linux, Unix, macOS and Windows to manage PostgreSQL and EDB Advanced Server 9.5.
There are three crucial steps for the installation of PostgreSQL as follows:
- Download PostgreSQL EnterpriseDB installer for Mac
- Install PostgreSQL
- Verify the installation
Downloading PostgreSQL Installer for Mac
You can download the latest stable PostgreSQL Installer specific to your Mac OS by clicking here.
Installing the PostgreSQL installer
After downloading the installer run the downloaded dmg package as administrator user and follow the below steps:
- Step 1: Click the Next button
- Step 2: Choose the installation folder, where you want PostgreSQL to be installed, and click on Next.
- Step 3: Select the components as per your requirement to install and click the Next button.
- Step 4: Select the database directory where you want to store the data an click on Next.
- Step 5: Set the password for the database superuser (Postgres)
- Step 6: Set the port for PostgreSQL. Make sure that no other applications are using this port. If unsure leave it to its default (5432) and click on Next.
- Step 7: Choose the default locale used by the database and click the Next button.
- Step 8: Click the Next button to start the installation.
Wait for the installation to complete, it might take a few minutes.
Verifing the Installation of PostgreSQL
You can check the installation using the below command in the terminal:
Sql Manager Lite For Postgresql
This will result in the below image:
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to [email protected] See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the 'Improve Article' button below.