Re: [GENERAL] 6.5.1 possibly lost rows

Поиск
Список
Период
Сортировка
От James Thompson
Тема Re: [GENERAL] 6.5.1 possibly lost rows
Дата
Msg-id Pine.LNX.4.10.9907291546290.3417-100000@hobbes.math.ksu.edu
обсуждение исходный текст
Ответ на 6.5.1 possibly lost rows  (Brian Curnow <bcurnow@sonnet.com>)
Список pgsql-general
On Thu, 29 Jul 1999, Brian Curnow wrote:
>
> 1)  An INSERT statement that fails before completion can still use up a
> sequence #

I'm thinking this is what happened.  It seems to me postgresql would need
to read the sequence value generator before it could perform the insert.
Once a sequence generator is read it immediately increments. There is no
way to roll that back due to the fact that other processes could have read
the sequence generator after your process did and incremented it even
further.

->->->->->->->->->->->->->->->->->->---<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<
James Thompson    138 Cardwell Hall  Manhattan, Ks   66506    785-532-0561
Kansas State University                          Department of Mathematics
->->->->->->->->->->->->->->->->->->---<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<




В списке pgsql-general по дате отправления:

Предыдущее
От: Brian Curnow
Дата:
Сообщение: 6.5.1 possibly lost rows
Следующее
От: David HM Spector
Дата:
Сообщение: PG95 module for Apache1.3.x..?