Re: [HACKERS] taking a stab at agg(foo ORDER BY bar)

2009-10-04 Thread Tom Lane
Andrew Gierth writes: > This doesn't seem to present any problems as far as the syntax goes, > and the actual execution is just a small matter of coding, but I'm not > seeing the best way to handle it in parse-analysis. All the existing > infrastructure for ORDER BY seems to be dependent on target

[HACKERS] taking a stab at agg(foo ORDER BY bar)

2009-10-04 Thread Andrew Gierth
The spec defines array_agg(foo ORDER BY ...) which we don't implement yet; obviously, we have no reason not to define this for any aggregate, rather than just array_agg. This doesn't seem to present any problems as far as the syntax goes, and the actual execution is just a small matter of coding,