Postgres Select Ids Into Array Definition In C