Postgres Aggregate Into Array Initialization Cpp