This question may look like a duplicate of: How to uninstall postgresql on my Mac (running Snow Leopard) however, there are two major differences. I\'m running Lion and I\'m
I don't use the same version, but uninstall actions are the same: Looking for file uninstall-postgresql inside directory
/Library/PostgreSQL/9.6
then run it.
(Screenshot in macOS 10.13)
then
sudo rm -rf /Library/PostgreSQL/
to delete all unnecessary directory.
I was not able to uninstall PostgreSQL 9.0.8. But I finally found this. (I installed Postgres using homebrew)
brew list
Look for the correct folder name. Something like.
postgresql9
Once you find the correct name do:
brew uninstall postgresql9
That should uninstall it.
Assuming you installed PostgreSQL with homebrew
as referenced in check status of postgresql server Mac OS X and how to start postgresql server on mac os x: you can use the brew uninstall postgresql
command.
If you used the EnterpriseDB installer then see the other answer in this thread.
The EnterpriseDB installer is what you get if you follow "download" links from the main Postgres web site. The Postgres team releases only source code, so the EnterpriseDB.com company builds installers as a courtesy to the community.
You may have also used Postgres.app.
This double-clickable Mac app contains the Postgres engine.