Re: BUG #4779: LIMIT/OFFSET behavior change (possibly related to Top-n)

From: "Thomas S(dot) Chin" <thom(at)genx(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #4779: LIMIT/OFFSET behavior change (possibly related to Top-n)
Date: 2009-04-24 14:34:58
Message-ID: 49F1CE12.5010000@genx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Ah, okay, found the documentation mentioning this (LIMIT). I was
looking in the wrong place (ORDER BY clause).

Thanks again for the help.

Tom Lane wrote:
> "Thomas S. Chin" <thom(at)genx(dot)net> writes:
>> I noticed that the behavior of queries that involve LIMIT/OFFSET no longer
>> return results consistent with the ordering of the same query without
>> LIMIT/OFFSET:
>
> No, this is not considered a bug; no such behavior has ever been
> promised. Read the fine manual.
>
> (Your actual problem is that the sort ordering is underspecified, which
> means you'll get varying results anyway.)
>
> regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Christine Penner 2009-04-24 15:08:08 Re: BUG #4771: Postgres wont start
Previous Message Tom Lane 2009-04-24 14:28:10 Re: BUG #4779: LIMIT/OFFSET behavior change (possibly related to Top-n)