Postgres Function Select Into Arraylist C