Re: Strange limit and offset behaviour.... - Mailing list pgsql-general

From Bjørn T Johansen
Subject Re: Strange limit and offset behaviour....
Date
Msg-id 20090207232219.695274e6@pennywise.havleik.no
Whole thread Raw
In response to Re: Strange limit and offset behaviour....  (Grzegorz Jaśkiewicz <gryzman@gmail.com>)
Responses Re: Strange limit and offset behaviour....  (Grzegorz Jaśkiewicz <gryzman@gmail.com>)
List pgsql-general
On Sat, 7 Feb 2009 22:03:37 +0000
Grzegorz Jaśkiewicz <gryzman@gmail.com> wrote:

> On Sat, Feb 7, 2009 at 9:57 PM, Bjørn T Johansen <btj@havleik.no> wrote:
> >> > SELECT * from table order by dato asc
>
> is the field 'dato' the same in both cases ? if so - you're goood
> just compare:
>
> select dato from table order by dato asc limit 10;
> with
> select dato from table order by dato asc limit 10 offset 0;
>
>
>

yes, they are the same... And returns the same, now when I have created an index for the dato field...

BTJ

pgsql-general by date:

Previous
From: Grzegorz Jaśkiewicz
Date:
Subject: Re: Strange limit and offset behaviour....
Next
From: Grzegorz Jaśkiewicz
Date:
Subject: Re: Strange limit and offset behaviour....