Re: Tracking row updates - race condition

Поиск
Список
Период
Сортировка
От Harald Fuchs
Тема Re: Tracking row updates - race condition
Дата
Msg-id pur7hyr8zh.fsf@srv.protecting.net
обсуждение исходный текст
Ответ на Tracking row updates - race condition  (Alex Adriaanse <alex@alexandcarmen.com>)
Ответы Re: Tracking row updates - race condition  (Alex Adriaanse <alex@alexandcarmen.com>)
Список pgsql-general
In article <4248E1AE.8090404@alexandcarmen.com>,
Alex Adriaanse <alex@alexandcarmen.com> writes:

> Thanks for the input everyone.  I think Harald's approach will work
> well...

I'm not so sure anymore :-(

Consider something like that:

UPDATE tbl SET col1 = 1 WHERE col2 = 1;
UPDATE tbl SET col1 = 2 WHERE col2 = 1;

with not much time inbetween.  By using NULL temporarily, you destroy
the ordering.  The client won't miss an UPDATE, but it might execute
the second one before the first.  Neither my nor your idea appear to
take care of that.

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

Предыдущее
От: Sim Zacks
Дата:
Сообщение: Re: plpython function problem workaround
Следующее
От: "DanishLuxury@gmx.net"
Дата:
Сообщение: unsubscribe