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 ED60F9DC896 for ; Tue, 14 Mar 2006 09:42:26 -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 36343-03 for ; Tue, 14 Mar 2006 09:42:30 -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 CB8439DC80A for ; Tue, 14 Mar 2006 09:42:23 -0400 (AST) Received: (qmail 25262 invoked from network); 14 Mar 2006 13:42:27 -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 13:42:27 -0000 In-Reply-To: <87bqw9rxxw.fsf@wolfe.cbbrowne.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> Mime-Version: 1.0 (Apple Message framework v746.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <7502CD48-CB03-4CEB-81EA-82E708108BC6@fastcrypt.com> Cc: pgsql-jdbc@postgresql.org Content-Transfer-Encoding: 7bit From: Dave Cramer Subject: Re: pg_service.conf ? Date: Tue, 14 Mar 2006 08:42:26 -0500 To: Christopher Browne X-Mailer: Apple Mail (2.746.2) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.527 required=5 tests=[AWL=-0.286, INFO_TLD=0.813] X-Spam-Score: 0.527 X-Spam-Level: X-Archive-Number: 200603/68 X-Sequence-Number: 14849 Ever wanted to retract an email after you sent it ? I realized the complete stupidity of that statement 30 seconds after I hit send Dave On 14-Mar-06, at 7:51 AM, Christopher Browne wrote: > In the last exciting episode, pg@fastcrypt.com (Dave Cramer) wrote: >> David. >> >> OK, so as I understand it the client would be responsible for >> finding, parsing this file and reading the appropriate section. >> >> Assuming the PGSYSCONFDIR environment variable is setup properly and >> the driver has access to the file this would work. >> >> This would be a lot easier if the server managed this file. > > Unfortunately, that represents a recursive need. pg_service.conf is > used to determine where the server might be, so you need to read it > before you can know where the server is... > > 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. > -- > let name="cbbrowne" and tld="cbbrowne.com" in String.concat > "@" [name;tld];; > http://linuxdatabases.info/info/rdbms.html > linux: the choice of a GNU generation > (ksh@cis.ufl.edu put this on Tshirts in '93) > > ---------------------------(end of > broadcast)--------------------------- > TIP 1: if posting/reading through Usenet, please send an appropriate > subscribe-nomail command to majordomo@postgresql.org so that > your > message can get through to the mailing list cleanly >