Search Postgresql Archives

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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 connect to 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



--
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux