Re: default ordering of query result - are they always guarantee

From: Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com>
To: "A(dot) Kretschmer" <andreas(dot)kretschmer(at)schollglas(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: default ordering of query result - are they always guarantee
Date: 2010-05-19 08:15:01
Message-ID: AANLkTim-NnZqSlK6sXGwmp1LH18hf9MG1Hu0KhdrzP-z@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, May 19, 2010 at 1:38 AM, A. Kretschmer
<andreas(dot)kretschmer(at)schollglas(dot)com> wrote:
> In response to Guillaume Lelarge :
>> > This is the default behavior I want. However, I am not sure whether this is always guarantee? Or shall I explicitly make the query in the following form?
>>
>> An you're right. It's not guaranted. The only guaranted way is to use
>> ORDER BY your_column.
>
> ACK. One reason is the new feature 'synchronised scan' sind 8.3. It's a
> big performance boost, but engendered unsorted results. (if there is not
> the ORDER BY - statement)

Just for reference I once had three separate oracle dbas saying my pg
server was broken because group by came out in random order (due to
hash aggregates).

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message BRUSSER Michael 2010-05-19 14:06:24 TCL client interface
Previous Message Malm Paul 2010-05-19 07:46:10 Re: metadata on a table