Re: Tweaking Foreign Keys for larger tables - Mailing list pgsql-hackers

From Andreas Karlsson
Subject Re: Tweaking Foreign Keys for larger tables
Date
Msg-id 545CA32F.40001@proxel.se
Whole thread Raw
In response to Re: Tweaking Foreign Keys for larger tables  (Simon Riggs <simon@2ndQuadrant.com>)
List pgsql-hackers
On 11/07/2014 08:15 AM, Simon Riggs wrote:
> How about we set lock level on each Foreign Key like this
>
> [USING LOCK [lock level]]
>
> level is one of
> KEY - [FOR KEY SHARE] - default
> ROW -  [FOR SHARE]
> TABLE SHARE - [ ]
> TABLE EXCLUSIVE - [FOR TABLE EXCLUSIVE]

I like the idea and thinks it solves the problem in a pretty neat way, 
but I do not see any practical need for other levels than the highest 
and the lowest of those.

Andreas




pgsql-hackers by date:

Previous
From: Etsuro Fujita
Date:
Subject: Re: inherit support for foreign tables
Next
From: Etsuro Fujita
Date:
Subject: Re: inherit support for foreign tables