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

From Tom Lane
Subject Re: ORDER BY vs. volatile functions
Date
Msg-id 18797.1258383647@sss.pgh.pa.us
Whole thread Raw
In response to Re: ORDER BY vs. volatile functions  (Andrew Gierth <andrew@tao11.riddles.org.uk>)
Responses Re: ORDER BY vs. volatile functions
List pgsql-hackers
Andrew Gierth <andrew@tao11.riddles.org.uk> writes:
> 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.

Hmm.  I think the first one is a bug --- the two invocations of
random() in the tlist shouldn't be folded together.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Pavel Stehule
Date:
Subject: different result between 8.3 and 8.5 (to_timestamp function)
Next
From: Tom Lane
Date:
Subject: Re: [COMMITTERS] pgsql: /home/peter/commit-msg