Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ciEaF-00076c-Kx for pgsql-hackers@arkaria.postgresql.org; Mon, 27 Feb 2017 06:14: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 1ciEaF-0007aT-4t for pgsql-hackers@arkaria.postgresql.org; Mon, 27 Feb 2017 06:14: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 1ciEaE-0007a5-5p for pgsql-hackers@postgresql.org; Mon, 27 Feb 2017 06:14:54 +0000 Received: from 173-164-140-181-sfba.hfc.comcastbusiness.net ([173.164.140.181] helo=fetter.org) by makus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ciEa7-0003CD-IW for pgsql-hackers@postgresql.org; Mon, 27 Feb 2017 06:14:52 +0000 Received: by fetter.org (Postfix, from userid 1000) id 58BFBE0766; Sun, 26 Feb 2017 22:14:45 -0800 (PST) Date: Sun, 26 Feb 2017 22:14:45 -0800 From: David Fetter To: Andres Freund Cc: Michael Paquier , PostgreSQL mailing lists Subject: Re: PGSERVICEFILE as a connection string parameter Message-ID: <20170227061445.GC2560@fetter.org> References: <20170227060340.hfgstb2hglous2hd@alap3.anarazel.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170227060340.hfgstb2hglous2hd@alap3.anarazel.de> User-Agent: Mutt/1.7.1 (2016-10-04) X-Pg-Spam-Score: -0.9 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On Sun, Feb 26, 2017 at 10:03:40PM -0800, Andres Freund wrote: > Hi, > > 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... You bring up a salient point. What say we make pg_services a little more universal? I'm guessing that the Java port wouldn't be too complicated. It's already well defined. Best, David. -- David Fetter http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP: david(dot)fetter(at)gmail(dot)com Remember to vote! Consider donating to Postgres: http://www.postgresql.org/about/donate -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers