Re: PGSERVICEFILE as part of a normal connection string

From: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
To: Torsten Förtsch <tfoertsch123(at)gmail(dot)com>, pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: PGSERVICEFILE as part of a normal connection string
Date: 2024-11-18 20:46:40
Message-ID: e0e11b469d5c3a39b9c02b3407d1da394292f4e4.camel@cybertec.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2024-11-18 21:04:20 Re: Doc: typo in config.sgml
Previous Message Bruce Momjian 2024-11-18 20:32:30 Re: Statistics Import and Export