Re: ORDER BY vs. volatile functions

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Andrew Gierth <andrew(at)tao11(dot)riddles(dot)org(dot)uk>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: ORDER BY vs. volatile functions
Date: 2009-11-16 15:00:47
Message-ID: 18797.1258383647@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Andrew Gierth <andrew(at)tao11(dot)riddles(dot)org(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2009-11-16 15:05:54 Re: [HACKERS] pgsql: /home/peter/commit-msg
Previous Message Pavel Stehule 2009-11-16 14:47:00 different result between 8.3 and 8.5 (to_timestamp function)