Re:Postgres sequences can skip 32 unexpectedly
by garblegarble on Friday July 16, 2021 @02:46PM
(#27859736)
>We have an event in our ORM to automatically generate the next sequence value as part of the transaction so if the transaction is rolled back, the next sequence value is as well.
I assume that means you also have to only allow one TX to be in-flight at a time adding a new record whose ID is generated from a given sequence?
I assume that means you also have to only allow one TX to be in-flight at a time adding a new record whose ID is generated from a given sequence?