Re: detecting deadlocks

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Jonathan Ellis" <jbe(at)familyellis(dot)org>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: detecting deadlocks
Date: 2002-01-22 17:38:48
Message-ID: 15926.1011721128@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Jonathan Ellis" <jbe(at)familyellis(dot)org> writes:
> I get this logged
> logger: ERROR: Deadlock detected.
> logger: ^ISee the lock(l) manual page for a possible cause.

> but that's kind of useless to actually fix the problem. Is there a way to
> get it to log which two transactions are deadlocking?

Well, one of them is the one that died ;-).

I think we could persuade the lock manager to return more info than it
does now, but I'm not sure how to translate the low-level info (backend
IDs and lock tags) into something useful to a user. How would you want
the other transactions to be identified?

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bruce Momjian 2002-01-22 17:40:23 Re: 7.1.3 -> 7.2
Previous Message Jeffrey W. Baker 2002-01-22 17:38:17 Re: 7.1.3 -> 7.2