Re: Parallel Aggregates for string_agg and array_agg
Andres Freund <andres@anarazel.de>
From: Andres Freund <andres@anarazel.de>
To: David Rowley <david.rowley@2ndquadrant.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>, Stephen Frost <sfrost@snowman.net>, Tomas Vondra <tomas.vondra@2ndquadrant.com>, PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2018-03-27T00:20:01Z
Lists: pgsql-hackers
Hi, On 2018-03-27 13:14:15 +1300, David Rowley wrote: > I have to say, it really would be a shame to have this concern block > us from future optimisations in aggregation. Yea, I think that's an important point. By the dint of Tom's argument we're never going to be able to provide parallelism for any aggregate where input order matters. It's not like users are magically going to stop depending on it, if they already do. Seems more likely that we'll grow more users depending on it. We could theoretically provide differently named aggregates where one allows parallelism, the other doesn't, without duplicating the backing code... Not pretty tho. Greetings, Andres Freund
Commits
-
Fix unstable aggregate regression test
- f5d0e866404a 16.3 landed
- d6a6957d53e3 17.0 landed
-
Allow parallel aggregate on string_agg and array_agg
- 16fd03e95654 16.0 landed
-
Improve performance of ORDER BY / DISTINCT aggregates
- 1349d2790bf4 16.0 cited
-
Support ORDER BY within aggregate function calls, at long last providing a
- 34d26872ed81 9.0.0 cited
-
Fix broken markup.
- 6a6efb964092 9.0.0 cited