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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
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:39:20
Message-ID: 21108.1408207160@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

John R Pierce <pierce(at)hogranch(dot)com> writes:
> On 8/16/2014 9:16 AM, Steve Atkins wrote:
>> Setting environment variables to point to your preferred instance will also work - and it'll work with any client that uses libpq (which is probably almost everything that's not java).

> java/jdbc doesn't support unix domain sockets anyways, so that's moot
> for the OP's issue.

Another idea (which is also only for libpq-based apps) is to set up
a "service" file.

http://www.postgresql.org/docs/9.3/static/libpq-pgservice.html

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Redoute 2014-08-16 19:26:57 logfile character encoding
Previous Message John R Pierce 2014-08-16 16:25:16 Re: change the value of "unix_socket_directories" , must used "-h /xx/xx" to use the Unix domain socket