I\'m trying to get array_agg to work with an array type in Postgresql and I\'m having trouble figuring out if this is possible and if so how to do it. The perti
array_agg
or cast the array to text like array_agg(array[xxx, yyy]::text)
array_agg(ARRAY[e.alert_type::text, e.id::text, cast(extract(epoch from e.date_happened) as text)]::text order by e.date_happened asc, e.id asc)