Postgres Function Select Into Arraylist Remove