Re: upgrades in row-level locks can deadlock - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: upgrades in row-level locks can deadlock
Date
Msg-id 20190613213731.GA11593@alvherre.pgsql
Whole thread Raw
In response to Re: upgrades in row-level locks can deadlock  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Responses Re: upgrades in row-level locks can deadlock
List pgsql-hackers
On 2019-Jun-13, Alvaro Herrera wrote:

> On 2019-Jun-13, Oleksii Kliukin wrote:
> 
> > Makes sense. For the symmetry I have included those that perform lock
> > upgrades in one session and those that doesn’t, while the other sessions
> > acquire locks, do updates or deletes. For those that don’t upgrade locks the
> > test checks that the locks are acquired in the correct order.
> 
> Thanks for the updated patch!  I'm about to push to branches 9.6-master.
> It applies semi-cleanly (only pgindent-maturity whitespace conflicts).

Done, thanks for the report and patch!

I tried hard to find a scenario that this patch breaks, but couldn't
find anything.

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: release notes: tids & self-joins
Next
From: Tom Lane
Date:
Subject: Re: Hash join explain is broken