I\'m getting a common Mac OSX error for Homebrew installations of Postgres,
No such file or directory Is the server running locally and accepting connections on
For me, i removed postmaster.pid in /usr/local/var/postgres. fixed me right up.
/usr/local/var/postgres