Re: adding foreign key constraint locks up table

От: Kevin Grittner
Тема: Re: adding foreign key constraint locks up table
Дата: ,
Msg-id: 4D19A3450200002500038C2C@gw.wicourts.gov
(см: обсуждение, исходный текст)
Ответ на: Re: adding foreign key constraint locks up table  (Gurjeet Singh)
Ответы: Re: adding foreign key constraint locks up table  (Gurjeet Singh)
Список: pgsql-performance

Скрыть дерево обсуждения

adding foreign key constraint locks up table  (kakarukeys, )
 Re: adding foreign key constraint locks up table  (Gurjeet Singh, )
  Re: adding foreign key constraint locks up table  ("Kevin Grittner", )
   Re: adding foreign key constraint locks up table  (Gurjeet Singh, )
    Re: adding foreign key constraint locks up table  ("Kevin Grittner", )
 Re: adding foreign key constraint locks up table  (Lew, )
 Re: adding foreign key constraint locks up table  (kakarukeys, )
  Re: adding foreign key constraint locks up table  (Gurjeet Singh, )
 Re: adding foreign key constraint locks up table  (Florian Weimer, )
  Re: adding foreign key constraint locks up table  (Tom Lane, )
   Re: adding foreign key constraint locks up table  (Florian Weimer, )
    Re: adding foreign key constraint locks up table  (Tom Lane, )
 Re: adding foreign key constraint locks up table  (kakarukeys, )
  Re: adding foreign key constraint locks up table  (Robert Haas, )
 Re: adding foreign key constraint locks up table  (kakarukeys, )

Gurjeet Singh <> 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)?

-Kevin


В списке pgsql-performance по дате сообщения:

От: Tom Lane
Дата:
Сообщение: Re: adding foreign key constraint locks up table
От: Greg Smith
Дата:
Сообщение: Re: Regression: 8.3 2 seconds -> 8.4 100+ seconds