On Mon, Nov 21, 2011 at 8:40 AM, Alessandro Bellanda
<a.bellanda@gmail.com> wrote:
>
> The following bug has been logged online:
>
> Bug reference: =C2=A0 =C2=A0 =C2=A06303
> Logged by: =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Alessandro Bellanda
> Email address: =C2=A0 =C2=A0 =C2=A0a.bellanda@gmail.com
> PostgreSQL version: 9.1.1
> Operating system: =C2=A0 Linux CentOS release 5.5 64 bit
> Description: =C2=A0 =C2=A0 =C2=A0 =C2=A0ROW_NUMBER()
> Details:
>
> Case:
>
> ROW_NUMBER() OVER (ORDER BY CASE(SUM(expr1)>SUM(expr2),var1,var2))
>
> Error description:
> could not find pathkey item to sort
Tom Lane has already fixed this. See
http://git.postgresql.org/gitweb/?p=3Dpostgresql.git;a=3Dcommitdiff;h=3D167=
9e9feddc94bd7372a6829db92868e55ef7177