Re: Logging Lock Waits - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Logging Lock Waits
Date
Msg-id 13794.1170203559@sss.pgh.pa.us
Whole thread Raw
In response to Logging Lock Waits  ("Simon Riggs" <simon@2ndquadrant.com>)
Responses Re: Logging Lock Waits  (Jim Nasby <decibel@decibel.org>)
List 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 by date:

Previous
From: Tom Lane
Date:
Subject: Re: parsenodes vs. primnodes
Next
From: David Fetter
Date:
Subject: Re: Modifying and solidifying contrib