Re: adding foreign key constraint locks up table - Mailing list pgsql-performance

From Gurjeet Singh
Subject Re: adding foreign key constraint locks up table
Date
Msg-id AANLkTi=2oiDu-C_61c8OFkDQe42NA+C+2AZ=mVkAFu2L@mail.gmail.com
Whole thread Raw
In response to Re: adding foreign key constraint locks up table  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
Responses Re: adding foreign key constraint locks up table  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
List pgsql-performance
On Tue, Dec 28, 2010 at 9:43 AM, Kevin Grittner <Kevin.Grittner@wicourts.gov> wrote:
Gurjeet Singh <singh.gurjeet@gmail.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.gurjeet@{ gmail | yahoo }.com
Twitter/Skype: singh_gurjeet

Mail sent from my BlackLaptop device

pgsql-performance by date:

Previous
From: Florian Weimer
Date:
Subject: Re: adding foreign key constraint locks up table
Next
From: Gurjeet Singh
Date:
Subject: Re: adding foreign key constraint locks up table