Posted on 27th June 2022
This kind of error happens when PostgreSQL server does not run due to force shut down because if you delete a postmaster. Pid without crosschecking if any process is running this could permanently corrupt your database.
And if this happens then you can use the procedure:
Brew services start PostgreSQL
Now you can create your database.
STILL GOT QUERIES?