From: Brent R. Matzelle <bmatzelle@yahoo.com>
To: pgsql-php@postgresql.org
Subject: Re: persistent vs. non-persistent
Date: Tue, 2 Oct 2001 07:25:22 -0700 (PDT)
Message-ID: <20011002142522.75914.qmail@web13006.mail.yahoo.com> (raw)
In-Reply-To: <20011001213819.82F8B2AB46@bugs.unl.edu.ar>
--- Martín Marqués <martin@bugs.unl.edu.ar> wrote:
> I'm having headaches with PHP, postgres and persistent
> connections.
>
> The problem is that my postgres backends stay alive after
> closing the
> connection.
The connection is never closed if it is a persistent connection.
Even if you use pg_close it remains open.
> I use pg_pconnect to connect to the database, put after
> closing the
> conection, nothing happens, la backend stays alive, and all I
> can do is
> restart apache to make them close (really close).
>
> Any solution to this?
This is exactly the behavior to expect from a persistent
connection. This is not a bug. If you do not want this
behavior then simply use pg_connect rather than pg_pconnect.
Brent
__________________________________________________
Do You Yahoo!?
Listen to your Yahoo! Mail messages from any phone.
http://phone.yahoo.com
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: bmatzelle@yahoo.com
Subject: Re: persistent vs. non-persistent
In-Reply-To: <20011002142522.75914.qmail@web13006.mail.yahoo.com>
References: <20011001213819.82F8B2AB46@bugs.unl.edu.ar> <20011002142522.75914.qmail@web13006.mail.yahoo.com>
* 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