Add some optional code (conditionally compiled under #ifdef LWLOCK_STATS)
Tom Lane <tgl@sss.pgh.pa.us>
Add some optional code (conditionally compiled under #ifdef LWLOCK_STATS) to track the number of LWLock acquisitions and the number of times we block waiting for an LWLock, on a per-process basis. After having needed this twice in the past few months, seems like it should go into CVS.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/storage/lmgr/lwlock.c | modified | +58 −1 |