Re: regression, deadlock in high frequency single-row UPDATE - Mailing list pgsql-bugs

From Peter Geoghegan
Subject Re: regression, deadlock in high frequency single-row UPDATE
Date
Msg-id CAM3SWZSLfYL-=A_ZcR-n3zaVCdnDak2Mziuf7-WpQfFD4Q22zQ@mail.gmail.com
Whole thread Raw
In response to Re: regression, deadlock in high frequency single-row UPDATE  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Responses Re: regression, deadlock in high frequency single-row UPDATE
List pgsql-bugs
On Fri, Dec 12, 2014 at 12:52 PM, Alvaro Herrera
<alvherre@2ndquadrant.com> wrote:
> Okay, I created a reproducer ... but it doesn't work.  I mean, the
> commands are fine: if I execute them manually in four sessions in an
> unpatched server I get a deadlock.  But isolationtester doesn't know to
> handle more than one blocked session, so it just hangs when the third
> session blocks after the second one is already blocked.  :-(

We need a stress-testing framework. I hacked together one for the ON
CONFLICT UPDATE patch (https://github.com/petergeoghegan/upsert), but
a more comprehensive effort is needed.

--
Peter Geoghegan

pgsql-bugs by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: regression, deadlock in high frequency single-row UPDATE
Next
From: Alvaro Herrera
Date:
Subject: Re: regression, deadlock in high frequency single-row UPDATE