Postgres Select Ids Into Array Initialization