rm /usr/local/var/postgres/postmaster.pid
brew services restart postgresql

source for fix