Re: adding foreign key constraint locks up table

From: Gurjeet Singh <singh(dot)gurjeet(at)gmail(dot)com>
To: Kevin Grittner <Kevin(dot)Grittner(at)wicourts(dot)gov>
Cc: kakarukeys <kakarukeys(at)gmail(dot)com>, pgsql-performance(at)postgresql(dot)org
Subject: Re: adding foreign key constraint locks up table
Date: 2010-12-28 14:56:19
Message-ID: AANLkTi=2oiDu-C_61c8OFkDQe42NA+C+2AZ=mVkAFu2L@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On Tue, Dec 28, 2010 at 9:43 AM, Kevin Grittner <Kevin(dot)Grittner(at)wicourts(dot)gov
> wrote:

> Gurjeet Singh <singh(dot)gurjeet(at)gmail(dot)com> wrote:
>
> > how many rows does "bbb" have? And what are the data types of
> > column aaa.idand bbb.topic_id?
>
> For that matter, is there a unique index (directly or as the result
> of a constraint) on the aaa.id column (by itself)?
>
>
Isn't it a requirement that the FKey referenced columns be UNIQUE or PRIMARY
KEY'd already?

Regards,
--
gurjeet.singh
@ EnterpriseDB - The Enterprise Postgres Company
http://www.EnterpriseDB.com

singh(dot)gurjeet(at){ gmail | yahoo }.com
Twitter/Skype: singh_gurjeet

Mail sent from my BlackLaptop device

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Florian Weimer 2010-12-28 14:57:14 Re: adding foreign key constraint locks up table
Previous Message Kevin Grittner 2010-12-28 14:43:49 Re: adding foreign key constraint locks up table