Re: remnants of deleted table causing problems - Mailing list pgsql-novice

From Tom Lane
Subject Re: remnants of deleted table causing problems
Date
Msg-id 15868.1022613771@sss.pgh.pa.us
Whole thread Raw
In response to Re: remnants of deleted table causing problems  (Tim Wilson <wilson@visi.com>)
List 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 by date:

Previous
From: Tim Wilson
Date:
Subject: Re: remnants of deleted table causing problems
Next
From: Rory Campbell-Lange
Date:
Subject: Fantasy Football complex select