Re: Unexpected Result in Windowing

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: David Fetter <david@fetter.org>
Cc: PG Hackers <pgsql-hackers@postgresql.org>
Date: 2009-03-30T17:31:23Z
Lists: pgsql-hackers
David Fetter <david@fetter.org> writes:
> SELECT
>     i,
>     t,
>     RANK() OVER (
>         PARTITION BY i
>         ORDER BY random()
>     )
> FROM foo;
> ERROR:  ORDER/GROUP BY expression not found in targetlist

Fixed.

			regards, tom lane