Re: Connection Refused Error - Mailing list pgsql-general

From Tom Lane
Subject Re: Connection Refused Error
Date
Msg-id 17210.1236641122@sss.pgh.pa.us
Whole thread Raw
In response to Connection Refused Error  (JohnD <lists@johndubchak.com>)
List pgsql-general
JohnD <lists@johndubchak.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

pgsql-general by date:

Previous
From: JohnD
Date:
Subject: Connection Refused Error
Next
From: Adrian Klaver
Date:
Subject: Re: Connection Refused Error