This is for version 9.3. As in other editions, the following is for reference only.
1, if it is the form of Postgresql.app, this simple, as with other apps, delete the app.
2, if it is installed using the Installer graphical interface method. You need to open the terminal command line.
3. Implementation
Open/Library/PostgreSQL/9.2 / Uninstall-postgresql. app
you may be prompted to enter your password.
4, wait for the previous step to complete, delete the PostgreSQL folder
-/Library/PostgreSQL
you may be prompted to enter your password
5. Delete the configuration file
/ etc / Postgres-reg . INI
you may be prompted to enter your password
6, in user management to remove PostgreSQL users, System Preferences--"users and user groups.
7, delete the shared memory settings (I have not done special settings, so I am this machine is not this file, if there is, can be deleted. )
/ etc / Sysctl . conf