BUG #5018: Window function alias - Mailing list pgsql-bugs

From Marko Tiikkaja
Subject BUG #5018: Window function alias
Date
Msg-id 200908271122.n7RBM2Cs083448@wwwmaster.postgresql.org
Whole thread Raw
Responses Re: BUG #5018: Window function alias
List pgsql-bugs
The following bug has been logged online:

Bug reference:      5018
Logged by:          Marko Tiikkaja
Email address:      marko.tiikkaja@cs.helsinki.fi
PostgreSQL version: 8.4.0
Operating system:   Linux
Description:        Window function alias
Details:

I came across this:

=> SELECT lead(foo) OVER(ORDER BY foo) AS foo FROM (VALUES(0)) bar(foo);
ERROR:  window functions not allowed in window definition

Changing the *column alias* to something else gives the expected answer. Is
this really the desired behaviour?

pgsql-bugs by date:

Previous
From: Magnus Hagander
Date:
Subject: Re: BUG #5008: Server Startup Problem - When server is configured for SSL
Next
From: Ashesh Vashi
Date:
Subject: Re: BUG #5015: MySQL migration wizard does not start