Postgres Function Select Into Array Initialization Cpp