Using array_agg in Postgres – powerful and flexible | Hacker News Reader