概ね上記だけど、postgresの再起動がそのままではできなくて
を参考にした。多謝。結果以下のようにコマンドすることになった。
rm /usr/local/var/postgres/postmaster.pid
launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist