On Thu, 12 Aug 2004, Bruce Momjian wrote: > > Did this get resolved? > > --------------------------------------------------------------------------- > > Gavin Sherry wrote: > > Attached is a minor patch to make BEFORE DELETE triggers honour tgenabled > > properly. > > > > I know that we cannot, currently, use this feature through a DDL command > > but just in case someone is updating the catalogs to do it and since it is > > necessary in order to implement disabling of triggers, I thought I'd send > > it in. > > > > Gavin
After taking a proper look, I agree with Tom that my patch was not the proper solution to the problem. What we really need for the BEFORE ROW triggers is the ability to say that there were no triggers executeed. At the moment, if no triggers are executed (ie, they're all disabled), then the executor thinks that a trigger returned NULL. I'll try to find some time to fix this soon. As I noted, though, its not critical because there's no DDL to disable a trigger. Gavin ---------------------------(end of broadcast)--------------------------- TIP 5: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faqs/FAQ.html