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 7987C9DC80A for ; Tue, 14 Mar 2006 09:03:20 -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 26045-07 for ; Tue, 14 Mar 2006 09:03:23 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from floppy.pyrenet.fr (floppy.pyrenet.fr [194.116.145.2]) by postgresql.org (Postfix) with ESMTP id 50E689DCB44 for ; Tue, 14 Mar 2006 09:03:17 -0400 (AST) Received: by floppy.pyrenet.fr (Postfix, from userid 106) id D241C30926; Tue, 14 Mar 2006 14:03:19 +0100 (MET) From: Christopher Browne X-Newsgroups: pgsql.interfaces.jdbc Subject: Re: pg_service.conf ? Date: Tue, 14 Mar 2006 07:51:55 -0500 Organization: cbbrowne Computing Inc Lines: 24 Message-ID: <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> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@news.hub.org X-message-flag: Outlook is rather hackable, isn't it? X-Home-Page: http://www.cbbrowne.com/info/ X-Affero: http://svcs.affero.net/rm.php?r=cbbrowne User-Agent: Gnus/5.1007 (Gnus v5.10.7) XEmacs/21.4.19 (linux) Cancel-Lock: sha1:uJcM9AtHC3oPwLwcqUOzrKKPJVs= To: pgsql-jdbc@postgresql.org X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.723 required=5 tests=[AWL=-0.090, INFO_TLD=0.813] X-Spam-Score: 0.723 X-Spam-Level: X-Archive-Number: 200603/67 X-Sequence-Number: 14848 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)