Cannot connect to server. Too many symbolic links. Postgres Error I get this error when I try connecting to a PostgreSQL server:

psql: could not connect to server: Too many levels of symbolic links
    Is the server running locally and accepting
    connections on Unix domain socket "/var/pgsql_socket/.s.PGSQL.5432"?


What can I do to fix this?

I have Postgres installed on my Mac.
Check what is /var/pgsql_socket/.s.PGSQL.5432. And if it is symlink, what it points to.