]> granicus.if.org Git - postgresql/commit
Add deadlock counter to pg_stat_database
authorMagnus Hagander <magnus@hagander.net>
Thu, 26 Jan 2012 14:58:19 +0000 (15:58 +0100)
committerMagnus Hagander <magnus@hagander.net>
Thu, 26 Jan 2012 14:58:19 +0000 (15:58 +0100)
commit61cb8c5abb9235c3106af6c6a6e60d94cb1eee80
treea15bff3458b883beee010a9cc111e2c3b63bbf51
parent0e549697d1c6b8eeb623c497dc38a5aed4deea1e
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
doc/src/sgml/monitoring.sgml
src/backend/catalog/system_views.sql
src/backend/postmaster/pgstat.c
src/backend/storage/lmgr/deadlock.c
src/backend/utils/adt/pgstatfuncs.c
src/include/catalog/catversion.h
src/include/catalog/pg_proc.h
src/include/pgstat.h
src/test/regress/expected/rules.out