Re: Tweaking Foreign Keys for larger tables

From: Andreas Karlsson <andreas(at)proxel(dot)se>
To: Simon Riggs <simon(at)2ndQuadrant(dot)com>, Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
Cc: Peter Eisentraut <peter_e(at)gmx(dot)net>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Tweaking Foreign Keys for larger tables
Date: 2014-11-07 10:47:11
Message-ID: 545CA32F.40001@proxel.se
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Etsuro Fujita 2014-11-07 12:01:38 Re: inherit support for foreign tables
Previous Message Etsuro Fujita 2014-11-07 08:17:36 Re: inherit support for foreign tables