Postgres Select Ids Into Array Initialization Python Interview