postgres rows to array. . The UNNEST function takes a column of type a