Re: Libpq functions & string to obtain connection parameters

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: arnaud gaboury <arnaud(dot)gaboury(at)gmail(dot)com>
Cc: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: Libpq functions & string to obtain connection parameters
Date: 2016-10-07 15:05:52
Message-ID: 5393.1475852752@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

arnaud gaboury <arnaud(dot)gaboury(at)gmail(dot)com> writes:
> OK. Now I know unix user mattermost can connect to mattermost Db via unix
> socket. BUT when trying to write this in my URI:

> postgresql://mmuser:MyPwd@/mattermost?connect_timeout=10

> I get this from my app :
> Failed to ping db err:pq: SSL is not enabled on the server

> Is it normal to still have this error ? Adding sslmode param will not
> change anything as it is ignored for Unix domain socket communication.

That message isn't coming out of libpq; I can't find any such string
in the community git repo.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message arnaud gaboury 2016-10-07 15:12:25 Re: Libpq functions & string to obtain connection parameters
Previous Message Adrian Klaver 2016-10-07 15:01:20 Re: Libpq functions & string to obtain connection parameters