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

From: John R Pierce <pierce(at)hogranch(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: change the value of "unix_socket_directories" , must used "-h /xx/xx" to use the Unix domain socket
Date: 2014-08-16 16:06:38
Message-ID: 53EF818E.8040201@hogranch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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 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

In response to

Browse pgsql-general by date

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