pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jeff Davis <pgsql@j-davis.com>
To: pgsql-bugs@postgresql.org
Subject: Window function bug
Date: Mon, 11 Jul 2011 17:48:06 -0700
Message-ID: <1310431686.497.26.camel@jdavis-ux.asterdata.local> (raw)

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




view thread (6+ messages)  latest in thread

Message-ID: <1310431686.497.26.camel@jdavis-ux.asterdata.local>
Permalink:  ../1310431686.497.26.camel@jdavis-ux.asterdata.local/
Also on:    postgresql.org/message-id/1310431686.497.26.camel@jdavis-ux.asterdata.local

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: pgsql@j-davis.com
  Subject: Re: Window function bug
  In-Reply-To: <1310431686.497.26.camel@jdavis-ux.asterdata.local>
  References: <1310431686.497.26.camel@jdavis-ux.asterdata.local>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox