Re: "deadlock detected" documentation - Mailing list pgsql-sql

From Tom Lane
Subject Re: "deadlock detected" documentation
Date
Msg-id 10286.1053018824@sss.pgh.pa.us
Whole thread Raw
In response to Re: "deadlock detected" documentation  (Matt Mello <alien@spaceship.com>)
Responses Re: "deadlock detected" documentation
List pgsql-sql
Matt Mello <alien@spaceship.com> writes:
> I see.  One item I forgot to mention ...  Both update statements have a 
> where clause containing txn.terminalid=38.  Txn.terminalid is a foreign 
> key column in that table (txn.terminalid->terminal.terminalid).  Could 
> this be the source of the trouble?

Not per se.  The problem depends on which rows get updated and in what
sequence --- the contents of the WHERE clause aren't the issue, except
insofar as they determine the set of rows to be updated.
        regards, tom lane


pgsql-sql by date:

Previous
From: Matt Mello
Date:
Subject: Re: "deadlock detected" documentation
Next
From: Stephan Szabo
Date:
Subject: Re: Inquiry From Form [pgsql]