Postgres fails to start properly if there's an obsolete postmaster running and services fail to connect to it so just remove the pid if it exists to make the service create a new process.
rm -f /usr/local/var/postgres/postmaster.pid