pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Frank Bax <fbax@sympatico.ca>
To: Marco Colombo <marco@esi.it>
Cc: Chris Ruprecht <chrup999@yahoo.com>
Cc: PostGreSQL PHP Group <pgsql-php@postgresql.org>
Subject: Re: pg_pconnect - ??
Date: Thu, 31 Jan 2002 16:29:54 -0500
Message-ID: <3.0.6.32.20020131162954.01a3f100@pop6.sympatico.ca> (raw)
In-Reply-To: <Pine.LNX.4.44.0201312046220.1381-100000@Megathlon.ESI>
References: <3.0.6.32.20020128141957.02130660@pop6.sympatico.ca>

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



view thread (26+ messages)  latest in thread

Message-ID: <3.0.6.32.20020131162954.01a3f100@pop6.sympatico.ca>
Permalink:  ../3.0.6.32.20020131162954.01a3f100@pop6.sympatico.ca/
Also on:    postgresql.org/message-id/3.0.6.32.20020131162954.01a3f100@pop6.sympatico.ca

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-php@postgresql.org
  Cc: fbax@sympatico.ca, marco@esi.it, chrup999@yahoo.com
  Subject: Re: pg_pconnect - ??
  In-Reply-To: <3.0.6.32.20020131162954.01a3f100@pop6.sympatico.ca>
  References: <3.0.6.32.20020128141957.02130660@pop6.sympatico.ca> <3.0.6.32.20020131162954.01a3f100@pop6.sympatico.ca>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox