]> granicus.if.org Git - postgresql/commit
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)
commit24d4517b3b98ad02a47cde09976fcdfd25778fc5
tree24780c7b0dd35d16358e4f81c2fb87b540ed786e
parentbaf3a134d9f2184907914acae0361154a0e63424
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