X-Original-To: pgsql-php-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id B5009D1BB16 for ; Fri, 27 Feb 2004 20:52:39 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 23726-01 for ; Fri, 27 Feb 2004 16:52:38 -0400 (AST) Received: from ctb-mesg2.saix.net (ctb-mesg2.saix.net [196.25.240.74]) by svr1.postgresql.org (Postfix) with ESMTP id EE205D1BACC for ; Fri, 27 Feb 2004 16:52:30 -0400 (AST) Received: from wpaw-ip-nas-1-p99.telkom-ipnet.co.za (wpaw-ip-nas-1-p99.telkom-ipnet.co.za [155.239.120.99]) by ctb-mesg2.saix.net (Postfix) with ESMTP id 2E4FB1A89B6 for ; Fri, 27 Feb 2004 22:52:24 +0200 (SAST) Subject: Too many clients From: Andy Dunlop To: pgsql-php@postgresql.org Content-Type: text/plain Content-Transfer-Encoding: 7bit Message-Id: <1077877268.1247.9.camel@redhat1.localdomain> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.0.8 (1.0.8-10) Date: 27 Feb 2004 23:11:33 +0200 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200402/44 X-Sequence-Number: 2592 I hope this goes to the right place! I occasionally get the error "too many clients" when connecting to the database. I try restarting the Postgres server and also Apache, but the only thing that clears the problem is restarting Linux. I have maxusers set to 35, and I am the only user, so I suspect I am not doing something in my scripts that I should be, or doing something that I shouldn't be! I have the pg_connect at the top of the script so each time it loads the page it does a new connect - maybe this is a problem? Probably a simple solution, anyone know? Thanks Andy