Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ciOIB-0007X4-Mj for pgsql-jdbc@arkaria.postgresql.org; Mon, 27 Feb 2017 16:36:55 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1ciOIB-00076i-4w for pgsql-jdbc@arkaria.postgresql.org; Mon, 27 Feb 2017 16:36:55 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ciOHe-0005OH-Be; Mon, 27 Feb 2017 16:36:22 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ciOHb-000622-VT; Mon, 27 Feb 2017 16:36:21 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 945E920C31; Mon, 27 Feb 2017 11:36:18 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute5.internal (MEProxy); Mon, 27 Feb 2017 11:36:18 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=smtpout; bh=ZKmd4WIMJBdPzV JjjyUa8yzDczA=; b=skb7yW7od9crCwMsuqUHpzTW4dZEWtebfkVBDGoMBDTrph ZkyqrreulIdAU1UGp8P6VocyQs7oR7Zxf7Ux206Ynp03djkQxGqYsUL4Ed9j7JdD npW33cU/AqOxdTh8zhJOGaudsbwGy8+M+sAj4boWXunMe0Y5mH4vWTYoansyw= X-ME-Sender: X-Sasl-enc: drc9G1PrvEfEJYRY8+vbXWolzYs/0yI9CWSXnMkGwuz4 1488213378 Received: from intern.anarazel.de (unknown [199.87.86.247]) by mail.messagingengine.com (Postfix) with ESMTPA id 56B977E12B; Mon, 27 Feb 2017 11:36:18 -0500 (EST) Date: Mon, 27 Feb 2017 08:36:17 -0800 From: Andres Freund To: Magnus Hagander , pgsql-jdbc@postgresql.org, Shay Rojansky Cc: Michael Paquier , PostgreSQL mailing lists Subject: Re: [HACKERS] PGSERVICEFILE as a connection string parameter Message-ID: <20170227163617.lfwqe5dixmrosc2w@alap3.anarazel.de> References: <20170227060340.hfgstb2hglous2hd@alap3.anarazel.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org On 2017-02-27 16:23:46 +0100, Magnus Hagander wrote: > On Mon, Feb 27, 2017 at 7:03 AM, Andres Freund 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