From: Lynna Landstreet <lynna@gallery44.org>
To: pgsql-php@postgresql.org
Subject: Re: PHP Connections
Date: Tue, 05 Aug 2003 15:45:33 -0400
Message-ID: <BB55819D.8BB%lynna@gallery44.org> (raw)
In-Reply-To: <Pine.LNX.4.33.0308051251310.13758-100000@css120.ihs.com>
on 8/5/03 3:07 PM, scott.marlowe at scott.marlowe@ihs.com wrote:
> On Tue, 5 Aug 2003, Lynna Landstreet wrote:
>
>> But hey, come to think of it, maybe I could turn the pg_connect into a
>> pg_pconnect and just have it check to see if $db already exists before
>> connecting - that way there'd be only one connection per site visit! Cool,
>> your question gave me a new idea... :-)
>
> Be VERY wary of persistant connections. They are fraught with danger and
> can cause your server to present the "too many connections" error message
> after being up for a while. <rest snipped>
Hmmm, OK. I didn't realize they didn't time out. Maybe it's best to leave it
the way it is now, with just one pg_connect being called in the head of each
document. Thanks.
Lynna
--
Resource Centre Database Coordinator
Gallery 44
www.gallery44.org
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-php@postgresql.org
Cc: lynna@gallery44.org
Subject: Re: PHP Connections
In-Reply-To: <BB55819D.8BB%lynna@gallery44.org>
References: <Pine.LNX.4.33.0308051251310.13758-100000@css120.ihs.com> <BB55819D.8BB%lynna@gallery44.org>
* 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