Re: Converting from single user w/pool to multiple users

From: Jeff Amiel <jamiel(at)istreamimaging(dot)com>
To: Guy Rouillier <guyr(at)masergy(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Converting from single user w/pool to multiple users
Date: 2005-03-24 22:52:10
Message-ID: 4243449A.2010200@istreamimaging.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

We intended to do that very thing (read the earlier parts of the thread
between myself and Tom Lane)

Jeff

Guy Rouillier wrote:

>Jeff Amiel wrote:
>
>
>>The issue is really propogating the authenticaion credentials to the
>>database itself.....it's our ON INSERT/ON UPDATE/ON DELETE triggers
>>that are doing the auditing and they need the user ID to accurately
>>log changes. In lieu of any other per-connection persistant data
>>option, this seems like the best bet.
>>
>>
>
>I still don't like the idea of thousands of connections, most of which
>will probably most of the time be doing nothing except consuming lots of
>memory. You might want to explore creating a small wrapper around the
>JBoss connection pool that uses SET SESSION AUTHORIZATION after
>obtaining a connection. That way you can still have a small number of
>pooled connections but have the real user id associated with the
>connection.
>
>
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Vernon 2005-03-24 22:58:14 Any easy ways to change configuration
Previous Message Guy Rouillier 2005-03-24 22:46:47 Re: Converting from single user w/pool to multiple users