Code review for log_lock_waits patch. Don't try to issue log messages from
Tom Lane <tgl@sss.pgh.pa.us>
Code review for log_lock_waits patch. Don't try to issue log messages from within a signal handler (this might be safe given the relatively narrow code range in which the interrupt is enabled, but it seems awfully risky); do issue more informative log messages that tell what is being waited for and the exact length of the wait; minor other code cleanup. Greg Stark and Tom Lane
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/config.sgml | modified | +13 −6 |
| src/backend/storage/lmgr/deadlock.c | modified | +14 −92 |
| src/backend/storage/lmgr/lmgr.c | modified | +77 −1 |
| src/backend/storage/lmgr/proc.c | modified | +109 −47 |
| src/backend/utils/misc/guc.c | modified | +4 −3 |
| src/include/storage/lmgr.h | modified | +5 −1 |
| src/include/storage/lock.h | modified | +7 −5 |