Postgres Select Ids Into Array Initialization And Declaration