Postgres Function Select Into Array On Apache