pgsql: When LWLOCK_STATS is defined, count spindelays. - Mailing list pgsql-committers

From Robert Haas
Subject pgsql: When LWLOCK_STATS is defined, count spindelays.
Date
Msg-id E1Sjc1e-000367-Hl@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
When LWLOCK_STATS is defined, count spindelays.

When LWLOCK_STATS is *not* defined, the only change is that
SpinLockAcquire now returns the number of delays.

Patch by me, review by Jeff Janes.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/b79ab00144e64217d418fde884bca8ea58fbd4a4

Modified Files
--------------
src/backend/storage/lmgr/lwlock.c |   12 +++++++++---
src/backend/storage/lmgr/s_lock.c |    3 ++-
src/include/storage/s_lock.h      |   10 ++++------
3 files changed, 15 insertions(+), 10 deletions(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Cope with smaller-than-normal BLCKSZ setting in SPGiST indexes o
Next
From: Robert Haas
Date:
Subject: pgsql: Allow pg_terminate_backend() to be used on backends with matchin