Postgres Function Select Into Arraylist Declaration