Postgresql Array Agg Without Group By In R