Re: BUG #16550: Problem with pg_service.conf - Mailing list pgsql-bugs

From Christophe Pettus
Subject Re: BUG #16550: Problem with pg_service.conf
Date
Msg-id AD2DF4D2-260F-449B-8D3B-8A6022BE0C6C@thebuild.com
Whole thread Raw
In response to Re: BUG #16550: Problem with pg_service.conf  (Michał Lis <fcs1@poczta.onet.pl>)
List pgsql-bugs

> On Jul 22, 2020, at 10:02, Michał Lis <fcs1@poczta.onet.pl> wrote:
>
> Copping the pg_service.conf to the client and setting the system variable to this file, rather has no sense.

Well, that's how the pg_service.conf file works; it is read by the client, not by the server:

    https://www.postgresql.org/docs/12/libpq-pgservice.html

If you want the client to be able to log into the server without manually specifying credentials, you'll need to store
thosecredentials (password, private key, etc.) somewhere on the client that the client program can access them.  The
servicefile is one way of doing that, as is the .pgpasswd file. 

--
-- Christophe Pettus
   xof@thebuild.com




pgsql-bugs by date:

Previous
From: Michał Lis
Date:
Subject: Re: BUG #16550: Problem with pg_service.conf
Next
From: Pavel Stehule
Date:
Subject: Re: BUG #16549: "CASE" not work properly , the function works properly on PostgreSQL 9.6.8