Using JDBC, I batch insert multiple rows ("executeBatch()"). I then use 'getGeneratedKeys("id")' to get the generated ids ("id" is a "SERIAL PRIMARY KEY" column).
My question: does the PostgreSQL JDBC driver guarantees that the order of the returned generated ids will be the same as the rows to insert have been specified, using "addBatch()"?
Чтобы сделать работу с сайтом удобнее, мы используем cookie и аналитический сервис «Яндекс.Метрика». Продолжая пользоваться сайтом, вы соглашаетесь с их использованием.