Use the following steps to remove postgres from a macintosh OSX server.
- Stop the postgres database using the
pg_ctl stop -m immediate' command
- When the server is stopped, use the un-install program in the /Library/PostgreSQL/x.x directory to get rid of it properly
- throw out the entire folder called /Library/PostgreSQL
- restart the mac