Re: Java .pgpass reader

From: Chris Browne <cbbrowne(at)acm(dot)org>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Java .pgpass reader
Date: 2010-06-16 19:45:09
Message-ID: 87bpbaoj7e.fsf@cbbrowne-laptop.afilias-int.info
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

slangley(at)scharp(dot)org (Scott Langley) writes:
> Did anyone ever implement code in Java to read Postgres configuration
> information from a user's .pgpass file - or a more general
> pg_service.conf - as discussed in this thread back in 2006?

We've done this; it turned out to be something to do not at the level
of an individual connection, but rather in a connection pool
implementation.

That turns out to be not so useful as a "general" solution that would
be included in the JDBC driver :-(.
--
select 'cbbrowne' || '@' || 'cbbrowne.com';
http://cbbrowne.com/info/internet.html
"MS apparently now has a team dedicated to tracking problems with
Linux and publicizing them. I guess eventually they'll figure out
this back fires... ;)" -- William Burrow <aa126(at)DELETE(dot)fan(dot)nb(dot)ca>

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Radosław Smogura 2010-06-16 20:44:16 Re: Java .pgpass reader
Previous Message Kris Jurka 2010-06-16 18:32:47 Re: Connecting to postgresql using SSPI via JDBC