]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
heap_destroy:RelationRemoveTriggers()
authorVadim B. Mikheev <vadim4o@yahoo.com>
Thu, 4 Sep 1997 13:17:59 +0000 (13:17 +0000)
committerVadim B. Mikheev <vadim4o@yahoo.com>
Thu, 4 Sep 1997 13:17:59 +0000 (13:17 +0000)
src/backend/catalog/heap.c

index 7899f6c0007b372eae76ea1a143e06d1b4a31b68..f54015207567193445834b94c77951373296679c 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *    $Header: /cvsroot/pgsql/src/backend/catalog/heap.c,v 1.22 1997/08/22 14:10:24 vadim Exp $
+ *    $Header: /cvsroot/pgsql/src/backend/catalog/heap.c,v 1.23 1997/09/04 13:17:59 vadim Exp $
  *
  * INTERFACE ROUTINES
  *     heap_creatr()           - Create an uncataloged heap relation
@@ -41,6 +41,7 @@
 #include <catalog/pg_type.h>
 #include <catalog/pg_attrdef.h>
 #include <catalog/pg_relcheck.h>
+#include <commands/trigger.h>
 #include <storage/bufmgr.h>
 #include <storage/lmgr.h>
 #include <storage/smgr.h>
@@ -1298,6 +1299,10 @@ heap_destroy(char *relname)
        RelationRemoveRules(rid);
     }
     
+    /* triggers */
+    if ( rdesc->rd_rel->reltriggers > 0 )
+       RelationRemoveTriggers (rdesc);
+    
     /* ----------------
      * delete attribute tuples
      * ----------------