Re: ORDER BY vs. volatile functions - Mailing list pgsql-hackers

From Andrew Gierth
Subject Re: ORDER BY vs. volatile functions
Date
Msg-id 87einzhuv3.fsf@news-spur.riddles.org.uk
Whole thread Raw
In response to Re: ORDER BY vs. volatile functions  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: ORDER BY vs. volatile functions
List pgsql-hackers
>>>>> "Tom" == Tom Lane <tgl@sss.pgh.pa.us> writes:
>> This query:>> select random() from generate_series(1,10) order by random();>> produces sorted output.>> Should it?
Tom> It always has; we'd doubtless break some apps if we changed that.

For bonus weirdness:

select distinct random(),random() from generate_series(1,10);
set enable_hashagg=off;
select distinct random(),random() from generate_series(1,10);

I think _that_ one is a bug.

-- 
Andrew (irc:RhodiumToad)


pgsql-hackers by date:

Previous
From: Jeff Davis
Date:
Subject: Re: New VACUUM FULL
Next
From: Heikki Linnakangas
Date:
Subject: Re: Summary and Plan for Hot Standby