| От | Douglas McNaught |
|---|---|
| Тема | Re: sequence increment jumps? |
| Дата | |
| Msg-id | 87y7nqgbdo.fsf@suzuka.mcnaught.org обсуждение |
| Ответ на | Re: sequence increment jumps? (Benjamin Smith <lists@benjamindsmith.com>) |
| Ответы |
Re: sequence increment jumps?
|
| Список | pgsql-general |
Benjamin Smith <lists@benjamindsmith.com> writes: > On Thursday 25 January 2007 09:53, Douglas McNaught wrote: >> Nature of the beast. Sequence increments aren't rolled back on >> transaction abort (for performance and concurrency reasons), so you >> should expect gaps. > > Behavior long ago noted and accounted for. But I've always wondered why this > was so? Is there a specific reason for this behavior? Being able to roll back a sequence increment would require locking the sequence for the duration of the transaction, which would kill concurrency. -Doug
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера