[pg] — Fix Unix domain socket "/var/pgsql_socket/.s.PGSQL.5432"
Postgres
Is the server running locally
and accepting connections on Unix domain socket "/var/pgsql_socket/.s.PGSQL.5432"?
So just add
export PGHOST=localhostto your shell start file, e.g.~/.zshrcand you are set.