More log detail on deadlock detection

Поиск
Список
Период
Сортировка
От Burcher, Greg
Тема More log detail on deadlock detection
Дата
Msg-id 486C9312BAA03A49AB752011C85A275005CF3409@RTPMVEXC1-PRD.hq.netapp.com
обсуждение исходный текст
Список pgsql-general

I am looking for help in debugging a deadlock situation that occurs intermittently. I am aware of queries that I can use against system tables/views such as pg_locks and pg_stat_activity to get good information about current process statements and locks. However, by the time postgresql reports deadlock detection, the deadlock loser has already been selected and the deadlock has been resolved. Thus, the locks that caused the deadlock are now released.

 

Is there any way to get complete statement/lock information as of the time of deadlock, before postgresql resolves the deadlock? The current log for deadlock reports the last statement for both processes, but not the granted locks for the processes that caused those statements to deadlock.

 

Thanks,

 

Greg Burcher

burcher@netapp.com

 

 

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

Предыдущее
От: pasman pasmański
Дата:
Сообщение: Re: Multithreaded query onto 4 postgresql instances
Следующее
От: Allan Kamau
Дата:
Сообщение: Re: Multithreaded query onto 4 postgresql instances