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

From: Steve Atkins <steve(at)blighty(dot)com>
To: PostgreSQL pg-general List <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 15:56:13
Message-ID: EBFA8B41-453A-4A01-A64F-CBBE87BE0FA7@blighty.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


On Aug 16, 2014, at 8:49 AM, John R Pierce <pierce(at)hogranch(dot)com> wrote:

> On 8/16/2014 8:41 AM, lin wrote:
>> I change the value of "unix_socket_directories" in postgresql.conf , then restart the database, but it cannot connect the database used like this
>> "psql -d postgres -p 5432" , it must given the parameter " -h /xx/xx" to use the Unix domain socket。
>> how to fix this issue ?
>
> the client has no access to postgresql.conf, it has no idea you changed it. the default value is baked into libpq.so at compile time.

You might find the environment variable PGHOST useful.

Cheers,
Steve

In response to

Browse pgsql-general by date

  From Date Subject
Next 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
Previous Message Guillaume Lelarge 2014-08-16 15:49:59 Re: change the value of "unix_socket_directories" , must used "-h /xx/xx" to use the Unix domain socket