pgsql: Add deadlock counter to pg_stat_database

From: Magnus Hagander <magnus(at)hagander(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Add deadlock counter to pg_stat_database
Date: 2012-01-26 15:01:21
Message-ID: E1RqQpF-0006pR-SE@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Add deadlock counter to pg_stat_database

Adds a counter that tracks number of deadlocks that occurred in
each database to pg_stat_database.

Magnus Hagander, reviewed by Jaime Casanova

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/61cb8c5abb9235c3106af6c6a6e60d94cb1eee80

Modified Files
--------------
doc/src/sgml/monitoring.sgml | 12 ++++++++-
src/backend/catalog/system_views.sql | 1 +
src/backend/postmaster/pgstat.c | 43 ++++++++++++++++++++++++++++++++-
src/backend/storage/lmgr/deadlock.c | 2 +
src/backend/utils/adt/pgstatfuncs.c | 16 ++++++++++++
src/include/catalog/catversion.h | 2 +-
src/include/catalog/pg_proc.h | 2 +
src/include/pgstat.h | 19 +++++++++++++-
src/test/regress/expected/rules.out | 2 +-
9 files changed, 91 insertions(+), 8 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Magnus Hagander 2012-01-26 15:02:59 pgsql: Fix a copy/pasted typo in several comments
Previous Message Robert Haas 2012-01-26 14:40:13 pgsql: Classify DROP operations by whether or not they are user-initiat