Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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(-)

pgsql-committers by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group