Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question

closed as off-topic by Jack Douglas Aug 22 '13 at 7:36

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Too localized - this could be because your code has a typo, basic error, or is not relevant to most of our audience. Consider revising your question so that it appeals to a broader audience. As it stands, the question is unlikely to help other users (regarding typo questions, see this meta question for background)." – Jack Douglas
If this question can be reworded to fit the rules in the help center, please edit the question.

Check what is /var/pgsql_socket/.s.PGSQL.5432. And if it is symlink, what it points to.

share|improve this answer
This does not provide an answer to the question. To critique or request clarification from an author, leave a comment below their post. – Jon Seigel Jun 22 '13 at 14:03
I didn't request clarification nor critiqued. What I wrote is (in my opinon) provided answer to question: "What can I do to fix it?". Checking symlinks is first step on fixing. – user1593 Jun 22 '13 at 14:32

Not the answer you're looking for? Browse other questions tagged or ask your own question.