From: | "Tomas Vondra" <tv(at)fuzzy(dot)cz> |
---|---|
To: | "Nicholson, Brad (Toronto, ON, CA)" <bnicholson(at)hp(dot)com> |
Cc: | "Marc Cousin" <cousinmarc(at)gmail(dot)com>, "Merlin Moncure" <mmoncure(at)gmail(dot)com>, "Simon Riggs" <simon(at)2ndquadrant(dot)com>, "Craig Ringer" <ringerc(at)ringerc(dot)id(dot)au>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Hope for a new PostgreSQL era? |
Date: | 2011-12-08 17:08:43 |
Message-ID: | 054b763e55ec3719b75ee7eeea0149e2.squirrel@sq.gransy.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On 8 Prosinec 2011, 17:27, Nicholson, Brad (Toronto, ON, CA) wrote:
> On Thu, Dec 8, 2011 at 9:11 AM, Marc Cousin <cousinmarc(at)gmail(dot)com>
>> > wrote:
>>
>> I wish it was the same (I use and like both pgbouncer and pgpool too,
>> and they do a good job, I'm not arguing on that). But unfortunately it
>> isn't: you still have the notion of session for each connected client
>> in Oracle when using the shared servers model.
>>
>> It means you keep your session variables, your prepared statements,
>> your running transaction, etc… in each individual session while having
>> the multiplexing equivalent of a 'statement level' from pgbouncer.
>
> In Oracle - can the pool share connections between DB users and/or
> databases on the instance? If the answer is yes to either, that is a fair
> bit better than what we can achieve today.
Yes, each session has a UGA (User Global Area) memory, and this iss placed
either in SGA (Shared Global Area) in case of "dedicated server" or PGA
(Process Global Are) in case of "shared server." If you use shared server,
then each request might be handled by a different backend process.
PostgreSQL uses dedicated architecture which means simpler code base,
configuration etc. If you need something like a "shared server" then you
can use a connection pool, but you have to handle the session state on
your own (in the application).
Tomas
From | Date | Subject | |
---|---|---|---|
Next Message | Tomas Vondra | 2011-12-08 17:11:06 | Re: Hope for a new PostgreSQL era? |
Previous Message | Marc Cousin | 2011-12-08 17:06:46 | Re: Hope for a new PostgreSQL era? |