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 9DB1C9DC812 for ; Tue, 14 Mar 2006 01:31:01 -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 44370-01 for ; Tue, 14 Mar 2006 01:31:00 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from fetter.org (dsl092-188-065.sfo1.dsl.speakeasy.net [66.92.188.65]) by postgresql.org (Postfix) with ESMTP id 0CDA89DC850 for ; Tue, 14 Mar 2006 01:30:59 -0400 (AST) Received: by fetter.org (Postfix, from userid 500) id BBBABCF1CB; Mon, 13 Mar 2006 21:30:58 -0800 (PST) Date: Mon, 13 Mar 2006 21:30:58 -0800 From: David Fetter To: Dave Cramer Cc: PostgreSQL JDBC List Subject: Re: pg_service.conf ? Message-ID: <20060314053058.GA10533@fetter.org> References: <20060314032306.GA6901@fetter.org> <6E83976B-8045-45F0-8CE9-254594635224@fastcrypt.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6E83976B-8045-45F0-8CE9-254594635224@fastcrypt.com> User-Agent: Mutt/1.4.2.1i X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.129 required=5 tests=[AWL=0.129] X-Spam-Score: 0.129 X-Spam-Level: X-Archive-Number: 200603/64 X-Sequence-Number: 14845 On Mon, Mar 13, 2006 at 11:11:43PM -0500, Dave Cramer wrote: > David, > > Can you give us the use case? How would you expect this to work ? Let's imagine you have a pg_service.conf that says: [foo] host=foo.example.com dbname=foo port=5555 user=dcramer [bar] host=bar.example.com dbname=bar port=5554 user=dfetter [baz] host=baz.sample.com dbname=baz port=5553 user=brass_monkey You'd use a connect string that looked something like jdbc:postgresql://service=foo/ to get to the db called foo running foo.example.com on port 5555 as ROLE (aka user) dcramer. The pg_service.conf could then be distributed around and available to every kind of application--even ones not written in java. Cheers, D -- David Fetter david@fetter.org http://fetter.org/ phone: +1 415 235 3778 Remember to vote!