Question

Sorry for this noob question, but I'm not sure what I just did regarding PostgreSQL. I downloaded and installed Postres.app from http://postgresapp.com/ Then I decided that I no longer wanted it and would rather just install PostgreSQL with Homebrew. So I dragged Postgres.app from my applications folder to my trash and then cleaned my trash and rebooted. Now I'm discovering that I can run psql from the command line with no problem and I appear to be able to create and connect to PostgreSQL databases and so forth. So my question is: was PostgreSQL already installed on my system (Mac 10.8.2 - Mountain Lion)? When I installed Postgres.app, was that just a wrapper that started and stopped the database for me? (If so, why was it a 28 MB download?) Or did I install PostgreSQL when I installed Postgres.app?

Was it helpful?

Solution

According to this you've done ok with the Trash. You can go through the list of folders it mentions as installation directories and remove them if still present:

  • Binaries: /Applications/Postgres.app/Contents/MacOS/bin
  • Headers: /Applications/Postgres.app/Contents/MacOS/include
  • Libraries: /Applications/Postgres.app/Contents/MacOS/lib
  • Shared Libraries: /Applications/Postgres.app/Contents/MacOS/share
  • Data: ~/Library/Application\ Support/Postgres/var

Also you can check your psql installation running:

$ which psql

It should come from /usr/bin/ if it was installed properly by some source (macports, brew) and I presume the PostgresApp used its own bin folder for it.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top