Re: Triggers don't activate when dropping table - Mailing list pgsql-general

From Michael Fuhr
Subject Re: Triggers don't activate when dropping table
Date
Msg-id 20041207044619.GA33139@winnie.fuhr.org
Whole thread Raw
In response to Triggers don't activate when dropping table  (cheng shan <postgresql_general@yahoo.com.cn>)
List pgsql-general
On Tue, Dec 07, 2004 at 11:44:58AM +0800, cheng shan wrote:

> I have one table named "object" and i many tables that are related
> to the table "object". When a record in "object" is deleted, the
> relative records in other tables should also be erased.  To implement
> the above goal,  i define many triggers on table "object" to make
> operations automatically.
>
> But i find that the triggers don't activate when i dropping the
> table "object". So there is many garbage information left in the
> system which makes the system unstable.

If you want to fire the triggers then delete all records from the
table before dropping it.  But why are you dropping the table?

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/

pgsql-general by date:

Previous
From: Christopher Browne
Date:
Subject: Re: When to encrypt
Next
From: Michael Fuhr
Date:
Subject: Re: Rules