From: Scott Langley <slangley@scharp.org>
To: pgsql-jdbc@postgresql.org
Subject: Re: Java .pgpass reader
Date: Wed, 16 Jun 2010 14:35:22 -0700
Message-ID: <4C19439A.90806@scharp.org> (raw)
In-Reply-To: <87bpbaoj7e.fsf@cbbrowne-laptop.afilias-int.info>
References: <4C1912D0.8010405@scharp.org>
<87bpbaoj7e.fsf@cbbrowne-laptop.afilias-int.info>
Hi Chris:
Would you be willing to share your code for this?
I'm still wanting to / planning to implement this for an individual JDBC
connection as the Java process that will use it runs once a week as a
cron job.
And to Radoslaw:
Your point about the relatively weak security of storing passwords in
.pgpass files is well-taken. But I'm neither the SysAdmin nor the DBA
at where I work so I can't easily change policy. However, we are at
least required to change our database passwords on a regular basis.
Scott
Chris Browne wrote:
> slangley@scharp.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 :-(.
>
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: slangley@scharp.org
Subject: Re: Java .pgpass reader
In-Reply-To: <4C19439A.90806@scharp.org>
References: <4C1912D0.8010405@scharp.org> <87bpbaoj7e.fsf@cbbrowne-laptop.afilias-int.info> <4C19439A.90806@scharp.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox