Re: array_agg and array_accum (patch) - Mailing list pgsql-hackers

From Tom Lane
Subject Re: array_agg and array_accum (patch)
Date
Msg-id 20365.1225127696@sss.pgh.pa.us
Whole thread Raw
In response to Re: array_agg and array_accum (patch)  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-hackers
Peter Eisentraut <peter_e@gmx.net> writes:
> How else will you tell an aggregate function whose result depends on the 
> input order which order you want?

You feed it from a subquery that has ORDER BY.  The only reason the spec
needs this kluge is their insistence that ORDER BY not be used in
subqueries.  Now I grant that there's some basis in relational theory
for that stand, but they certainly feel free to ignore academic notions
of cleanliness everywhere else in the spec.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Robert Treat
Date:
Subject: Re: Hot Standby utility and administrator functions
Next
From: Simon Riggs
Date:
Subject: Re: Hot Standby utility and administrator functions