From: | "Albe Laurenz" <laurenz(dot)albe(at)wien(dot)gv(dot)at> |
---|---|
To: | "urkpostenardr *EXTERN*" <urkpostenardr(at)gmail(dot)com>, <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Limit+Offset query wrong result in Postgres 9.0.3 ? |
Date: | 2012-10-12 09:10:40 |
Message-ID: | D960CB61B694CF459DCFB4B0128514C20886B2A3@exadv11.host.magwien.gv.at |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
urkpostenardr wrote:
> Is this bug in Postgres ?
> If yes, is it fixed in latest release ?
> Second query should return 2 rows instead of 1 ?
>
> create table t(i int);
> insert into t values(1);
> insert into t values(2);
> insert into t values(3);
> pgdb=# select i from t order by i limit 9223372036854775806 offset 1;
> select i from t order by i limit 9223372036854775806 offset 1;
> i
> 2
> 3
> (2 rows)
> pgdb=# select i from t order by i limit 9223372036854775807 offset 1;
> select i from t order by i limit 9223372036854775807 offset 1;
> i
> 2
> (1 row)
> pgdb=#
>
>
> My server Version is postgres (PostgreSQL) 9.0.3
That looks like a bug somewhere; at least on my 9.2.0 on Linux
I get the result that you would expect.
Which operating system and architecture is that?
Yours,
Laurenz Albe
From | Date | Subject | |
---|---|---|---|
Next Message | Alban Hertroys | 2012-10-12 10:33:52 | Re: Limit+Offset query wrong result in Postgres 9.0.3 ? |
Previous Message | Sergey Konoplev | 2012-10-12 08:30:41 | Re: How to raise index points when equal and like is used with gist ? |