Windowing functions vs aggregates - Mailing list pgsql-hackers

From Teodor Sigaev
Subject Windowing functions vs aggregates
Date
Msg-id 49E48BC5.6010803@sigaev.ru
Whole thread Raw
Responses Re: Windowing functions vs aggregates  (Greg Stark <stark@enterprisedb.com>)
Re: Windowing functions vs aggregates  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Cast of aggregate's type works:
# select avg(s)::int4 from foo;

but that doesn't work for with new windowing functions interface:
# select avg(s)::int4 OVER () from foo;
ERROR:  syntax error at or near "OVER"
LINE 1: select avg(s)::int4 OVER () from foo;

Is that intentional?

-- 
Teodor Sigaev                                   E-mail: teodor@sigaev.ru
  WWW: http://www.sigaev.ru/
 


pgsql-hackers by date:

Previous
From: Zdenek Kotala
Date:
Subject: libpq is not thread safe
Next
From: Greg Stark
Date:
Subject: Re: Windowing functions vs aggregates