Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-performance by date

Next:From: Florian WeimerDate: 2010-12-28 14:57:14
Subject: Re: adding foreign key constraint locks up table
Previous:From: Kevin GrittnerDate: 2010-12-28 14:43:49
Subject: Re: adding foreign key constraint locks up table

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group