| From: | Bruno Wolff III <bruno(at)wolff(dot)to> | 
|---|---|
| To: | Alexander Ilyin <a_ilyin(at)ukr(dot)net> | 
| Cc: | pgsql-sql(at)postgresql(dot)org | 
| Subject: | Re: How to FindNearest | 
| Date: | 2006-10-03 17:11:25 | 
| Message-ID: | 20061003171125.GA5744@wolff.to | 
| Views: | Whole Thread | Raw Message | Download mbox | Resend email | 
| Thread: | |
| Lists: | pgsql-sql | 
On Tue, Oct 03, 2006 at 14:43:40 +0300,
  Alexander Ilyin <a_ilyin(at)ukr(dot)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.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Bruno Wolff III | 2006-10-03 17:19:56 | Re: Update 3 columns w/ 1 function calc 3 values? | 
| Previous Message | chrisj | 2006-10-03 15:45:55 | Re: Assigning a timestamp without timezone to a timestamp |