From: scott.marlowe <scott.marlowe@ihs.com>
To: Markus Bertheau <twanger@bluetwanger.de>
Cc: Andreas Schmitz <a.schmitz@cityweb.de>
Cc: pgsql-php@postgresql.org
Subject: Re: Using Cursors in PHP
Date: Fri, 8 Aug 2003 07:22:18 -0600 (MDT)
Message-ID: <Pine.LNX.4.33.0308080721170.20444-100000@css120.ihs.com> (raw)
In-Reply-To: <1060329700.4453.0.camel@severn>
On 8 Aug 2003, Markus Bertheau wrote:
> В Срд, 06.08.2003, в 17:51, scott.marlowe пишет:
> > On Wed, 6 Aug 2003, Andreas Schmitz wrote:
> >
> > >
> > > Hello *,
> > >
> > > I am just wondering if it is possible to use cursors within PHP. I need to
> > > page query result from a big table and I am looking for a solution to avoid
> > > scanning the complete table using limit and offset.
> >
> > Yes, you can use cursors, no you can't expect them to survive from one
> > page to the next.
>
> What about the new feature in cursors "WITH HOLD"? Don't they survive?
I don't think so. Basically, PHP is supposed to reset the connection if
it's persistant, and if it isn't persistant, then it's always a new
connection, which means a cursor shouldn't survive.
But I'm NOT familiar with "WITH HOLD" right now, so someone else who knows
that better may have a more definitive answer.
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: scott.marlowe@ihs.com, twanger@bluetwanger.de, a.schmitz@cityweb.de
Subject: Re: Using Cursors in PHP
In-Reply-To: <Pine.LNX.4.33.0308080721170.20444-100000@css120.ihs.com>
References: <1060329700.4453.0.camel@severn> <Pine.LNX.4.33.0308080721170.20444-100000@css120.ihs.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