Re: PostgreSQL run as process in windows

From: Jeff Janes <jeff(dot)janes(at)gmail(dot)com>
To: John R Pierce <pierce(at)hogranch(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: PostgreSQL run as process in windows
Date: 2013-01-05 05:24:41
Message-ID: CAMkU=1ywF6Uuq-5p7+n2X7uFB0bUgYVK=5CWU0oGbiQNxn7YQA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wednesday, January 2, 2013, John R Pierce wrote:

> On 1/2/2013 7:45 PM, Craig Ringer wrote:
>
>> You really need to put a connection pool in place to limit the number of
>> concurrent workers. Look at PgBouncer or PgPool-II. As far as I know
>> neither of them runs on Windows; you might want to think about a Linux
>> box as a front-end.
>>
>
> 2nd and 3rd the emotion.
>
>
> of course, a pooler only works right if the client applications are
> modified to open a connection, do a transaction, and close the connection.
> if the clients continue to hold idle connections, the pooler won't do
> anything useful for you.
>

If you can get away with pooling at the transaction level rather than the
session level, then you should still get a benefit even if the connections
are persistent. (If each of the 500 connections is as connected as a
different PG role, you wouldn't get a benefit from transaction pooling, but
in that case you probably wouldn't get a benefit from session pooling,
either.)

Cheers,

Jeff

In response to

Browse pgsql-general by date

  From Date Subject
Next Message John R Pierce 2013-01-05 05:53:40 Re: recasting to timestamp from varchar
Previous Message Chris Angelico 2013-01-05 05:19:53 Re: recasting to timestamp from varchar