mirror of
https://github.com/postgres/postgres.git
synced 2025-06-08 00:01:54 -04:00
heap_destroy:RelationRemoveTriggers()
This commit is contained in:
parent
6c42b360cc
commit
8d6e5f07ff
@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* 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
|
* INTERFACE ROUTINES
|
||||||
* heap_creatr() - Create an uncataloged heap relation
|
* heap_creatr() - Create an uncataloged heap relation
|
||||||
@ -41,6 +41,7 @@
|
|||||||
#include <catalog/pg_type.h>
|
#include <catalog/pg_type.h>
|
||||||
#include <catalog/pg_attrdef.h>
|
#include <catalog/pg_attrdef.h>
|
||||||
#include <catalog/pg_relcheck.h>
|
#include <catalog/pg_relcheck.h>
|
||||||
|
#include <commands/trigger.h>
|
||||||
#include <storage/bufmgr.h>
|
#include <storage/bufmgr.h>
|
||||||
#include <storage/lmgr.h>
|
#include <storage/lmgr.h>
|
||||||
#include <storage/smgr.h>
|
#include <storage/smgr.h>
|
||||||
@ -1298,6 +1299,10 @@ heap_destroy(char *relname)
|
|||||||
RelationRemoveRules(rid);
|
RelationRemoveRules(rid);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* triggers */
|
||||||
|
if ( rdesc->rd_rel->reltriggers > 0 )
|
||||||
|
RelationRemoveTriggers (rdesc);
|
||||||
|
|
||||||
/* ----------------
|
/* ----------------
|
||||||
* delete attribute tuples
|
* delete attribute tuples
|
||||||
* ----------------
|
* ----------------
|
||||||
|
Loading…
x
Reference in New Issue
Block a user