deadlocks in multiple-triggers environment

Поиск
Список
Период
Сортировка
От hubert depesz lubaczewski
Тема deadlocks in multiple-triggers environment
Дата
Msg-id 9e4684ce05060808453f6b9cdd@mail.gmail.com
обсуждение исходный текст
Ответы Re: deadlocks in multiple-triggers environment  (Alvaro Herrera <alvherre@surnet.cl>)
Список pgsql-general
hi
i have a stituation a situation where i have multiple tables, and multiple triggers on all of them.
at least 1 or 2 triggers on at lease 4 different tables does updates to main cache table.

now.
i have tasks which involve simultaneously (from different machines even) modifying all of the "source" tables.
and i get some deadlocks.
what is the best way to fight deadlocks?
how to find exactly what happened deadlock - which command, which trigger, which function?
how to avoid them (deadlocks).
i can't lock all tables for update, because they happen constantly.

any clues?
pointers? urls?

depesz

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

Предыдущее
От: Dan Black
Дата:
Сообщение: Foreign keys and slow insert
Следующее
От: Richard Huxton
Дата:
Сообщение: Re: Bug with view definition?