From: | Frank Bax <fbax(at)sympatico(dot)ca> |
---|---|
To: | Marco Colombo <marco(at)esi(dot)it> |
Cc: | Chris Ruprecht <chrup999(at)yahoo(dot)com>, PostGreSQL PHP Group <pgsql-php(at)postgresql(dot)org> |
Subject: | Re: pg_pconnect - ?? |
Date: | 2002-01-31 21:29:54 |
Message-ID: | 3.0.6.32.20020131162954.01a3f100@pop6.sympatico.ca |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-php |
At 09:09 PM 1/31/02 +0100, Marco Colombo wrote:
>On Mon, 28 Jan 2002, Frank Bax wrote:
>
>> The connection will only be reused if the *same* apache child process
>> handles the request. You should expect to see many postgres client
>> connections.
>> A) Each database/user connection combination.
>> B) Each apache child process
>>
>> Multiply A*B to get max number of concurrent connections. If A*B can go
>> over postgres connection limit, then you might start getting connection
>> refused messages.
>
>pgsql.max_persistent integer
> The maximum number of persistent Postgres connections per process.
> ^^^^^^^^^^^
>
>you can have more than one persistent connection per httpd process. Now
>that I think about it, it seems a good idea to limit it to some sane
>value.
I was actually referring to max_connections in postgresql.conf (as the
limit for A*B).
I expect that pgsql.max_persistent puts a limit on A rather than A*B. I
let this run wild (value=-1) on my system and use default of
max_connections=64) in postgresql.
Frank
From | Date | Subject | |
---|---|---|---|
Next Message | Christopher Kings-Lynne | 2002-02-01 00:38:25 | Re: pg_pconnect - ?? |
Previous Message | Frank Bax | 2002-01-31 21:23:51 | Re: apache-php-postgresql connection question |