Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 037101E34FD7 for ; Wed, 23 Nov 2011 10:58:47 -0400 (AST) Received: from host36.ns3.it ([80.79.54.36] helo=mail.opinioni.net) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RTEHb-0008Kk-K6 for pgsql-bugs@postgresql.org; Wed, 23 Nov 2011 14:58:48 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.opinioni.net (Postfix) with ESMTP id 3947326DD59 for ; Wed, 23 Nov 2011 16:01:33 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at opinioni.net Received: from mail.opinioni.net ([127.0.0.1]) by localhost (opinioni.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6hyAkEij2tHa for ; Wed, 23 Nov 2011 16:01:32 +0100 (CET) Received: from [192.168.1.50] (unknown [78.134.6.72]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.opinioni.net (Postfix) with ESMTPS id 9366C26DD56 for ; Wed, 23 Nov 2011 16:01:32 +0100 (CET) Message-ID: <4ECD0A14.2080806@opinioni.net> Date: Wed, 23 Nov 2011 15:58:28 +0100 From: Andrea Suisani User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 MIME-Version: 1.0 To: pgsql-bugs@postgresql.org Subject: Re: BUG #6303: ROW_NUMBER() References: <201111211640.pALGeAcX024645@wwwmaster.postgresql.org> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Archive-Number: 201111/161 X-Sequence-Number: 31756 On 11/21/2011 06:42 PM, bricklen wrote: > On Mon, Nov 21, 2011 at 8:40 AM, Alessandro Bellanda > wrote: >> >> The following bug has been logged online: >> >> Bug reference: 6303 >> Logged by: Alessandro Bellanda >> Email address: a.bellanda@gmail.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