Re: group locking: incomplete patch, just for discussion - Mailing list pgsql-hackers

From Robert Haas
Subject Re: group locking: incomplete patch, just for discussion
Date
Msg-id CA+TgmoZD-Vu4P-L6c1fVjdQDzq978pEvQkbkK0NnEtXSZDpdZw@mail.gmail.com
Whole thread Raw
In response to Re: group locking: incomplete patch, just for discussion  (Jeff Davis <pgsql@j-davis.com>)
List pgsql-hackers
On Thu, Nov 13, 2014 at 2:26 AM, Jeff Davis <pgsql@j-davis.com> wrote:
> The current deadlock detector would see a dependency graph like:
>
>    A2 -> B -> A1
>
> But with lock groups, it would see:
>
>    (A1 A2) -> B -> (A1 A2)
>
> which is a cycle, and can be detected regardless of the synchronization
> method used between A1 and A2. There are some details to work out to
> avoid false positives, of course.
>
> Is that about right?

Yep.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: Add CREATE support to event triggers
Next
From: Andres Freund
Date:
Subject: Re: Add CREATE support to event triggers