天天看點

How completely uninstall PostgreSQL 9.X on Mac OSX

If installed PostgreSQL with <code>homebrew</code> , enter <code>brew uninstall postgresql</code>

<code>sudo /Library/PostgreSQL/9.X/uninstall-postgresql.app/Contents/MacOS/installbuilder.sh</code>

<code>open /Library/PostgreSQL/9.X/uninstall-postgresql.app</code>

<code>sudo rm -rf /Library/PostgreSQL</code>

<code>sudo rm /etc/postgres-reg.ini</code>

Unlock the settings panel by clicking on the padlock and entering your password.

Select the PostgreSQL user and click on the minus button.

Restore your shared memory settings: <code>sudo rm /etc/sysctl.conf</code>

本文轉自 h2appy  51CTO部落格,原文連結:http://blog.51cto.com/h2appy/1860812,如需轉載請自行聯系原作者

繼續閱讀