From: Vadim B. Mikheev Date: Thu, 4 Sep 1997 13:17:59 +0000 (+0000) Subject: heap_destroy:RelationRemoveTriggers() X-Git-Tag: REL6_2~277 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8d6e5f07ff82b7404fa391ca074b0fea3999775c;p=thirdparty%2Fpostgresql.git heap_destroy:RelationRemoveTriggers() --- diff --git a/src/backend/catalog/heap.c b/src/backend/catalog/heap.c index 7899f6c0007..f5401520756 100644 --- a/src/backend/catalog/heap.c +++ b/src/backend/catalog/heap.c @@ -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 #include #include +#include #include #include #include @@ -1298,6 +1299,10 @@ heap_destroy(char *relname) RelationRemoveRules(rid); } + /* triggers */ + if ( rdesc->rd_rel->reltriggers > 0 ) + RelationRemoveTriggers (rdesc); + /* ---------------- * delete attribute tuples * ----------------