Re: Connection Pooling directly on Postgres Server

From: Filip Rembiałkowski <plk(dot)zuber(at)gmail(dot)com>
To: "Denis Gasparin" <denis(at)edistar(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Connection Pooling directly on Postgres Server
Date: 2007-09-08 11:59:11
Message-ID: 92869e660709080459h94f0aaaha922a7be9177679@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

2007/9/8, Denis Gasparin <denis(at)edistar(dot)com>:
>
> > This has certainly been discussed before.
> >
> > IIRC the real argument against that was, that fork() isn't the most
> > expensive thing to do anymore. And Postgres does lots of other stuff
> > after accept(), namely connecting to a certain database,
> > authenticating the user, etc..
> Ok. I knew that. I made the question because it seems that, for example,
> Oracle in release 11g is moving to a similar solution in order to solve
> connection pooling problems.
>
> For example look at the following link:
>
> http://pbarut.blogspot.com/2007/08/oracle-11g-drcp-database-resident.html
>

sure... regarding Oracle, it's different story because of their
development model which is not opensource and has to rely on own
solutions instead of following unix tradition of modularity.

regarding Apache, it's different story because HTTP is stateless
protocol! which enables random backend switching, in contrary to
postgres backend protocol.

Anyway, stateless connection pooling is already implemented (pgpool/pgbouncer/?)

Stateful connection pooling is hard to implement without rewriting the
protocol itself or disrupting existing behaviour.

--
Filip Rembiałkowski

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Merlin Moncure 2007-09-08 13:19:48 Re: Database reverse engineering
Previous Message A. Kretschmer 2007-09-08 10:43:52 Re: Database reverse engineering