From: | Thom Brown <thom(at)linux(dot)com> |
---|---|
To: | Josh Berkus <josh(at)agliodbs(dot)com> |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Avoiding deadlocks ... |
Date: | 2010-08-20 08:50:20 |
Message-ID: | AANLkTin_yzA+FkzRbD6d2JoSGyJd==8JrtWPWXsEcfZa@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On 20 August 2010 09:39, Josh Berkus <josh(at)agliodbs(dot)com> wrote:
> On 8/19/10 3:51 PM, Josh Berkus wrote:
>> Kevin,
>>
>> This one is for you:
>>
>> Two sessions, in transaction:
>>
>> Process A Process B
>>
>> update session where id = X;
>> update order where orderid = 5;
>> update order where orderid = 5;
>> update order where orderid = 5;
>> ... deadlock error.
>
> Johto on IRC pointed out I left something out of the above: "session" is
> referenced in an FK by "orders", and session = X is related to orderid = 5.
>
I was wondering what that had to do with anything.
--
Thom Brown
Registered Linux user: #516935
From | Date | Subject | |
---|---|---|---|
Next Message | Marko Tiikkaja | 2010-08-20 09:09:40 | Re: Avoiding deadlocks ... |
Previous Message | Josh Berkus | 2010-08-20 08:39:44 | Re: Avoiding deadlocks ... |