Re: Aggregate ORDER BY patch
Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
From: Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
To: Andrew Gierth <andrew@tao11.riddles.org.uk>
Cc: pgsql-hackers@postgresql.org
Date: 2009-11-13T07:54:31Z
Lists: pgsql-hackers
Andrew Gierth wrote: > Herewith a patch to implement agg(foo ORDER BY bar) with or without > DISTINCT, etc. What does that mean? Aggregate functions are supposed to be commutative, right? > No artificial restrictions are imposed on what > syntactical combinations are allowed. However, ORDER BY is not allowed > with aggregates used as window functions (as per the existing > restriction on DISTINCT). How is this different from window functions? -- Heikki Linnakangas EnterpriseDB http://www.enterprisedb.com