From: Peter <peter@greatnowhere.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: Totally weird behaviour in org.postgresql.Driver
Date: Sun, 15 Mar 2009 09:10:31 +0200
Message-ID: <49bca9e8$0$1341$834e42db@reader.greatnowhere.com> (raw)
References: <49b7bfef$0$1343$834e42db@reader.greatnowhere.com>
<491f66a50903120342j67e87c7dob10cfdc23580c8f4@mail.gmail.com>
<003001c9a315$a68a9330$f39fb990$@com>
<200903121341.59498.cservin@cromagnon.com>
>> I checked out dbcp and c3po (thanks for the pointers!) but none fits my
>> app
>> as each user needs to connect with his own credentials.
>
> This was a problem for me as well. So, I made a factory for returning
> connections from dbcp and made some adjustments to the connection returned
> from the pool, so that our auditing triggers knew the application user
> that
> was using the connection.
>
> That way we could get the auditing and use a pool that has hopefully had
> the
> bugs beaten out of if. But, that would not work in every situation.
Thanks for sharing the tip! What adjustments exactly did you have to make? I
just make every user to log on with different PG username. Are there any
other options?
Peter
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: peter@greatnowhere.com
Subject: Re: Totally weird behaviour in org.postgresql.Driver
In-Reply-To: <49bca9e8$0$1341$834e42db@reader.greatnowhere.com>
References: <49b7bfef$0$1343$834e42db@reader.greatnowhere.com> <491f66a50903120342j67e87c7dob10cfdc23580c8f4@mail.gmail.com> <003001c9a315$a68a9330$f39fb990$@com> <200903121341.59498.cservin@cromagnon.com> <49bca9e8$0$1341$834e42db@reader.greatnowhere.com>
* 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