Re: Connection Pooling directly on Postgres Server - Mailing list pgsql-general

From Markus Schiltknecht
Subject Re: Connection Pooling directly on Postgres Server
Date
Msg-id 46E180F4.7040704@bluegap.ch
Whole thread Raw
In response to Connection Pooling directly on Postgres Server  (Denis Gasparin <denis@edistar.com>)
Responses Re: Connection Pooling directly on Postgres Server
List 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


pgsql-general by date:

Previous
From: Chansup Byun
Date:
Subject: What is the best way to merge two disjoint tables?
Next
From: "Rodrigo De León"
Date:
Subject: Re: What is the best way to merge two disjoint tables?