Re: group locking: incomplete patch, just for discussion

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Jeff Davis <pgsql(at)j-davis(dot)com>
Cc: "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>, Andres Freund <andres(at)2ndquadrant(dot)com>
Subject: Re: group locking: incomplete patch, just for discussion
Date: 2014-11-13 12:20:19
Message-ID: CA+TgmoZD-Vu4P-L6c1fVjdQDzq978pEvQkbkK0NnEtXSZDpdZw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, Nov 13, 2014 at 2:26 AM, Jeff Davis <pgsql(at)j-davis(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2014-11-13 12:45:17 Re: Add CREATE support to event triggers
Previous Message Robert Haas 2014-11-13 12:17:32 Re: Add CREATE support to event triggers