Re: Using Cursors in PHP

From: "scott(dot)marlowe" <scott(dot)marlowe(at)ihs(dot)com>
To: Andreas Schmitz <a(dot)schmitz(at)cityweb(dot)de>
Cc: <pgsql-php(at)postgresql(dot)org>
Subject: Re: Using Cursors in PHP
Date: 2003-08-06 15:51:21
Message-ID: Pine.LNX.4.33.0308060950030.15751-100000@css120.ihs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-php

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.

Luckily, Postgresql is smart enough to use indexes when you use offset
limit, but, of course, it must internally create the result set up to and
including the last row returned by the limit / offset.

In response to

Responses

Browse pgsql-php by date

  From Date Subject
Next Message Robby Russell 2003-08-07 03:12:32 Re: [PHP] authentication question
Previous Message Andreas Schmitz 2003-08-06 12:59:22 Using Cursors in PHP