Order of bulk insertion in SOCI/Postgresql

154 views Asked by At

I am inserting records into a Postgresql table using the bulk insertion capability of SOCI C++ library. The data is passed to SOCI in std::vectors and the table contains an automatic counter of SERIAL type. I expected that the records will be inserted in the same order that they take in the vectors, but the counter is telling me that they seem to be inserted in the opposite order. Can anyone confirm this? Can I rely on this behavior or no order preservation is guaranteed? Is this up to SOCI or Postgresql?

0

There are 0 answers