Postgres Select Ids Into Array In Cpp