Re: Persistent Connections with PHP and PostgreSQL

From: Felipe Nascimento <Felipe(dot)Nascimento(at)multivalor(dot)com(dot)br>
To: "'Phill Kenoyer'" <pgsql(at)c0de(dot)net>, Felipe Nascimento <Felipe(dot)Nascimento(at)multivalor(dot)com(dot)br>
Cc: "'pgsql-admin(at)postgresql(dot)org'" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Persistent Connections with PHP and PostgreSQL
Date: 2002-02-06 21:10:26
Message-ID: A1D265B81E168745B876193655F97F8D0180A7@mvescexc01.esc.multivalor.com.br
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Do I have to call pg_close() every time at the end of the script??

Tks
Felipe

-----Original Message-----
From: Phill Kenoyer [mailto:pgsql(at)c0de(dot)net]
Sent: quarta-feira, 6 de fevereiro de 2002 16:24
To: Felipe Nascimento
Cc: 'pgsql-admin(at)postgresql(dot)org'
Subject: Re: [ADMIN] Persistent Connections with PHP and PostgreSQL

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(dot)Nascimento(at)multivalor(dot)com(dot)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.
_ | _
(_()(|('.|)('||.|()|`|(

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Phill Kenoyer 2002-02-06 21:16:43 Re: Persistent Connections with PHP and PostgreSQL
Previous Message Naomi Walker 2002-02-06 19:08:09 Re: Recovery - transaction logs