Re: [BUGS] We are not following the spec for HAVING without GROUP

Greg Stark <gsstark@mit.edu>

From: Greg Stark <gsstark@mit.edu>
To: Dennis Bjorklund <db@zigo.dhs.org>
Cc: Greg Stark <gsstark@mit.edu>, Bruno Wolff III <bruno@wolff.to>, Tom Lane <tgl@sss.pgh.pa.us>, <pgsql-hackers@postgresql.org>
Date: 2005-03-14T16:51:18Z
Lists: pgsql-bugs, pgsql-hackers
Dennis Bjorklund <db@zigo.dhs.org> writes:

> They are aggregate functions, the avg() is a window aggregate function 
> according to the standard. It runs over all values in the same partition.
> 
> > -- albeit functions that use data from other records other
> > than the one being output.
> 
> Yes, and not just one other record, but a number of them. Isn't that what 
> aggregate functions are?

Er, yeah. They're aggregate functions in that they consider many records as
input. However they're not aggregate functions in that they produce an output
for every record, as opposed to outputting only one value for a whole group.


-- 
greg