Postgres Function Select Into Arraylist Cannot Be Resolved