Re: ALTER TABLE hangs

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: ALTER TABLE hangs
Дата
Msg-id 20020429134741.S65313-100000@megazone23.bigpanda.com
обсуждение исходный текст
Ответ на ALTER TABLE hangs  (Mike Baker <bakerlmike@yahoo.com>)
Ответы Re: ALTER TABLE hangs
Список pgsql-admin
On Mon, 29 Apr 2002, Mike Baker wrote:

> Hi.
>
> I am in the process of doing some data migration.  I
> have had no trouble moving my data, but am having
> problems creating a foreign key.
>
> When I run the following command, psql hangs (well,
> not totally sure if it is hung).

It probably isn't hung, but it's going to go through
every row of the table to make sure the constraint holds
successfully which is going to result in 380,000
queries again t_release_component. I haven't had time
recently to do any of the fk stuff I've been meaning to
do, but this is optimizable for most cases, but it hasn't
been done.


В списке pgsql-admin по дате отправления:

Предыдущее
От: Mike Baker
Дата:
Сообщение: ALTER TABLE hangs
Следующее
От: "Mr OCP"
Дата:
Сообщение: Upgrading to 7.2 from 7.1