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

Re: pg_stat_database deadlock counter

From: Jaime Casanova <jaime(at)2ndquadrant(dot)com>
To: Magnus Hagander <magnus(at)hagander(dot)net>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: pg_stat_database deadlock counter
Date: 2012-01-22 18:35:19
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
On Mon, Jan 16, 2012 at 3:19 PM, Magnus Hagander <magnus(at)hagander(dot)net> wrote:
> Attached patch adds a counter for number of deadlocks in a database to
> pg_stat_database.

A little review:

- it applies with a few hunks
- the oid you have chosen for the function pg_stat_get_db_deadlocks()
is already in use, please choose another one using the unused_oids
script (3150)
- pg_stat_reset() doesn't reset deadlock counter (see

everything else seems fine to me

Jaime Casanova
Professional PostgreSQL: Soporte 24x7 y capacitación

In response to


pgsql-hackers by date

Next:From: Dimitri FontaineDate: 2012-01-22 18:53:39
Subject: Re: automating CF submissions (was xlog location arithmetic)
Previous:From: Andrew DunstanDate: 2012-01-22 16:43:34
Subject: Re: JSON for PG 9.2

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