Re: Connection Refused Error

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: JohnD <lists(at)johndubchak(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Connection Refused Error
Date: 2009-03-09 23:25:22
Message-ID: 17210.1236641122@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

JohnD <lists(at)johndubchak(dot)com> writes:
> I can ssh into the server and do a psql <db-name> from the
> /var/lib/pgsql command prompt, as user postgres. But, when I try to use
> a different user (psql -U user -p <db-name>), from the same prompt, I get:

> psql: could not connect to server: No such file or directory
> Is the server running locally and accepting
> connections on Unix domain socket "/tmp/.s.PGSQL.0"?

"-p" doesn't seem like the switch you meant to use here. I think it's
trying to feed the dbname to atoi() and getting a zero for the port
number.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2009-03-09 23:25:39 Re: Connection Refused Error
Previous Message JohnD 2009-03-09 23:11:49 Connection Refused Error