X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 34BB89DC9E3 for ; Tue, 14 Mar 2006 17:15:23 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 25048-04 for ; Tue, 14 Mar 2006 17:15:23 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from net2.micro-automation.com (net2.micro-automation.com [64.7.141.29]) by postgresql.org (Postfix) with SMTP id 7B1129DC9B8 for ; Tue, 14 Mar 2006 17:15:19 -0400 (AST) Received: (qmail 29254 invoked from network); 14 Mar 2006 21:15:20 -0000 Received: from dcdsl.ebox.com (HELO ?192.168.1.2?) (davec@64.7.143.116) by net2.micro-automation.com with SMTP; 14 Mar 2006 21:15:20 -0000 In-Reply-To: <4416E6CB.803@opencloud.com> References: <20060314032306.GA6901@fetter.org> <6E83976B-8045-45F0-8CE9-254594635224@fastcrypt.com> <20060314053058.GA10533@fetter.org> <9D3A667E-AA13-45A8-AE11-073FDB194585@fastcrypt.com> <87bqw9rxxw.fsf@wolfe.cbbrowne.com> <4416E6CB.803@opencloud.com> Mime-Version: 1.0 (Apple Message framework v746.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <7A9BE39D-B4B8-41C7-9183-BA47C3321192@fastcrypt.com> Cc: Christopher Browne , pgsql-jdbc@postgresql.org Content-Transfer-Encoding: 7bit From: Dave Cramer Subject: Re: pg_service.conf ? Date: Tue, 14 Mar 2006 16:15:18 -0500 To: Oliver Jowett X-Mailer: Apple Mail (2.746.2) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.143 required=5 tests=[AWL=0.143] X-Spam-Score: 0.143 X-Spam-Level: X-Archive-Number: 200603/74 X-Sequence-Number: 14855 On 14-Mar-06, at 10:52 AM, Oliver Jowett wrote: > Christopher Browne wrote: > >> Note that libpq takes the perspective that pg_service.conf should >> live >> in the ../etc directory for the PostgreSQL build. Thus, if psql is >> living as /opt/dbs/pgsql825/bin/psql, then this would be in >> /opt/dbs/pgsql825/etc/pg_service.conf. > > The big thing here is "how do we find the config file?". The JDBC > driver has no concept of an "installation" .. it's just classes > that the JVM manages to load somehow. This is the biggest concern. In a case where a user runs a jdbc client manually from the command line this is straight forward; however it is quite problematic for drivers running in something like a web application, or some other "container" Practically speaking I don't have an issue implementing this, however I can see this being a challenge managing the support for it. There appears to be some ambiguity as to where the file is kept. > > -O > > ---------------------------(end of > broadcast)--------------------------- > TIP 2: Don't 'kill -9' the postmaster >