Avoiding deadlocks ...

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема Avoiding deadlocks ...
Дата
Msg-id 4C6DB584.8090004@agliodbs.com
обсуждение исходный текст
Ответы Re: Avoiding deadlocks ...  (Josh Berkus <josh@agliodbs.com>)
Re: Avoiding deadlocks ...  (Greg Stark <gsstark@mit.edu>)
Список pgsql-hackers
Kevin,

This one is for you:

Two sessions, in transaction:

Process A        Process B

update session where id = X;        update order where orderid = 5;
update order where orderid = 5;        update order where orderid = 5;
... deadlock error.

It seems like we ought to be able to avoid a deadlock in this case;
there's a clear precedence of who grabbed the order row first.  Does
your serializability patch address the above situation at all?

--                                  -- Josh Berkus                                    PostgreSQL Experts Inc.
                        http://www.pgexperts.com
 


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [BUGS] COPY FROM/TO losing a single byte of a multibyte UTF-8 sequence
Следующее
От: Quan Zongliang
Дата:
Сообщение: Re: Fw: patch for pg_ctl.c to add windows service start-type