When hydro dies and my MacOS machine reboots, PG never restarts nice.
brew services restart postgresql
Stopping `postgresql`... (might take a while)
==> Successfully stopped `postgresql` (label: homebrew.mxcl.postgresql)
==> Successfully started `postgresql` (label: homebrew.mxcl.postgresql)
At this point PG remains dead.
in /usr/local/var/postgres the postmaster.pid file is still around, presumably from the time the machine died. I was thinking the brew services restart command would scan for the existance of that and remove it, but no. So I have to manually remove that and then run the command again, at which point PG is once again responsive and working.
Is there not an easier way with MacOS to ensure a restart is a restart without manually having to delete the old postmaster.pid file?