Re: pg_stat_lwlocks view - lwlocks statistics
Josh Berkus <josh@agliodbs.com>
From: Josh Berkus <josh@agliodbs.com>
To: Satoshi Nagayasu <snaga@uptime.jp>
Cc: pgsql-hackers@postgresql.org
Date: 2012-06-26T17:41:11Z
Lists: pgsql-hackers
> 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