From: Andres Freund <andres@anarazel.de>
To: Magnus Hagander <magnus@hagander.net>
To: pgsql-jdbc@postgresql.org, Shay Rojansky <roji@roji.org>
Cc: Michael Paquier <michael.paquier@gmail.com>
Cc: PostgreSQL mailing lists <pgsql-hackers@postgresql.org>
Subject: Re: [HACKERS] PGSERVICEFILE as a connection string parameter
Date: Mon, 27 Feb 2017 08:36:17 -0800
Message-ID: <20170227163617.lfwqe5dixmrosc2w@alap3.anarazel.de> (raw)
In-Reply-To: <CABUevEwt-COmcU5t=Emy1A1HdeFkFTXdc5v2tPRjf5csqkiV9g@mail.gmail.com>
References: <CAB7nPqQvYMNfrKKjXz37cADTXJf+fDLGTURTFWKcJ6Zi1757YQ@mail.gmail.com>
<20170227060340.hfgstb2hglous2hd@alap3.anarazel.de>
<CABUevEwt-COmcU5t=Emy1A1HdeFkFTXdc5v2tPRjf5csqkiV9g@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>
On 2017-02-27 16:23:46 +0100, Magnus Hagander wrote:
> On Mon, Feb 27, 2017 at 7:03 AM, Andres Freund <andres@anarazel.de> wrote:
> > On 2017-02-27 14:43:49 +0900, Michael Paquier wrote:
> > > I bumped into a case where it would have been rather useful to specify
> > > a service file path in a connection string with a service name. In my
> > > case, I have finished by setting up PGSERVICEFILE, but now like
> > > PGPASSFILE I think that being able to define the service file
> > > available as well as a connection parameter would be useful as well.
> > >
> > > I am not planning to work on that immediately (there is one day left
> > > for the last CF of PG10!), but I was wondering if people would be
> > > interested in something like that.
> >
> > Hm - I'm not sure that's a good idea. service files are a libpq feature,
> > but connection strings are a bit more universal than just libpq...
> >
>
> That same argument applies to PGPASSFILE, does it not?
It does. I'm not really convinced it's a good idea to have that as a
full blown parameter, but as you say:
> Properly implementing PGSERVICEFILE is more complicated though -- as it
> requires LDAP support to go there the whole way for example.
> But it might not hurt to encourage other drivers (such as jdbc) to
> support at least the basic format of pgpass.
Probably makes sense to bring in some of the external driver authors
(jdbc, npgsql CCed).
Greetings,
Andres Freund
--
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: andres@anarazel.de, magnus@hagander.net, roji@roji.org, michael.paquier@gmail.com, pgsql-hackers@postgresql.org
Subject: Re: [HACKERS] PGSERVICEFILE as a connection string parameter
In-Reply-To: <20170227163617.lfwqe5dixmrosc2w@alap3.anarazel.de>
References: <CAB7nPqQvYMNfrKKjXz37cADTXJf+fDLGTURTFWKcJ6Zi1757YQ@mail.gmail.com> <20170227060340.hfgstb2hglous2hd@alap3.anarazel.de> <CABUevEwt-COmcU5t=Emy1A1HdeFkFTXdc5v2tPRjf5csqkiV9g@mail.gmail.com> <20170227163617.lfwqe5dixmrosc2w@alap3.anarazel.de>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox