| От | Michael Fuhr |
|---|---|
| Тема | Re: Triggers don't activate when dropping table |
| Дата | |
| Msg-id | 20041207044619.GA33139@winnie.fuhr.org обсуждение |
| Ответ на | Triggers don't activate when dropping table (cheng shan <postgresql_general@yahoo.com.cn>) |
| Список | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера