Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to completely uninstall postgres and start from scratch - the version I have is refusing to work with PostGIS 2.0. I have read other answers on how to do this, but none of them seem to fit the way postgres is set up on this machine.

I'm not sure postgres was originally installed on this machine - it wasn't via brew or or the EnterpriseDB installer - but it seems to be living in /usr/local:

$ which psql

The postgres binary itself is in /usr/local/var/postgres/.

How can I kill it forever? Can I simply go to /usr/local and do rm -rf pgsql-9.1, and the same in /usr/local/var, and make sure there are no paths in my profile file?

Sorry if this is a duplicate - I have found other questions that are similar, but none of them says unambiguously exactly what to do once you've found the file location.

share|improve this question

You must log in to answer this question.

Browse other questions tagged .