Re: troubleshooting deadlocks - Mailing list pgsql-general

From Ed L.
Subject Re: troubleshooting deadlocks
Date
Msg-id 200411091348.11789.pgsql@bluepolka.net
Whole thread Raw
In response to Re: troubleshooting deadlocks  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
On Tuesday November 9 2004 10:36, Tom Lane wrote:
> "Ed L." <pgsql@bluepolka.net> writes:
> > I know the original statement is printed right after this, but with
> > complex triggers doing lots of write queries, I'm finding it difficult
> > to identify which subsequent query in the trigger is really the one
> > immediately preceding the deadlock.  It would be helpful in debugging
> > if the error message included info on which tables are involved, maybe
> > even the deadlocking query itself, in the "DETAIL" output for future
> > releases.
>
> I suppose the problem here has to do with conflicting SELECT FOR UPDATEs
> from foreign-key references.

That appears to be the issue.  We upgraded to 7.4.6 (thanks to slony,
production downtime was minimal), then used 7.4.6 debug output to track
relations, then guessed on fkey references, dropped them, and viola, no
more deadlock.

Thanks,
Ed


pgsql-general by date:

Previous
From: Greg Stark
Date:
Subject: Re: server auto-restarts and ipcs
Next
From: Greg Stark
Date:
Subject: Re: server auto-restarts and ipcs