Re: adding foreign key constraint locks up table

Поиск
Список
Период
Сортировка
От Gurjeet Singh
Тема Re: adding foreign key constraint locks up table
Дата
Msg-id AANLkTi=2oiDu-C_61c8OFkDQe42NA+C+2AZ=mVkAFu2L@mail.gmail.com
обсуждение исходный текст
Ответ на Re: adding foreign key constraint locks up table  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
Ответы Re: adding foreign key constraint locks up table  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
Список 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 по дате отправления:

Предыдущее
От: Florian Weimer
Дата:
Сообщение: Re: adding foreign key constraint locks up table
Следующее
От: Gurjeet Singh
Дата:
Сообщение: Re: adding foreign key constraint locks up table