Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 1615C633CD1 for ; Mon, 26 Jul 2010 15:01:10 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 64999-03 for ; Mon, 26 Jul 2010 18:01:02 +0000 (UTC) X-Greylist: delayed 00:32:04.298958 by SQLgrey-1.7.6 Received: from smtp.fhcrc.org (JARCON.FHCRC.ORG [140.107.42.30]) by mail.postgresql.org (Postfix) with ESMTP id 702D463295D for ; Mon, 26 Jul 2010 15:01:02 -0300 (ADT) Received: from [10.6.125.58] (HIVWALL.SCHARP.ORG [140.107.164.65]) by smtp.fhcrc.org (Postfix) with ESMTP id 27FDB17DD2; Mon, 26 Jul 2010 10:28:56 -0700 (PDT) Message-ID: <4C4DC5D7.3060004@scharp.org> Date: Mon, 26 Jul 2010 10:28:55 -0700 From: Scott Langley User-Agent: Thunderbird 2.0.0.23 (X11/20090825) MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org CC: cbbrowne@gmail.com Subject: Re: JDBC / pgpass References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.001 tagged_above=-10 required=5 tests=BAYES_20=-0.001 X-Spam-Level: X-Archive-Number: 201007/100 X-Sequence-Number: 20765 Thanks for trying. I actually coded a implementation that works for me based on code from: py-postgresql-0.9.3/postgresql/pgpassfile.py pgjdbc/org/postgresql/Driver.java - for JDBC URL parsing and making use of the org.apache.commons.csv library - for line parsing. Now, if someone else wants this code to be released, I'll need to get permission from my boss. Regards, Scott -- Scott Langley Systems Analyst/Programmer Statistical Center for HIV/AIDS Research and Prevention (SCHARP) Fred Hutchinson Cancer Research Center Seattle, Washington slangley@scharp.org (206) 667-5117 Fax (206) 667-4812 Christopher Browne wrote: > I spoke with the fellow that had built some integration to read > .pgpass-formatted data via JDBC; he tells me he won't likely have time > any time soon to go to the effort of extricating the relevant code > such that it could be released. There was apparently no huge issue > involved in implementing it, so reimplementing shouldn't be notably > difficult. > > Sorry there's no code, but it's frequently at least worth asking. > >