]> granicus.if.org Git - postgresql/commit
Provide much better wait information in pg_stat_activity.
authorRobert Haas <rhaas@postgresql.org>
Thu, 10 Mar 2016 17:44:09 +0000 (12:44 -0500)
committerRobert Haas <rhaas@postgresql.org>
Thu, 10 Mar 2016 17:44:09 +0000 (12:44 -0500)
commit53be0b1add7064ca5db3cd884302dfc3268d884e
tree913271b90f5a41778fe5bdbe2ac200c785dd6778
parenta3a8309d450f7c4d1b743e84ba54ef5f7877d7be
Provide much better wait information in pg_stat_activity.

When a process is waiting for a heavyweight lock, we will now indicate
the type of heavyweight lock for which it is waiting.  Also, you can
now see when a process is waiting for a lightweight lock - in which
case we will indicate the individual lock name or the tranche, as
appropriate - or for a buffer pin.

Amit Kapila, Ildus Kurbangaliev, reviewed by me.  Lots of helpful
discussion and suggestions by many others, including Alexander
Korotkov, Vladimir Borodin, and many others.
24 files changed:
doc/src/sgml/monitoring.sgml
src/backend/access/transam/xact.c
src/backend/bootstrap/bootstrap.c
src/backend/catalog/system_views.sql
src/backend/postmaster/bgwriter.c
src/backend/postmaster/checkpointer.c
src/backend/postmaster/pgstat.c
src/backend/postmaster/walwriter.c
src/backend/replication/walsender.c
src/backend/storage/buffer/bufmgr.c
src/backend/storage/lmgr/lmgr.c
src/backend/storage/lmgr/lock.c
src/backend/storage/lmgr/lwlock.c
src/backend/storage/lmgr/proc.c
src/backend/utils/adt/lockfuncs.c
src/backend/utils/adt/pgstatfuncs.c
src/include/catalog/catversion.h
src/include/catalog/pg_proc.h
src/include/pgstat.h
src/include/storage/lmgr.h
src/include/storage/lock.h
src/include/storage/lwlock.h
src/include/storage/proc.h
src/test/regress/expected/rules.out