Persistent Connections with PHP and PostgreSQL - Mailing list pgsql-admin

From Felipe Nascimento
Subject Persistent Connections with PHP and PostgreSQL
Date
Msg-id A1D265B81E168745B876193655F97F8D01809A@mvescexc01.esc.multivalor.com.br
Whole thread Raw
Responses Re: Persistent Connections with PHP and PostgreSQL
List pgsql-admin

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.)??

Thanks

                Felipe Nascimento
                MultiValor.com.br
                Tel.: 55 21 2505 3900 / 2505 3911
                Fax: 55 21 2505 3910
                <mailto:felipe.nascimento@multivalor.com.br>
                <http://www.multivalor.com.br>

pgsql-admin by date:

Previous
From: Tom Lane
Date:
Subject: Re: pg_restore
Next
From: Phill Kenoyer
Date:
Subject: Re: Persistent Connections with PHP and PostgreSQL