return the inserted ids for postgres bulk insert