On 8.4.0 I found that array_agg does not return a value when fed more
than 12,000 values. (12,000 worked and 13,000 did not.)
Probably not a big deal because its not something you would typically
do. I was testing something else and ran into it. But if there is a
limit there, we should probably document it.
Scott Bailey