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,如需转载请自行联系原作者