> To implement it, a new array can be added in the local process memory
> to hold lwlock statistics, and update counters both in the shared
> memory and the local process memory at once. Then, the session can
> retrieve 'per-session' statistics from the local process memory
> via some dedicated function.
That would be way cool from a diagnostics perspective. Not sure what
impact it has, though.
--
Josh Berkus
PostgreSQL Experts Inc.
http://pgexperts.com