From: Stephen van Egmond <svanegmond@bang.dhs.org>
To: Josh Berkus <josh@agliodbs.com>
Cc: sqllist <pgsql-sql@postgresql.org>
Cc: phpp <pgsql-php@postgresql.org>
Subject: Re: Re: [SQL] FTI, paged, ranked searching and efficiency.
Date: Wed, 15 Nov 2000 12:51:16 -0500
Message-ID: <20001115125116.A25885@bang.dhs.org> (raw)
In-Reply-To: <3A12C87A.390C6346@agliodbs.com>
References: <3A36DC72@operamail.com>
<3A12C1DA.D296628C@agliodbs.com>
<20001115122516.B25685@bang.dhs.org>
<3A12C87A.390C6346@agliodbs.com>
Josh Berkus (josh@agliodbs.com) wrote:
> Stephen,
>
> > How come nobody's ever thought of cursors?
> >
> > DECLARE foo CURSOR FOR SELECT stuff FROM stuff WHERE foo ORDER BY
> > something;
> >
> > Hop forward N rows?
> > MOVE FORWARD $n IN foo
> >
> > Want M rows?
> > FETCH FORWARD $m IN foo
>
> I'm intrigued by this. How would I retrieve cursor rows into a web
> application? If we could output a cursor to a functon result (we
> can't), it would be easy, but I'm not sure otherwise.
The result of the FETCH is something you can use pg_fetch_* functions
on as usual.
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-sql@postgresql.org
Cc: svanegmond@bang.dhs.org, josh@agliodbs.com, pgsql-php@postgresql.org
Subject: Re: [SQL] FTI, paged, ranked searching and efficiency.
In-Reply-To: <20001115125116.A25885@bang.dhs.org>
References: <3A36DC72@operamail.com> <3A12C1DA.D296628C@agliodbs.com> <20001115122516.B25685@bang.dhs.org> <3A12C87A.390C6346@agliodbs.com> <20001115125116.A25885@bang.dhs.org>
* 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