X-Original-To: pgsql-php-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id C7F5D3A2327 for ; Thu, 30 Dec 2004 14:39:10 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 68661-10 for ; Thu, 30 Dec 2004 14:38:45 +0000 (GMT) Received: from tomts5-srv.bellnexxia.net (tomts5.bellnexxia.net [209.226.175.25]) by svr1.postgresql.org (Postfix) with ESMTP id 5A6EB3A25BC for ; Thu, 30 Dec 2004 14:38:47 +0000 (GMT) Received: from acer.sympatico.ca ([65.95.133.206]) by tomts5-srv.bellnexxia.net (InterMail vM.5.01.06.10 201-253-122-130-110-20040306) with ESMTP id <20041230143847.CFBT2026.tomts5-srv.bellnexxia.net@acer.sympatico.ca> for ; Thu, 30 Dec 2004 09:38:47 -0500 Message-Id: <5.2.1.1.0.20041230092916.0444d100@pop6.sympatico.ca> X-Sender: b1wudu74@pop6.sympatico.ca X-Mailer: QUALCOMM Windows Eudora Version 5.2.1 Date: Thu, 30 Dec 2004 09:35:06 -0500 To: pgsql-php@postgresql.org From: Frank Bax Subject: Re: too many clients In-Reply-To: <988BEA40-5A6B-11D9-B3B3-0003938BDF32@localnotion.com> References: <1104384788.32609.42.camel@localhost> <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> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.038 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200412/10 X-Sequence-Number: 2968 At 09:03 AM 12/30/04, Matthew Terenzio wrote: >>On Thu, 2004-12-30 at 00:20 -0500, Greg Stark wrote: >>>"Gavin M. Roy" 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. Exactly right. But consider that if you used one username in connect string for read only access and a different username for admin updates, the number of persistent connections would double again!