pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Frank Bax <fbax@sympatico.ca>
To: pgsql-php@postgresql.org
Subject: Re: too many clients
Date: Thu, 30 Dec 2004 15:34:15 -0500
Message-ID: <5.2.1.1.0.20041230153137.00a63740@pop6.sympatico.ca> (raw)
In-Reply-To: <1104432336.32609.44.camel@localhost>
References: <988BEA40-5A6B-11D9-B3B3-0003938BDF32@localnotion.com>
	<330532b604122908387f7ffde2@mail.gmail.com>
	<0DC9A380-59AB-11D9-B3B3-0003938BDF32@localnotion.com>
	<330532b604122908387f7ffde2@mail.gmail.com>
	<5.2.1.1.0.20041229125718.00a02520@pop6.sympatico.ca>
	<1104363131.32605.30.camel@localhost>
	<87y8fg8iqi.fsf@stark.xeocode.com>
	<1104384788.32609.42.camel@localhost>
	<988BEA40-5A6B-11D9-B3B3-0003938BDF32@localnotion.com>

Wrong - if username changes, another connection to same database is used 
within the same apache child process.  Everything in the connect string 
must be the same before a persistent connection is reused.


At 01:45 PM 12/30/04, Gavin M. Roy wrote:

>Yes, php opens 1 persistant connection per apache backend per database.
>
>On Thu, 2004-12-30 at 09:03 -0500, Matthew Terenzio wrote:
> > >
> > >
> > > On Thu, 2004-12-30 at 00:20 -0500, Greg Stark wrote:
> > >> "Gavin M. Roy" <gmr@ehpg.net> writes:
> > >>
> > >>> I use it on a few very high traffic sites without issue, but it is
> > >>> tuned so
> > >>> that there is only 1 persistant connection per apache backend and
> > >>> postgresql
> > >>> will allow the max apache backends, which by default is generally
> > >>> 256. I
> > >>> highly recommend it in such a situation, while I generally do not
> > >>> recommend
> > >>> it in any other.
> > So if I have one Postgres installation but two databases, is it
> > possible that PHP would create twice as many persistant connections as
> > apache childs? This may be where my understanding went awry.
> > >
> > > ---------------------------(end of
> > > broadcast)---------------------------
> > > TIP 4: Don't 'kill -9' the postmaster
> >
>
>
>---------------------------(end of broadcast)---------------------------
>TIP 6: Have you searched our list archives?
>
>                http://archives.postgresql.org




view thread (15+ messages)

Message-ID: <5.2.1.1.0.20041230153137.00a63740@pop6.sympatico.ca>
Permalink:  ../5.2.1.1.0.20041230153137.00a63740@pop6.sympatico.ca/
Also on:    postgresql.org/message-id/5.2.1.1.0.20041230153137.00a63740@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
  Subject: Re: too many clients
  In-Reply-To: <5.2.1.1.0.20041230153137.00a63740@pop6.sympatico.ca>
  References: <988BEA40-5A6B-11D9-B3B3-0003938BDF32@localnotion.com> <330532b604122908387f7ffde2@mail.gmail.com> <0DC9A380-59AB-11D9-B3B3-0003938BDF32@localnotion.com> <5.2.1.1.0.20041229125718.00a02520@pop6.sympatico.ca> <1104363131.32605.30.camel@localhost> <87y8fg8iqi.fsf@stark.xeocode.com> <1104384788.32609.42.camel@localhost> <5.2.1.1.0.20041230153137.00a63740@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