Re: select for update

Поиск
Список
Период
Сортировка
От Kevin Grittner
Тема Re: select for update
Дата
Msg-id 4DB19DD1020000250003CC02@gw.wicourts.gov
обсуждение исходный текст
Ответ на select for update  (Craig James <craig_james@emolecules.com>)
Список pgsql-admin
Craig James <craig_james@emolecules.com> wrote:

> The sequence of operations goes like this (pseudo-code):

> The problem is that very occasionally the same ID will be issued
> twice.  I don't see how this can be.  Doesn't the "for update"
> guarantee that no other process can claim that same row?

I don't see a flaw in the pseudo-code (other than an apparent typo
on the insert).  Can you show the actual code?

-Kevin

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

Предыдущее
От: Craig James
Дата:
Сообщение: select for update
Следующее
От: Tom Lane
Дата:
Сообщение: Re: select for update