File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 7
7
*
8
8
*
9
9
* IDENTIFICATION
10
- * $Header: /cvsroot/pgsql/src/backend/catalog/heap.c,v 1.22 1997/08/22 14:10:24 vadim Exp $
10
+ * $Header: /cvsroot/pgsql/src/backend/catalog/heap.c,v 1.23 1997/09/04 13:17:59 vadim Exp $
11
11
*
12
12
* INTERFACE ROUTINES
13
13
* heap_creatr() - Create an uncataloged heap relation
41
41
#include <catalog/pg_type.h>
42
42
#include <catalog/pg_attrdef.h>
43
43
#include <catalog/pg_relcheck.h>
44
+ #include <commands/trigger.h>
44
45
#include <storage/bufmgr.h>
45
46
#include <storage/lmgr.h>
46
47
#include <storage/smgr.h>
@@ -1298,6 +1299,10 @@ heap_destroy(char *relname)
1298
1299
RelationRemoveRules (rid );
1299
1300
}
1300
1301
1302
+ /* triggers */
1303
+ if ( rdesc -> rd_rel -> reltriggers > 0 )
1304
+ RelationRemoveTriggers (rdesc );
1305
+
1301
1306
/* ----------------
1302
1307
* delete attribute tuples
1303
1308
* ----------------
You can’t perform that action at this time.
0 commit comments