Postgres Function Select Into Array Definition