Postgres Select Ids Into Array Initialization In C