ajmalafif
6/2/2014 - 7:23 AM

[pg] — Fix Unix domain socket "/var/pgsql_socket/.s.PGSQL.5432"

[pg] — Fix Unix domain socket "/var/pgsql_socket/.s.PGSQL.5432"

Problem

Postgres

Is the server running locally 
and accepting connections on Unix domain socket "/var/pgsql_socket/.s.PGSQL.5432"?

Solution

So just add export PGHOST=localhost to your shell start file, e.g. ~/.zshrc and you are set.