Re: [HACKERS] SELECT ... LIMIT (trial implementation) - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [HACKERS] SELECT ... LIMIT (trial implementation)
Date
Msg-id 2292.908726689@sss.pgh.pa.us
Whole thread Raw
In response to Re: [HACKERS] SELECT ... LIMIT (trial implementation)  (Bruce Momjian <maillist@candle.pha.pa.us>)
Responses Re: [HACKERS] SELECT ... LIMIT (trial implementation)
Re: [HACKERS] SELECT ... LIMIT (trial implementation)
List pgsql-hackers
Bruce Momjian <maillist@candle.pha.pa.us> writes:
> What if someone wants the rows from 500 to the end.  Should we allow
> the syntax to be:
>          SELECT ... [LIMIT count] [OFFSET offset]
> LIMIT and OFFSET are independent.

I like that syntax the best, but remember we are not inventing in
a green field here.  Isn't this a feature that already exists in
other DBMs?  We should probably copy their syntax, unless it's
truly spectacularly awful...

            regards, tom lane

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [HACKERS] SELECT ... LIMIT (trial implementation)
Next
From: Tom Lane
Date:
Subject: Re: [HACKERS] backslash in psql output