The easiest way to get started with PostgreSQL on the Mac


To install, just drag it to your Applications folder and double click. must be placed in the /Applications folder, and you can’t rename it. The reason for this is that it includes a lot of dynamic libraries that can be used by other software. These libraries can’t be found if you change the path.

If you’d like to use the command line tools delivered with, execute the following command in Terminal to configure your $PATH, and then close & reopen the window:

sudo mkdir -p /etc/paths.d && echo /Applications/ | sudo tee /etc/paths.d/postgresapp

For more details, see the section on Command Line Tools.

Installation Directories

  • Binaries: /Applications/
  • Headers: /Applications/
  • Libraries: /Applications/
  • Default data directory: ~/Library/Application Support/Postgres/var-XX (XX is the major version of PostgreSQL)


  1. Quit & drag it to the Trash
  2. Delete the data directory (default location: ~/Library/Application Support/Postgres)
  3. Delete preferences for by executing the following command:
    defaults delete com.postgresapp.Postgres2
  4. Remove the $PATH config for the command line tools (optional):
    sudo rm /etc/paths.d/postgresapp