Re: Connection Pooling directly on Postgres Server

From: Markus Schiltknecht <markus(at)bluegap(dot)ch>
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-07 16:48:52
Message-ID: 46E180F4.7040704@bluegap.ch
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

Denis Gasparin wrote:
> Why not to implement a connection pooling server side as apache for
> example does?

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..

If you still want to optimize that, you'd end up having n spare backends
*per database*. I do that in Postgres-R - not for connection pooling,
but for application of remote transactions.

Regards

Markus

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Rodrigo De León 2007-09-07 17:32:10 Re: What is the best way to merge two disjoint tables?
Previous Message Scott Ribe 2007-09-07 16:18:24 Re: an other provokative question??