Re: Using Cursors in PHP - Mailing list pgsql-php

From scott.marlowe
Subject Re: Using Cursors in PHP
Date
Msg-id Pine.LNX.4.33.0308080721170.20444-100000@css120.ihs.com
Whole thread Raw
In response to Re: Using Cursors in PHP  (Markus Bertheau <twanger@bluetwanger.de>)
Responses Re: Using Cursors in PHP
Re: Using Cursors in PHP
List pgsql-php
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.


pgsql-php by date:

Previous
From: Markus Bertheau
Date:
Subject: Re: Using Cursors in PHP
Next
From: Rod Taylor
Date:
Subject: Re: Using Cursors in PHP