Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I got PostgreSQL from here.

Since I'm on 10.7 OS X, I'm having problems.

I want to uninstall the software I got from enterprisedb.

Any tips?

share|improve this question
    
I edited your question a bit. Am I right calling it PostgreSQL? Your original post said "postgres". Is this right? Please feel free to rollback if you didn't like the changes I made. –  daviesgeek Nov 3 '11 at 2:51
add comment

migrated from stackoverflow.com Nov 3 '11 at 0:01

This question came from our site for professional and enthusiast programmers.

2 Answers

http://www.enterprisedb.com/resources-community/pginst-guide

There is a one-click uninstaller that removes everything except the data director and user account. The default data directory is /Library/PostgreSQL/$VERSION/data, so rm -rf that directory (or wherever you instructed the installer to create it).

To remove your postgres user (assuming it is named 'postgres'), first list your users to verify that the user 'postgres' and group 'postgres' are what you expect: (just a safe check) before deleting anything.

sudo dscl . -read /Users/postgres

sudo dscl . -read /Groups/postgres

Look for the "real name" field, to ensure that it matches the version of the db you are removing.

Then remove the user and groups:

sudo dscl . -delete /Users/postgres

sudo dscl . -delete /Groups/postgres

Obviously, be careful when using sudo.

share|improve this answer
add comment

The uninstallation instructions are at the bottom of the installation guide linked from that download page.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.