Constraint question

Поиск
Список
Период
Сортировка
От Enzo Daddario
Тема Constraint question
Дата
Msg-id 1147659556.29084.26.camel@localhost.localdomain
обсуждение исходный текст
Ответы Re: Constraint question  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-admin
Hi All,

I am currently using Postgres 8.1.2 and am in the process
of restructuring our entire DB.

The current structure - table "X" is the central/main table in the DB
and has approx 100 tables which reference it in the form of foreign key
constaints.

I am now required the remove thousands of obsolete records from table
"X" and even though I have removed all related rows in all related
tables, the deletion of rows in table "X" is taking WAY TOO LONG. I am
assuming that this is because the deletion of each row in table "X"
requires that all the related tables(a number of them are huge) need to
be first checked.

Is there a way I can temporarily disable this checking and then
re-enable it after the rows in table "X" are deleted.

Thanks ENZO...


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

Предыдущее
От: Andy Shellam
Дата:
Сообщение: Re: install postgre on windows XP, service failed to start.
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Constraint question