Re: some question about deadlock

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: some question about deadlock
Дата
Msg-id 14853.1148919395@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: some question about deadlock  ("ipig" <ipig@ercist.iscas.ac.cn>)
Список pgsql-hackers
"ipig" <ipig@ercist.iscas.ac.cn> writes:
>    In your example, it seems that process B is the first such waiter( the request of B conflicts AccessShareLock).

No.  Better go study
http://developer.postgresql.org/docs/postgres/explicit-locking.html#LOCKING-TABLES

After looking at the example again, consider the further assumption
that C already has AccessShareLock (which is certainly a valid
configuration).  Then A *must* queue between C and D; there is no
other valid order to grant the requests in.
        regards, tom lane


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

Предыдущее
От: "ipig"
Дата:
Сообщение: Re: some question about deadlock
Следующее
От: "Mark Cave-Ayland"
Дата:
Сообщение: Proposal for debugging of server-side stored procedures