From: Josh Berkus <josh@agliodbs.com>
To: sqllist <pgsql-sql@postgresql.org>
To: phpp <pgsql-php@postgresql.org>
Subject: Re: Re: [SQL] FTI, paged, ranked searching and efficiency.
Date: Wed, 15 Nov 2000 09:31:38 -0800
Message-ID: <3A12C87A.390C6346@agliodbs.com> (raw)
References: <3A36DC72@operamail.com>
<3A12C1DA.D296628C@agliodbs.com>
<20001115122516.B25685@bang.dhs.org>
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.
-Josh
--
______AGLIO DATABASE SOLUTIONS___________________________
Josh Berkus
Complete information technology josh@agliodbs.com
and data management solutions (415) 436-9166
for law firms, small businesses fax 436-0137
and non-profit organizations. pager 338-4078
San Francisco
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: josh@agliodbs.com, pgsql-php@postgresql.org
Subject: Re: [SQL] FTI, paged, ranked searching and efficiency.
In-Reply-To: <3A12C87A.390C6346@agliodbs.com>
References: <3A36DC72@operamail.com> <3A12C1DA.D296628C@agliodbs.com> <20001115122516.B25685@bang.dhs.org> <3A12C87A.390C6346@agliodbs.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