Re: deadlock problem

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: deadlock problem
Дата
Msg-id 25779.1014682431@sss.pgh.pa.us
обсуждение исходный текст
Ответ на deadlock problem  (Dustin Sallings <dustin+pgsql@spy.net>)
Ответы Re: deadlock problem
Список pgsql-general
Dustin Sallings <dustin+pgsql@spy.net> writes:
>     It's not clear to me why this should deadlock.  I don't believe
> any of the async log events that were being recorded were referencing the
> new ID (and if they were, I'd think they'd fire an RI violation).

When you insert a new row into a table that has RI references, the
referenced rows in the other table are locked down with SELECT FOR
UPDATE locks (to ensure they won't be deleted before your own
transaction can commit).  I am not sure that this could explain your
deadlock, but it seems like the first place to look.

            regards, tom lane

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

Предыдущее
От: Jason Earl
Дата:
Сообщение: Re: scaling a database
Следующее
От: Dustin Sallings
Дата:
Сообщение: Re: deadlock problem