Postgres Flatten Array Numpy Random Documentation