From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
Cc: | CSN <cool_screen_name90001(at)yahoo(dot)com>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Negative offsets |
Date: | 2006-03-03 02:44:39 |
Message-ID: | 200603030244.k232idf29110@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Bruce Momjian wrote:
> CSN wrote:
> > I was playing around with negative offsets:
> >
> > select * from table1 order by col1 offset -5 limit 25;
> > select * from table1 order by col1 offset -25 limit
> > 25;
> > select * from table1 order by col1 offset -250 limit
> > 25;
> >
> > They all return the same resultset (offset 0). Is
> > there even any point in allowing negative offsets -
> > such as maybe someday they'll offset backwards?
>
> Actually we allow negative offsets and limits. Seems we should disallow
> them. Yes, it would be interesting if they did offsets relative to the
> end of the result set.
Seems most people just want to leave our current behavior unchanged.
--
Bruce Momjian http://candle.pha.pa.us
SRA OSS, Inc. http://www.sraoss.com
+ If your life is a hard drive, Christ can be your backup. +
From | Date | Subject | |
---|---|---|---|
Next Message | Perez | 2006-03-03 03:07:25 | xml and utf-8 |
Previous Message | Christopher Browne | 2006-03-03 02:40:17 | Re: Solaris 10 ZFS Postgresql request for comments |