Re: change the value of "unix_socket_directories" , must used "-h /xx/xx" to use the Unix domain socket

Поиск
Список
Период
Сортировка
От John R Pierce
Тема Re: change the value of "unix_socket_directories" , must used "-h /xx/xx" to use the Unix domain socket
Дата
Msg-id 53EF818E.8040201@hogranch.com
обсуждение исходный текст
Ответ на Re: change the value of "unix_socket_directories" , must used "-h /xx/xx" to use the Unix domain socket  (Nick Guenther <nguenthe@uwaterloo.ca>)
Список pgsql-general
On 8/16/2014 9:01 AM, Nick Guenther wrote:
> First thing to point out is that you need only one of -h and -p.  They are redundant options, because you only
connectto postgres either over TCP (-p) or with a unix domain socket (-h). 

what??!?   no, this is totally wrong.

     psql -h myserver -p 5435

     psql -h /path/to/socket -p 5433

those are both valid.  if there is no hostname, OR the hostname starts
with /, then it uses a unix domain socket.





--
john r pierce                                      37N 122W
somewhere on the middle of the left coast



В списке pgsql-general по дате отправления:

Предыдущее
От: Nick Guenther
Дата:
Сообщение: Re: change the value of "unix_socket_directories" , must used "-h /xx/xx" to use the Unix domain socket
Следующее
От: Steve Atkins
Дата:
Сообщение: Re: change the value of "unix_socket_directories" , must used "-h /xx/xx" to use the Unix domain socket