Re: Deadlock situation?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Deadlock situation?
Дата
Msg-id 12364.1209522006@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Deadlock situation?  ("Dan Armbrust" <daniel.armbrust.list@gmail.com>)
Ответы Re: Deadlock situation?  ("Dan Armbrust" <daniel.armbrust.list@gmail.com>)
Список pgsql-general
"Dan Armbrust" <daniel.armbrust.list@gmail.com> writes:
> I had to restart postgres to let things recover - so I can't gather
> any more info right now - but if/when it happens again, I'd like to
> know what else to gather.

Well, there went the evidence :-( ... but what exactly did you have
to do to shut it down?  I'm wondering whether the backends responded
to SIGINT or SIGTERM.

Next time, it'd be good to confirm (with top or vmstat or similar)
whether the backends are actually idle or are eating CPU or I/O.
Also try strace'ing a few of them; the pattern of kernel calls if
any would be revealing.

The lack of deadlock reports or 't' values in pg_stat_activity.waiting
says that you weren't blocking on heavyweight locks.  It's not
impossible that there was a deadlock at the LWLock level, though.

What sort of indexes are there on this table?  Teodor just fixed
an issue in GIN indexes that involved taking an unreasonable number of
LWLocks, and if that code wasn't exposing itself to deadlock risks
I'd be pretty surprised.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Character Data Type 'Name'
Следующее
От: seijin@gmail.com
Дата:
Сообщение: Re: String Comparison and NULL