Remove postgres from Mac - installed in /usr/local/, can I just delete files?
Posted
by
Richard
on Super User
See other posts from Super User
or by Richard
Published on 2012-12-03T00:30:12Z
Indexed on
2012/12/03
11:28 UTC
Read the original article
Hit count: 232
osx
|postgresql
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 Postgres.app or the EnterpriseDB installer - but it seems to be living in /usr/local
:
$ which psql
/usr/local/pgsql-9.1/bin/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?
Or is there more to it than that? From memory I think I'll need to delete the database files too somehow.
Thanks for the help.
© Super User or respective owner