Re: Libpq functions & string to obtain connection parameters - Mailing list pgsql-general

From Adrian Klaver
Subject Re: Libpq functions & string to obtain connection parameters
Date
Msg-id 9834f9b3-6a10-5931-1c7e-adbee7e54087@aklaver.com
Whole thread Raw
In response to Re: Libpq functions & string to obtain connection parameters  (arnaud gaboury <arnaud.gaboury@gmail.com>)
Responses Re: Libpq functions & string to obtain connection parameters
List pgsql-general
On 10/07/2016 07:58 AM, arnaud gaboury wrote:
>
>

>
> GGGrrrhhhhh
>
> -------------------------------
> # systemctl restart postgresql
>  # su mattermost
> bash-4.3$ psql postgresql://mmuser:XXXYYYY@/mattermost?
> psql (9.5.4)
> Type "help" for help.
>
> mattermost=> \q
> -----------------------------------------
>
> 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

So what app/framework/code is processing the above?

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

That does not look like something coming from Postgres, but from
whatever is initiating the connection.

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


--
Adrian Klaver
adrian.klaver@aklaver.com


pgsql-general by date:

Previous
From: arnaud gaboury
Date:
Subject: Re: Libpq functions & string to obtain connection parameters
Next
From: Tom Lane
Date:
Subject: Re: Libpq functions & string to obtain connection parameters