Re: remnants of deleted table causing problems

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: remnants of deleted table causing problems
Дата
Msg-id 15868.1022613771@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: remnants of deleted table causing problems  (Tim Wilson <wilson@visi.com>)
Список pgsql-novice
Tim Wilson <wilson@visi.com> writes:
>> I'd bet on a referential integrity trigger causing the problem.  Up till
>> very recently, RENAME TABLE wasn't smart enough to adjust RI trigger
>> parameters.  (Don't recall if the fix is in 7.2 or not; it may only be
>> in development sources.)

> So I should drop the 'location_exists' constraint in the 'event' table
> and recreate it?

If it is RI triggers, you'll need to drop the triggers manually ---
there's no support for this in ALTER TABLE :-(.  I believe you can
find some discussion of how to do it on techdocs.postgresql.org.

            regards, tom lane

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

Предыдущее
От: Tim Wilson
Дата:
Сообщение: Re: remnants of deleted table causing problems
Следующее
От: Rory Campbell-Lange
Дата:
Сообщение: Fantasy Football complex select