pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Phill Kenoyer <pgsql@c0de.net>
To: Felipe Nascimento <Felipe.Nascimento@multivalor.com.br>
Cc: 'pgsql-admin@postgresql.org' <pgsql-admin@postgresql.org>
Subject: Re: Persistent Connections with PHP and PostgreSQL
Date: Wed, 6 Feb 2002 10:24:16 -0800
Message-ID: <20020206182416.GO27030@home.c0de.net> (raw)
In-Reply-To: <A1D265B81E168745B876193655F97F8D01809A@mvescexc01.esc.multivalor.com.br>
References: <A1D265B81E168745B876193655F97F8D01809A@mvescexc01.esc.multivalor.com.br>

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.
                                               _   |       _           
                                              (_()(|('.|)('||.|()|`|(



view thread (4+ messages)  latest in thread

Message-ID: <20020206182416.GO27030@home.c0de.net>
Permalink:  ../20020206182416.GO27030@home.c0de.net/
Also on:    postgresql.org/message-id/20020206182416.GO27030@home.c0de.net

 · 

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-admin@postgresql.org
  Cc: pgsql@c0de.net, Felipe.Nascimento@multivalor.com.br
  Subject: Re: Persistent Connections with PHP and PostgreSQL
  In-Reply-To: <20020206182416.GO27030@home.c0de.net>
  References: <A1D265B81E168745B876193655F97F8D01809A@mvescexc01.esc.multivalor.com.br> <20020206182416.GO27030@home.c0de.net>

* 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