Server directory. Double-click the PostgreSQL.mpkg installer and follow the installation steps. Afterwards, go to Applications->PostgreSQL->Service Manager and ensure that the service is running.
sudo -u postgres /Library/PostgreSQL8/bin/initdb -U postgres -D /Library/PostgreSQL8/data
sudo -u postgres /Library/PostgreSQL8/bin/createdb ziptie