Load and Unload Mac daemons
So I recently upgrade to Postgresql 9.0 from 8.4 on my Mac. I realized after installing that I did not remember how to stop my old Postgresql instance from startup on boot. Basically, both versions were trying to run on the same port whenever I booted up. I did not want to uninstall my old version just yet so I needed to stop it from starting up. You can see the list of daemons on your Mac that will startup on boot using the command below:
ls /Library/LaunchDaemons/
I stopped Postgresql 8.4 from startup on boot using the following command.
sudo launchctl unload -w com.edb.launchd.postgresql-8.4.plist