Allow parallel aggregate on string_agg and array_agg

David Rowley <drowley@postgresql.org>

Commit: 16fd03e956540d1b47b743f6a84f37c54ac93dd4
Author: David Rowley <drowley@postgresql.org>
Date: 2023-01-23T04:35:01Z
Releases: 16.0
Allow parallel aggregate on string_agg and array_agg

This adds combine, serial and deserial functions for the array_agg() and
string_agg() aggregate functions, thus allowing these aggregates to
partake in partial aggregations.  This allows both parallel aggregation to
take place when these aggregates are present and also allows additional
partition-wise aggregation plan shapes to include plans that require
additional aggregation once the partially aggregated results from the
partitions have been combined.

Author: David Rowley
Reviewed-by: Andres Freund, Tomas Vondra, Stephen Frost, Tom Lane
Discussion: https://postgr.es/m/CAKJS1f9sx_6GTcvd6TMuZnNtCh0VhBzhX6FZqw17TgVFH-ga_A@mail.gmail.com

Files

Documentation touched

Discussion