Re: BUG #6303: ROW_NUMBER()

Lists: pgsql-bugs
From: "Alessandro Bellanda" <a(dot)bellanda(at)gmail(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #6303: ROW_NUMBER()
Date: 2011-11-21 16:40:10
Message-ID: 201111211640.pALGeAcX024645@wwwmaster.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-bugs


The following bug has been logged online:

Bug reference: 6303
Logged by: Alessandro Bellanda
Email address: a(dot)bellanda(at)gmail(dot)com
PostgreSQL version: 9.1.1
Operating system: Linux CentOS release 5.5 64 bit
Description: ROW_NUMBER()
Details:

Case:

ROW_NUMBER() OVER (ORDER BY CASE(SUM(expr1)>SUM(expr2),var1,var2))

Error description:
could not find pathkey item to sort


From: bricklen <bricklen(at)gmail(dot)com>
To: Alessandro Bellanda <a(dot)bellanda(at)gmail(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #6303: ROW_NUMBER()
Date: 2011-11-21 17:42:48
Message-ID: CAGrpgQ_omjLeM5q+gi2Z1V2vQm61n-Ae91DBp6=WM9K2BLeH0Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-bugs

On Mon, Nov 21, 2011 at 8:40 AM, Alessandro Bellanda
<a(dot)bellanda(at)gmail(dot)com> wrote:
>
> The following bug has been logged online:
>
> Bug reference:      6303
> Logged by:          Alessandro Bellanda
> Email address:      a(dot)bellanda(at)gmail(dot)com
> PostgreSQL version: 9.1.1
> Operating system:   Linux CentOS release 5.5 64 bit
> Description:        ROW_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=postgresql.git;a=commitdiff;h=1679e9feddc94bd7372a6829db92868e55ef7177


From: Andrea Suisani <sickpig(at)opinioni(dot)net>
To: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #6303: ROW_NUMBER()
Date: 2011-11-23 14:58:28
Message-ID: 4ECD0A14.2080806@opinioni.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-bugs

On 11/21/2011 06:42 PM, bricklen wrote:
> On Mon, Nov 21, 2011 at 8:40 AM, Alessandro Bellanda
> <a(dot)bellanda(at)gmail(dot)com> wrote:
>>
>> The following bug has been logged online:
>>
>> Bug reference: 6303
>> Logged by: Alessandro Bellanda
>> Email address: a(dot)bellanda(at)gmail(dot)com
>> PostgreSQL version: 9.1.1
>> Operating system: Linux CentOS release 5.5 64 bit
>> Description: ROW_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=postgresql.git;a=commitdiff;h=1679e9feddc94bd7372a6829db92868e55ef7177
>

and the fix will be included into postgres 9.1.2
(that should be announced on Monday Dec 5, with
tarballs available from Thursday Dec 1)

Andrea