From: Keary Suska <hierophant@pcisys.net>
To: Postgres-PHP <pgsql-php@postgresql.org>
Subject: Re: pg_pconnect+PostgreSQL cursors
Date: Thu, 02 Jan 2003 21:20:12 -0700
Message-ID: <BA3A5D8C.16DFF%hierophant@pcisys.net> (raw)
In-Reply-To: <20021226165914.GA8628@city.gov.te.ua>
on 12/26/02 9:59 AM, serg@city.gov.te.ua purportedly said:
> I've got closing of cursor and transaction! why??? I use permanent connection,
> why I've got closing of cursor and transaction!???
The "p" in "pconnect" means *persistent*, not permanent. The connection will
persist after the script has completed, however, the connection is handled
by the web server process and its true lifetime is only the lifetime of the
process. For Apache, this will vary by configuration, and is difficult to
predict when hosting multiple sites.
Tip: persistent connections are only useful when you want (and have the
resources to support) to minimize connection overhead. Any other use and you
are likely to be severely disappointed.
Keary Suska
Esoteritech, Inc.
"Leveraging Open Source for a better Internet"
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: hierophant@pcisys.net
Subject: Re: pg_pconnect+PostgreSQL cursors
In-Reply-To: <BA3A5D8C.16DFF%hierophant@pcisys.net>
References: <20021226165914.GA8628@city.gov.te.ua> <BA3A5D8C.16DFF%hierophant@pcisys.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