From: scott.marlowe <scott.marlowe@ihs.com>
To: Andreas Schmitz <a.schmitz@cityweb.de>
Cc: pgsql-php@postgresql.org
Subject: Re: Using Cursors in PHP
Date: Wed, 6 Aug 2003 09:51:21 -0600 (MDT)
Message-ID: <Pine.LNX.4.33.0308060950030.15751-100000@css120.ihs.com> (raw)
In-Reply-To: <200308061459.22825.a.schmitz@cityweb.de>
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.
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, a.schmitz@cityweb.de
Subject: Re: Using Cursors in PHP
In-Reply-To: <Pine.LNX.4.33.0308060950030.15751-100000@css120.ihs.com>
References: <200308061459.22825.a.schmitz@cityweb.de> <Pine.LNX.4.33.0308060950030.15751-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