Thread: Re: PGSERVICEFILE as part of a normal connection string

Re: PGSERVICEFILE as part of a normal connection string

From
Laurenz Albe
Date:
On Mon, 2024-11-18 at 21:21 +0100, Torsten Förtsch wrote:
> I like to bundle all my database connections in a .pg_service.conf. Over time I
> collected a bunch of such service files. A while back I discovered that the
> service file can only be specified as an environment variable. It cannot be
> given as part of the connection string like
>
> psql "service=$MY_SERVICE servicefile=MY_SERVICE_FILE"
>
> The attached patch allows that.

+1 for the idea (I didn't test the patch).

Yours,
Laurenz Albe