Postgres Select Ids Into Array Meaning In Math