Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 736AEB5DC46 for ; Tue, 12 Jul 2011 12:53:07 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 58651-05 for ; Tue, 12 Jul 2011 15:53:01 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-iw0-f174.google.com (mail-iw0-f174.google.com [209.85.214.174]) by mail.postgresql.org (Postfix) with ESMTP id 6920DB5DBFE for ; Tue, 12 Jul 2011 12:53:01 -0300 (ADT) Received: by iwn6 with SMTP id 6so4754413iwn.19 for ; Tue, 12 Jul 2011 08:53:00 -0700 (PDT) Received: by 10.231.47.193 with SMTP id o1mr63158ibf.79.1310485980668; Tue, 12 Jul 2011 08:53:00 -0700 (PDT) Received: from [192.168.1.101] (c-69-181-249-16.hsd1.ca.comcast.net [69.181.249.16]) by mx.google.com with ESMTPS id y3sm3555428iba.38.2011.07.12.08.52.58 (version=SSLv3 cipher=OTHER); Tue, 12 Jul 2011 08:52:59 -0700 (PDT) Subject: Re: Window function bug From: Jeff Davis To: Tom Lane Cc: pgsql-bugs@postgresql.org In-Reply-To: <12936.1310484039@sss.pgh.pa.us> References: <1310431686.497.26.camel@jdavis-ux.asterdata.local> <12015.1310480904@sss.pgh.pa.us> <12936.1310484039@sss.pgh.pa.us> Content-Type: text/plain; charset="UTF-8" Date: Tue, 12 Jul 2011 08:53:10 -0700 Message-ID: <1310485990.3012.268.camel@jdavis> Mime-Version: 1.0 X-Mailer: Evolution 2.32.2 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-5 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201107/106 X-Sequence-Number: 30718 On Tue, 2011-07-12 at 11:20 -0400, Tom Lane wrote: > So far as I can see, the failure only > occurs if we have a plain (non-grouping) Agg node, which implies that > the user is trying to use windowing functions on a result set that's > guaranteed to contain exactly one aggregated row. That seems pretty > useless, so I'm thinking it's not worth back-patching a fix for. > Comments? Agreed. I'm not worried about backpatching it. Regards, Jeff Davis