Re: row-level deadlock problem - Mailing list pgsql-general

From Tom Lane
Subject Re: row-level deadlock problem
Date
Msg-id 20443.1101513866@sss.pgh.pa.us
Whole thread Raw
In response to row-level deadlock problem  (Kamil Kaczkowski <kamil@kamil.eisp.pl>)
Responses Re: row-level deadlock problem
List pgsql-general
Kamil Kaczkowski <kamil@kamil.eisp.pl> writes:
> I have problems with deadlocks caused by(at least I think so) row-level
> locks and I can't find the reason.

The failure seems clearly a deadlock on row-level locks.  Are you
certain you've removed all relevant FKs (those pointing to the table
as well as out of it)?  Another possible explanation is if the UPDATE
command can update more than one row --- in that case different backends
might happen to reach the target rows in different orders.

            regards, tom lane

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Bulk data insertion
Next
From: Kamil Kaczkowski
Date:
Subject: Re: row-level deadlock problem