Received: from home.c0de.net (209.dsl6660135.nokia.surewest.net [66.60.135.209]) by postgresql.org (8.11.3/8.11.4) with ESMTP id g16IOTE14229 for ; Wed, 6 Feb 2002 13:24:29 -0500 (EST) (envelope-from phill@home.c0de.net) Received: from phill by home.c0de.net with local (Exim 3.34 #1 (Debian)) id 16YWjw-0007yy-00; Wed, 06 Feb 2002 10:24:16 -0800 Date: Wed, 6 Feb 2002 10:24:16 -0800 From: Phill Kenoyer To: Felipe Nascimento Cc: "'pgsql-admin@postgresql.org'" Subject: Re: Persistent Connections with PHP and PostgreSQL Message-ID: <20020206182416.GO27030@home.c0de.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.27i X-Archive-Number: 200202/47 X-Sequence-Number: 3208 Its a bug in PHP. Also, PHP 4.1.1 is the latest version. I have not tried it with this new version yet. I switched from pconnect to just connect and I did not see much difference. I dont run into the out of connections problem any more so I'm happy. |On 020206 10:00 |Felipe Nascimento (Felipe.Nascimento@multivalor.com.br) wrote the following... | |Dears, | |I am using PostgreSQL 7.1.3 with PHP4.0.6. |I'm trying to establish persistent connections with pg_pconnect() function |from PHP. |There are some problems like there was too many connections being |established. Sometimes I get a warning "Supplied argument is not a valid |PostgreSQL link resource in...". Other times, when I try to connect with |psql, I get "Sorry, too many clients". | |Suggestions? | |Is it better to use persistent connections over normal connections (despite |the fact that I have to close all the normal connections whenever I open |one.)?? -- BOFH Reason of the day: We only support a 28000 bps connection. _ | _ (_()(|('.|)('||.|()|`|(