Re: [GENERAL] Behavior of negative OFFSET

2011-11-07 Thread Tom Lane
Robert James writes: > On 11/7/11, Merlin Moncure wrote: >> On Mon, Nov 7, 2011 at 3:47 PM, Robert James wrote: >>> I've been using a query on Postgres 8.4 with a negative OFFSET, which >>> works fine: >>> SELECT DISTINCT s.* FROM s WHERE ... ORDER BY s.bday ASC, s.name >>> ASC LIMIT 15 OFFSET -

Re: [GENERAL] Behavior of negative OFFSET

2011-11-07 Thread Robert James
On 11/7/11, Merlin Moncure wrote: > On Mon, Nov 7, 2011 at 3:47 PM, Robert James wrote: >> I've been using a query on Postgres 8.4 with a negative OFFSET, which >> works fine: >> >> SELECT DISTINCT s.* FROM s WHERE ... ORDER BY s.bday ASC, s.name >> ASC LIMIT 15 OFFSET -15 >> > > the original b

Re: [GENERAL] Behavior of negative OFFSET

2011-11-07 Thread Merlin Moncure
On Mon, Nov 7, 2011 at 3:47 PM, Robert James wrote: > I've been using a query on Postgres 8.4 with a negative OFFSET, which > works fine: > >   SELECT DISTINCT s.* FROM s WHERE ... ORDER BY s.bday ASC, s.name > ASC LIMIT 15 OFFSET -15 > > When I run the same query on Postgres 9.1, I get an error:

[GENERAL] Behavior of negative OFFSET

2011-11-07 Thread Robert James
I've been using a query on Postgres 8.4 with a negative OFFSET, which works fine: SELECT DISTINCT s.* FROM s WHERE ... ORDER BY s.bday ASC, s.name ASC LIMIT 15 OFFSET -15 When I run the same query on Postgres 9.1, I get an error: ERROR: OFFSET must not be negative Question: 1. Was this ch