Postgres Function Select Into Arraylist To Array