mirror of
https://github.com/postgres/postgres.git
synced 2025-06-04 00:02:37 -04:00
Calls of RelationBuildTriggers() & FreeTriggerDesc()
This commit is contained in:
parent
283e18ab0e
commit
c67208b3bb
13
src/backend/utils/cache/relcache.c
vendored
13
src/backend/utils/cache/relcache.c
vendored
@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/utils/cache/relcache.c,v 1.19 1997/08/22 03:35:44 vadim Exp $
|
* $Header: /cvsroot/pgsql/src/backend/utils/cache/relcache.c,v 1.20 1997/09/01 08:04:38 vadim Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -263,6 +263,9 @@ static void IndexedAccessMethodInitialize(Relation relation);
|
|||||||
static void AttrDefaultFetch (Relation relation);
|
static void AttrDefaultFetch (Relation relation);
|
||||||
static void RelCheckFetch (Relation relation);
|
static void RelCheckFetch (Relation relation);
|
||||||
|
|
||||||
|
extern void RelationBuildTriggers (Relation relation);
|
||||||
|
extern void FreeTriggerDesc (Relation relation);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* newlyCreatedRelns -
|
* newlyCreatedRelns -
|
||||||
* relations created during this transaction. We need to keep track of
|
* relations created during this transaction. We need to keep track of
|
||||||
@ -892,6 +895,12 @@ RelationBuildDesc(RelationBuildDescInfo buildinfo)
|
|||||||
relation->rd_rules = NULL;
|
relation->rd_rules = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Triggers */
|
||||||
|
if ( relp->reltriggers > 0 )
|
||||||
|
RelationBuildTriggers (relation);
|
||||||
|
else
|
||||||
|
relation->trigdesc = NULL;
|
||||||
|
|
||||||
/* ----------------
|
/* ----------------
|
||||||
* initialize index strategy and support information for this relation
|
* initialize index strategy and support information for this relation
|
||||||
* ----------------
|
* ----------------
|
||||||
@ -1291,6 +1300,8 @@ RelationFlushRelation(Relation *relationPtr,
|
|||||||
|
|
||||||
FreeTupleDesc (relation->rd_att);
|
FreeTupleDesc (relation->rd_att);
|
||||||
|
|
||||||
|
FreeTriggerDesc (relation);
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
if (relation->rd_rules) {
|
if (relation->rd_rules) {
|
||||||
int j;
|
int j;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user