From: Bruno Wolff III <bruno@wolff.to>
To: Alexander Ilyin <a_ilyin@ukr.net>
Cc: pgsql-sql@postgresql.org
Subject: Re: How to FindNearest
Date: Tue, 3 Oct 2006 12:11:25 -0500
Message-ID: <20061003171125.GA5744@wolff.to> (raw)
In-Reply-To: <E1GUigW-000K1a-7F@kitty.ukr.net>
References: <20061003002049.GA1490@wolff.to>
<E1GUigW-000K1a-7F@kitty.ukr.net>
On Tue, Oct 03, 2006 at 14:43:40 +0300,
Alexander Ilyin <a_ilyin@ukr.net> wrote:
>
> Thank you for your great idea. But how it can be used for positioning the cursor in the already existed ResultSet? Using your idea I can found the closest to targetvalue row but not its position in my ResultSet.
You wouldn't be able to use it to position a cursor. But if you aren't
retrieving a lot of records at once, this may still be a workable strategy
for you.
> Anyway thank you for your idea it is very useful by itself. Also I can solve my problem using your idea and emulating the movement in my existed ResultSet. Even better - no need to store the large RS between cursor movements. Just each time I need to fetch the all visible rows.
That sounds pretty reasonable.
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: bruno@wolff.to, a_ilyin@ukr.net
Subject: Re: How to FindNearest
In-Reply-To: <20061003171125.GA5744@wolff.to>
* 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