Re: deadlock with vacuum full on 7.4.5

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: deadlock with vacuum full on 7.4.5
Дата
Msg-id 7833.1097620064@sss.pgh.pa.us
обсуждение исходный текст
Ответ на deadlock with vacuum full on 7.4.5  (Joseph Shraibman <jks@selectacast.net>)
Ответы Re: deadlock with vacuum full on 7.4.5  (Joseph Shraibman <jks@selectacast.net>)
Re: deadlock with vacuum full on 7.4.5  (jks@selectacast.net)
Список pgsql-general
Joseph Shraibman <jks@selectacast.net> writes:
> Last night one of these vacuum fulls deadlocked with a query on this
> table.  Both were stuck doing nothing until I did a kill -INT on the
> backends doing the vacuum.

> So my questions:
> 1) What can I do to avoid this?
> 2) What do I do next time this happens to get more debugging info out of
> the situation?

Look in pg_locks and pg_stat_activity.

I think it is highly unlikely that there was a deadlock inside the
database.  Far more likely that both jobs were waiting on some
idle-in-transaction client whose transaction was holding a lock
on the table.

            regards, tom lane

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

Предыдущее
От: Joseph Shraibman
Дата:
Сообщение: deadlock with vacuum full on 7.4.5
Следующее
От: Steve Wolfe
Дата:
Сообщение: error opening pg_clog file