Re: autovacuum process blocks without reporting a deadlock

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: autovacuum process blocks without reporting a deadlock
Дата
Msg-id 23210.1196183653@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: autovacuum process blocks without reporting a deadlock  ("Thomas Chille" <thomas@chille.de>)
Список pgsql-general
"Thomas Chille" <thomas@chille.de> writes:
> 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?

Well, you're certainly risking deadlock with that; and even if no
actual deadlock happens, waiting for the exclusive lock needed to
do the ALTER can cause the kind of lock queueing you had here.

I'd suggest trying to think of a way to solve your problem that doesn't
need trigger enabling/disabling.

            regards, tom lane

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

Предыдущее
От: Gregory Stark
Дата:
Сообщение: Re: Why LIMIT and OFFSET are commutative
Следующее
От: "Scott Marlowe"
Дата:
Сообщение: Re: System Load analyze