]> granicus.if.org Git - postgresql/commit
Add some optional code (conditionally compiled under #ifdef LWLOCK_STATS)
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 21 Apr 2006 16:45:12 +0000 (16:45 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 21 Apr 2006 16:45:12 +0000 (16:45 +0000)
commitb5498a26deba8d3112dbf4da5375ccd9db4ff375
treef255da603b7c829cc21fbdbd67390e42df86224e
parentefe222268f39989b19b74d971becc19215b357d6
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.
src/backend/storage/lmgr/lwlock.c