Re: autovacuum process blocks without reporting a deadlock

Поиск
Список
Период
Сортировка
Искать
От
Thomas Chille
Тема
Re: autovacuum process blocks without reporting a deadlock
Дата
Msg-id
cad2de1c0711270822g14db7d02m454930ea2abf4316@mail.gmail.com
Ответ на
Список
Дерево обсуждения
autovacuum process blocks without reporting a deadlock "Thomas Chille" <thomas.chille@gmail.com>
Re: autovacuum process blocks without reporting a deadlock Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: autovacuum process blocks without reporting a deadlock "Thomas Chille" <thomas@chille.de>
Re: autovacuum process blocks without reporting a deadlock Tom Lane <tgl@sss.pgh.pa.us>
Re: autovacuum process blocks without reporting a deadlock "Thomas Chille" <thomas@chille.de>
Re: autovacuum process blocks without reporting a deadlock Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: autovacuum process blocks without reporting a deadlock "Thomas Chille" <thomas@chille.de>
Re: autovacuum process blocks without reporting a deadlock Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: autovacuum process blocks without reporting a deadlock Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: autovacuum process blocks without reporting a deadlock "Thomas Chille" <thomas@chille.de>
Re: autovacuum process blocks without reporting a deadlock Tom Lane <tgl@sss.pgh.pa.us>
Re: autovacuum process blocks without reporting a deadlock "Thomas Chille" <thomas@chille.de>
Re: autovacuum process blocks without reporting a deadlock Tom Lane <tgl@sss.pgh.pa.us>
On Nov 27, 2007 4:52 PM, Tom Lane  wrote:
> You didn't happen to note what 9293 was doing did you?  It's living
> fairly dangerously in any case by trying to acquire exclusive lock
> when it already holds a bunch of other lower-level locks; that's a
> recipe for deadlock if I ever saw one.
>
>                         regards, tom lane
>

Ah ok, 9293 is a triggerd process and tries to "ALTER TABLE ...
DISABLE TRIGGER (other trigger)" and so implicitly tries to acquire an
AccessExclusiveLock and runs in a deadlock?

So is better not to use "ALTER TABLE ... " in triggerfunctions,
because there are always existing lower-level locks?

regards,
thomas
В списке pgsql-general по дате отправления
От: xeb@mail.ru
Дата:
От: Lew
Дата:
FAQ