From: | Oliver Jowett <oliver(at)opencloud(dot)com> |
---|---|
To: | peter <peter(at)greatnowhere(dot)com> |
Cc: | pgsql-jdbc(at)postgresql(dot)org |
Subject: | Re: Totally weird behaviour in org.postgresql.Driver |
Date: | 2009-03-16 00:58:36 |
Message-ID: | 49BDA43C.7000308@opencloud.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-jdbc |
peter wrote:
>>
>> 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?
>>
>> It's fairly unusual to have a tomcat application of any size login to
>> the db as the user. Could you share the reason why ?
>>
>
> The app is actually middleware for Adobe Flex frontend and PG backend,
> not a regular web app. The architecture requires PG to know which user
> has connected (lots of heavy lifting takes place in PG), and we so far
> havent found any other way how to let PG know which user has connected.
> The only alternative was to supply user ID in every PG function call but
> that is messy and introduces it's own limitations as well. If you have
> any suggestions I'm all ears! ;)
JCA's' pooling API in theory has the ability to distinguish different
connections on the basis of credentials (and you can map that to JDBC),
but I'm not sure if there are any pool implementations out there that
make use of it. You'd need some decent pool logic to avoid thrashing
connections depending on the number of unique users you have.
-O
From | Date | Subject | |
---|---|---|---|
Next Message | Guy Rouillier | 2009-03-16 01:30:47 | Re: Totally weird behaviour in org.postgresql.Driver |
Previous Message | peter | 2009-03-15 13:08:46 | Re: Totally weird behaviour in org.postgresql.Driver |