Re: [SQL] query to do a backward 'skip' ...thanks, it's working.

From: "Albert Loo" <albertsql(at)hotmail(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: [SQL] query to do a backward 'skip' ...thanks, it's working.
Date: 2000-01-12 20:53:04
Message-ID: 20000112125304.51884.qmail@hotmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

hi,

Thanks Tom Lane, Alain Tesio and Hiroshi Inoue for the advise and patch.
I've downloaded the latest snapshot with backward scan optimized (that's ok
as I'm still testing). I'm still thinking (xbase) a lot of go top, go
bottom, skip..skip... :)

>>=> select * from mytable where id < '12345' order by id desc limit 1;

>>- which returned the correct result '12344', but without optimization.

>6.5.* doesn't know how to do that using an index (but 7.0 will).

Albert
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com

Browse pgsql-sql by date

  From Date Subject
Next Message Peter Eisentraut 2000-01-12 23:29:25 proposal -- Re: [HACKERS] Re: [SQL] createdb -D xxxx not working
Previous Message Greg Youngblood 2000-01-12 17:52:51 Rules, triggers, ??? - What is the best way to enforce data-valid ation tests?