Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save ByteDecoder/402715c118363c31a37a842cc053569b to your computer and use it in GitHub Desktop.

Select an option

Save ByteDecoder/402715c118363c31a37a842cc053569b to your computer and use it in GitHub Desktop.

Revisions

  1. @Atlas7 Atlas7 revised this gist Feb 5, 2016. 1 changed file with 1 addition and 2 deletions.
    3 changes: 1 addition & 2 deletions remove_postgres_on_mac_os.md
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,4 @@


    This [blog post](http://hzchirs-blog.logdown.com/posts/142678-how-completely-uninstall-postgresql-9x-on-mac-osx) has helped me clean up my postgres development environment on Mac. So making a copy!

    ```
    How completely uninstall PostgreSQL 9.X on Mac OSX
  2. @Atlas7 Atlas7 created this gist Feb 5, 2016.
    34 changes: 34 additions & 0 deletions remove_postgres_on_mac_os.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,34 @@



    ```
    How completely uninstall PostgreSQL 9.X on Mac OSX
    This article is referenced from stackoverflow:
    If installed PostgreSQL with homebrew , enter brew uninstall postgresql
    If you used the EnterpriseDB installer , follow the following step.
    Run the uninstaller on terminal window
    sudo /Library/PostgreSQL/9.X/uninstall-postgresql.app/Contents/MacOS/installbuilder.sh
    If installed with Postgres Installer, do:
    open /Library/PostgreSQL/9.X/uninstall-postgresql.app
    Remove the PostgreSQL and data folders. The Wizard will notify you that these were not removed.
    sudo rm -rf /Library/PostgreSQL
    Remove the ini file:
    sudo rm /etc/postgres-reg.ini
    Remove the PostgreSQL user using System Preferences -> Users & Groups.
    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: sudo rm /etc/sysctl.conf
    ```