Re: Tracking down deadlocks - Mailing list pgsql-general

From Tom Lane
Subject Re: Tracking down deadlocks
Date
Msg-id 22762.1087401819@sss.pgh.pa.us
Whole thread Raw
In response to Tracking down deadlocks  (Ben <bench@silentmedia.com>)
List pgsql-general
Ben <bench@silentmedia.com> writes:
> I'm doing a bunch of data mining against a postgres database and have
> run into an interesting problem with deadlocks. The problem is,
> postgres is detecting them and then wacking the offending process, and
> I can't figure out what's causing them.

The processes involved in the deadlock should be identified in the
DETAIL message for the deadlock error.  Perhaps you are using client
code that doesn't show you the DETAIL?  If so, look in the postmaster
log.  You can correlate the process PIDs mentioned in the message to
pg_stat_activity.procpid.

            regards, tom lane

pgsql-general by date:

Previous
From: Ben
Date:
Subject: Re: Tracking down deadlocks
Next
From: Robert Fitzpatrick
Date:
Subject: Remembering values in pl/pgsql