Re: remnants of deleted table causing problems

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Tim Wilson <wilson(at)visi(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: remnants of deleted table causing problems
Date: 2002-05-28 19:22:51
Message-ID: 15868.1022613771@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Tim Wilson <wilson(at)visi(dot)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

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Peter Darley 2002-05-28 21:36:39 Changing ownership of objects
Previous Message Tim Wilson 2002-05-28 19:13:16 Re: remnants of deleted table causing problems