Re: Unexpected behaviour of ORDER BY and LIMIT/OFFSET - Mailing list pgsql-novice

From Ognjen Blagojevic
Subject Re: Unexpected behaviour of ORDER BY and LIMIT/OFFSET
Date
Msg-id 4A0C6F4B.4040803@etf.bg.ac.yu
Whole thread Raw
In response to Re: Unexpected behaviour of ORDER BY and LIMIT/OFFSET  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-novice
Tom Lane wrote:
> "ORDER BY id_dept" isn't a unique sort key.  In this example the
> implementation is free to return Meggie and Marge in either order,
> and the ordering can indeed vary depending on the LIMIT/OFFSET values.
>
> Moral: don't use LIMIT/OFFSET without a fully specified sort order.

Thank you, Tom, for your prompt response.

Regards,
Ognjen

pgsql-novice by date:

Previous
From: JORGE MALDONADO
Date:
Subject: INSERTING "NEW LINES" IN A SELECT STATEMENT
Next
From: Ognjen Blagojevic
Date:
Subject: Re: INSERTING "NEW LINES" IN A SELECT STATEMENT