Improve behavior of log_lock_waits patch. Ensure that something gets logged
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 28 Aug 2007 03:23:44 +0000 (03:23 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 28 Aug 2007 03:23:44 +0000 (03:23 +0000)
commit55582b6c8044b486579d40ab9a48caaa4820b6fe
treec77e490a2f3e4b14bfe6552132e9330c296cd0a1
parenta25199f7c6f89ed00ee94318092d7f93d086c9c0
Improve behavior of log_lock_waits patch.  Ensure that something gets logged
even if the "deadlock detected" ERROR message is suppressed by an exception
catcher.  Be clearer about the event sequence when a soft deadlock is fixed:
the fixing process might or might not still have to wait, so log that
separately.  Fix race condition when someone releases us from the lock partway
through printing all this junk --- we'd not get confused about our state, but
the log message sequence could have been misleading, ie, a "still waiting"
message with no subsequent "acquired" message.  Greg Stark and Tom Lane.
src/backend/storage/lmgr/proc.c