After restarting my MacBook Pro I am unable to start the database server:
could not connect to server: No such file or directory Is the server running local
If you recently upgraded to 11 or 12 from 10.x you can run the below command to upgrade your postgres data directory retaining all data:
brew postgresql-upgrade-database
The above command is taken from the output of brew info postgres
brew info postgres