Re: detecting deadlocks

Поиск
Список
Период
Сортировка
От Martijn van Oosterhout
Тема Re: detecting deadlocks
Дата
Msg-id 20020123132253.A29319@svana.org
обсуждение исходный текст
Ответ на Re: detecting deadlocks  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
On Tue, Jan 22, 2002 at 07:25:02PM -0500, Tom Lane wrote:
> SQL from other backends isn't readily available, and showing it would
> create security issues anyway (eg, could expose sensitive data values
> to someone who doesn't have the right to see 'em).  About the only thing
> that we could provide given the current shared-memory datastructures is
> the PID of each backend involved in the deadlock cycle.  This'd be
> somewhat useful, I guess, but not really a direct indicator of which
> command was being executed.

If the SQL queries are being logged, then the PID would be enough to find
the query in the logfile. Come to think of it though, if the deadlock
message is logged, then it would include the PID anyway...
--
Martijn van Oosterhout <kleptog@svana.org>
http://svana.org/kleptog/
> Terrorists can only take my life. Only my government can take my freedom.

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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: detecting deadlocks
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: sql scripts