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 053389DC829 for ; Tue, 14 Mar 2006 15:04:57 -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 95156-04 for ; Tue, 14 Mar 2006 15:04:56 -0400 (AST) Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id A29CE9DC818 for ; Tue, 14 Mar 2006 15:04:54 -0400 (AST) Received: from PHOENIX.istructure.com (unknown [24.199.154.122]) by svr4.postgresql.org (Postfix) with ESMTP id A14225AF051 for ; Tue, 14 Mar 2006 19:04:55 +0000 (GMT) Received: from iglassnoc3 ([192.168.177.128]) by PHOENIX.istructure.com with Microsoft SMTPSVC(6.0.3790.1830); Tue, 14 Mar 2006 14:04:53 -0500 From: "Woody Woodring" To: Subject: Re: pg_service.conf ? Date: Tue, 14 Mar 2006 14:04:58 -0500 Message-ID: <028801c6479a$2ff1a8a0$80b1a8c0@istructure.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <8764mhrmns.fsf@wolfe.cbbrowne.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 thread-index: AcZHiUy6QTwTSGo2SrG/t0p3+MUwFQAEDLAw X-OriginalArrivalTime: 14 Mar 2006 19:04:53.0336 (UTC) FILETIME=[2D127D80:01C6479A] X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.55 required=5 tests=[AWL=-0.263, INFO_TLD=0.813] X-Spam-Score: 0.55 X-Spam-Level: X-Archive-Number: 200603/72 X-Sequence-Number: 14853 According to the 8.1 documentation, libpq looks in $PGSYSCONFDIR. As a user it would make sense to me if JDBC looked at the same environment variable. Woody -----Original Message----- From: pgsql-jdbc-owner@postgresql.org [mailto:pgsql-jdbc-owner@postgresql.org] On Behalf Of Christopher Browne Sent: Tuesday, March 14, 2006 11:56 AM To: pgsql-jdbc@postgresql.org Subject: Re: [JDBC] pg_service.conf ? In an attempt to throw the authorities off his trail, pg@fastcrypt.com (Dave Cramer) transmitted: > Ever wanted to retract an email after you sent it ? I realized the > complete stupidity of that statement 30 seconds after I hit send Well, this is a common enough problem that there are occasions where people build server-based mechanisms for it... Oracle has something whose name I misremember where you head to a server to get the *real* server configuration. CORBA had this notion with the Naming Service; you start by getting a connection to a Naming Service object, and then ask where the *real* services are... How to do it "right" for JDBC is a good question. Searching for .pgpass in $HOME is pretty obvious. It is less obvious where to search for pg_service.conf if all that is installed is JDBC, and there is no PostgreSQL instance around. -- output = reverse("gro.mca" "@" "enworbbc") http://linuxdatabases.info/info/internet.html What do you mean "Why's it got to be built?" It is a bypass. You've got to build bypasses. ---------------------------(end of broadcast)--------------------------- TIP 3: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq