Added ha-postgres-setup.sh

Turned https://wiki.postgresql.org/images/0/07/Ha_postgres.pdf into a shell script.