Re: foreign key locks, 2nd attempt - Mailing list pgsql-hackers

From Simon Riggs
Subject Re: foreign key locks, 2nd attempt
Date
Msg-id CA+U5nMLAr1VoDsmkJFYvFk_GvW-bqVgQnTLzmAyzLFQhZM1W1Q@mail.gmail.com
Whole thread Raw
In response to Re: foreign key locks, 2nd attempt  (Gokulakannan Somasundaram <gokul007@gmail.com>)
Responses Re: foreign key locks, 2nd attempt  (Gokulakannan Somasundaram <gokul007@gmail.com>)
List pgsql-hackers
On Wed, Mar 7, 2012 at 10:18 AM, Gokulakannan Somasundaram
<gokul007@gmail.com> wrote:
>>
>> Insert, Update and Delete don't take locks they simply mark the tuples
>> they change with an xid. Anybody else wanting to "wait on the lock"
>> just waits on the xid. We do insert a lock row for each xid, but not
>> one per row changed.
>
> I mean the foreign key checks here. They take a Select for Share Lock right.
> That's what we are trying to optimize here. Or am i missing something? So by
> following the suggested methodology, the foreign key checks won't take any
> locks.

Please explain in detail your idea of how it will work.

--
 Simon Riggs                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services


pgsql-hackers by date:

Previous
From: Gokulakannan Somasundaram
Date:
Subject: Re: foreign key locks, 2nd attempt
Next
From: Gokulakannan Somasundaram
Date:
Subject: Re: foreign key locks, 2nd attempt