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

From Hannes Dorbath
Subject Re: Connection Pooling directly on Postgres Server
Date
Msg-id 46E142B7.20605@theendofthetunnel.de
Whole thread Raw
In response to Connection Pooling directly on Postgres Server  (Denis Gasparin <denis@edistar.com>)
List pgsql-general
On 07.09.2007 10:16, Denis Gasparin wrote:
> What to do you think about this?

I think there is no need for this and it's the wrong place to implement it.

Why should PostgreSQL do something to work around broken application
design? An application that closes its database connection just to
create a new one a second later is broken.

In this particular case the thing to fix is Apache's legacy
architecture. Prefork based web servers are really something from the
last decade.

Consider Lighttpd, Litespeed or Zeus and connect a fixed amount of
PHP/Perl/Python/Ruby/Lua workers via FCGI. Each worker keeps a
persistent connection to PG and load is distributed over the workers.


--
Regards,
Hannes Dorbath

pgsql-general by date:

Previous
From: Panagiotis Pediaditis
Date:
Subject: debuging transactions
Next
From: "Merlin Moncure"
Date:
Subject: Re: Column as arrays.. more efficient than columns?