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

From John R Pierce
Subject Re: change the value of "unix_socket_directories" , must used "-h /xx/xx" to use the Unix domain socket
Date
Msg-id 53EF818E.8040201@hogranch.com
Whole thread Raw
In response to Re: change the value of "unix_socket_directories" , must used "-h /xx/xx" to use the Unix domain socket  (Nick Guenther <nguenthe@uwaterloo.ca>)
List 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 by date:

Previous
From: Nick Guenther
Date:
Subject: Re: change the value of "unix_socket_directories" , must used "-h /xx/xx" to use the Unix domain socket
Next
From: Steve Atkins
Date:
Subject: Re: change the value of "unix_socket_directories" , must used "-h /xx/xx" to use the Unix domain socket