| От | Bruno Wolff III |
|---|---|
| Тема | Re: Bug: Sequence generator insert |
| Дата | |
| Msg-id | 20031128213828.GA24904@wolff.to обсуждение исходный текст |
| Ответ на | Bug: Sequence generator insert ("Burr, Colin" <CBurr@herald.com>) |
| Список | pgsql-sql |
On Tue, Nov 25, 2003 at 18:37:41 -0500, "Burr, Colin" <CBurr@herald.com> wrote: > > However, even though the new record failed to be inserted into the table, > the sequence generator was still updated. > > The sequence generator should only be updated if the record is successfully > inserted into the table, and should not be updated if the insert fails. That isn't how sequences work. If you need a sequence of numbers without gaps then you need to use something else. Note that the something else will need to have a way to let only one transaction at a time update the counter which may be a performance problem.
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера