Re: Deadlock bug - Mailing list pgsql-hackers

From Greg Stark
Subject Re: Deadlock bug
Date
Msg-id AANLkTim5cWMkEq_CBVNFOdrFrrYwQ7o792MyvDZk36a8@mail.gmail.com
Whole thread Raw
In response to Re: Deadlock bug  (Simon Riggs <simon@2ndQuadrant.com>)
List pgsql-hackers
On Wed, Aug 25, 2010 at 3:20 PM, Simon Riggs <simon@2ndquadrant.com> wrote:
>> FK constraints can also point to non-PK UNIQUE columns.
>
> You're exactly correct and I now understand Markus' comment. Do you
> think that exact meaning prevents my proposal from being useful?
>

I think it just shows it needs more thought. Do we want the nodelete locks to
prevent updates to any unique keys? Or to specify the specific unique
key that it's concerned with? Can we allow multiple nodelete locks on
different keys?

I'm concerned about the proliferation of special types of locks too.
Having lots of different lock types tends to create more deadlocks
rather than eliminate them so this requires some careful analysis of
the interaction with all the other types of locks.

And most importantly :) I don't like the name "nodelete". Maybe "record
pins"? Or "keep locks"?

-- 
greg


pgsql-hackers by date:

Previous
From: Nicolas Barbier
Date:
Subject: Re: Deadlock bug
Next
From: Tom Lane
Date:
Subject: Re: Deadlock bug