Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 1F30FB5D803 for ; Mon, 11 Jul 2011 21:48:17 -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 44224-04 for ; Tue, 12 Jul 2011 00:48:11 +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 11D42B5DCC4 for ; Mon, 11 Jul 2011 21:48:10 -0300 (ADT) Received: by iwn6 with SMTP id 6so4180330iwn.19 for ; Mon, 11 Jul 2011 17:48:10 -0700 (PDT) Received: by 10.42.246.65 with SMTP id lx1mr5132903icb.254.1310431689934; Mon, 11 Jul 2011 17:48:09 -0700 (PDT) Received: from [10.10.3.129] (71-6-94-66.static-ip.telepacific.net [71.6.94.66]) by mx.google.com with ESMTPS id y3sm3180227iba.4.2011.07.11.17.48.08 (version=SSLv3 cipher=OTHER); Mon, 11 Jul 2011 17:48:09 -0700 (PDT) Subject: Window function bug From: Jeff Davis To: pgsql-bugs@postgresql.org Content-Type: text/plain; charset="ISO-8859-1" Date: Mon, 11 Jul 2011 17:48:06 -0700 Message-ID: <1310431686.497.26.camel@jdavis-ux.asterdata.local> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 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/94 X-Sequence-Number: 30706 In branch postgresql/master: SELECT SUM(SUM(a)) OVER () FROM (SELECT NULL::int4 AS a WHERE FALSE) R; ERROR: XX000: cannot extract attribute from empty tuple slot Honestly, I'm not sure what the semantics of that are supposed to be. Is it even allowed by the standard? Regards, Jeff Davis