File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-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/utils/cache/relcache.c,v 1.19 1997/08/22 03:35:44 vadim Exp $
10
+ * $Header: /cvsroot/pgsql/src/backend/utils/cache/relcache.c,v 1.20 1997/09/01 08:04:38 vadim Exp $
11
11
*
12
12
*-------------------------------------------------------------------------
13
13
*/
@@ -263,6 +263,9 @@ static void IndexedAccessMethodInitialize(Relation relation);
263
263
static void AttrDefaultFetch (Relation relation );
264
264
static void RelCheckFetch (Relation relation );
265
265
266
+ extern void RelationBuildTriggers (Relation relation );
267
+ extern void FreeTriggerDesc (Relation relation );
268
+
266
269
/*
267
270
* newlyCreatedRelns -
268
271
* relations created during this transaction. We need to keep track of
@@ -892,6 +895,12 @@ RelationBuildDesc(RelationBuildDescInfo buildinfo)
892
895
relation -> rd_rules = NULL ;
893
896
}
894
897
898
+ /* Triggers */
899
+ if ( relp -> reltriggers > 0 )
900
+ RelationBuildTriggers (relation );
901
+ else
902
+ relation -> trigdesc = NULL ;
903
+
895
904
/* ----------------
896
905
* initialize index strategy and support information for this relation
897
906
* ----------------
@@ -1290,6 +1299,8 @@ RelationFlushRelation(Relation *relationPtr,
1290
1299
RelationCacheDelete (relation );
1291
1300
1292
1301
FreeTupleDesc (relation -> rd_att );
1302
+
1303
+ FreeTriggerDesc (relation );
1293
1304
1294
1305
#if 0
1295
1306
if (relation -> rd_rules ) {
You can’t perform that action at this time.
0 commit comments