mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-02-23 19:39:53 +08:00
Triggers added to Relation
This commit is contained in:
parent
b69b815e3a
commit
6084c915d0
@ -6,7 +6,7 @@
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: rel.h,v 1.7 1996/11/04 11:51:24 scrappy Exp $
|
||||
* $Id: rel.h,v 1.8 1997/09/01 08:13:22 vadim Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -20,6 +20,30 @@
|
||||
#include <rewrite/prs2lock.h>
|
||||
#include <storage/fd.h>
|
||||
|
||||
typedef struct Trigger {
|
||||
char *tgname;
|
||||
char *tgfunc;
|
||||
Oid tglang;
|
||||
int16 tgtype;
|
||||
int16 tgnargs;
|
||||
int16 tgattr[8];
|
||||
char *tgtext;
|
||||
char **tgargs;
|
||||
char *tgwhen;
|
||||
} Trigger;
|
||||
|
||||
typedef struct TriggerDesc {
|
||||
uint16 n_before_statement[4];
|
||||
uint16 n_before_row[4];
|
||||
uint16 n_after_row[4];
|
||||
uint16 n_after_statement[4];
|
||||
Trigger **tg_before_statement[4];
|
||||
Trigger **tg_before_row[4];
|
||||
Trigger **tg_after_row[4];
|
||||
Trigger **tg_after_statement[4];
|
||||
Trigger *triggers;
|
||||
} TriggerDesc;
|
||||
|
||||
typedef struct RelationData {
|
||||
File rd_fd; /* open file descriptor */
|
||||
int rd_nblocks; /* number of blocks in rel */
|
||||
@ -36,6 +60,7 @@ typedef struct RelationData {
|
||||
RuleLock *rd_rules; /* rewrite rules */
|
||||
IndexStrategy rd_istrat;
|
||||
RegProcedure* rd_support;
|
||||
TriggerDesc *trigdesc;
|
||||
} RelationData;
|
||||
|
||||
typedef RelationData *Relation;
|
||||
|
Loading…
Reference in New Issue
Block a user