Re: Connection Refused Error

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Connection Refused Error
Дата
Msg-id 17210.1236641122@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Connection Refused Error  (JohnD <lists@johndubchak.com>)
Список 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 по дате отправления:

Предыдущее
От: JohnD
Дата:
Сообщение: Connection Refused Error
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: Connection Refused Error