Re: Logging Lock Waits

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Logging Lock Waits
Дата
Msg-id 13794.1170203559@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Logging Lock Waits  ("Simon Riggs" <simon@2ndquadrant.com>)
Ответы Re: Logging Lock Waits  (Jim Nasby <decibel@decibel.org>)
Список pgsql-hackers
"Simon Riggs" <simon@2ndquadrant.com> writes:
> I'm thinking to write an INFO message, so that people can choose to log
> this and/or the SQL statement if they choose. 
> e.g. INFO: lock wait time of XXX secs has been exceeded

The available timer resources are already overloaded; adding an
independent timeout for this will complicate the code more than seems
justified.  Perhaps you could add a LOG message whenever the
deadlock-check code runs (and doesn't detect an error, so is about to go
back to sleep).  This would take almost no effort, and the granularity
could still be adjusted via the deadlock check timeout.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: parsenodes vs. primnodes
Следующее
От: David Fetter
Дата:
Сообщение: Re: Modifying and solidifying contrib