mirror of
https://github.com/postgres/postgres.git
synced 2025-06-22 02:52:08 +03:00
Triggers added to Relation
This commit is contained in:
@ -6,7 +6,7 @@
|
|||||||
*
|
*
|
||||||
* Copyright (c) 1994, Regents of the University of California
|
* 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 <rewrite/prs2lock.h>
|
||||||
#include <storage/fd.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 {
|
typedef struct RelationData {
|
||||||
File rd_fd; /* open file descriptor */
|
File rd_fd; /* open file descriptor */
|
||||||
int rd_nblocks; /* number of blocks in rel */
|
int rd_nblocks; /* number of blocks in rel */
|
||||||
@ -36,6 +60,7 @@ typedef struct RelationData {
|
|||||||
RuleLock *rd_rules; /* rewrite rules */
|
RuleLock *rd_rules; /* rewrite rules */
|
||||||
IndexStrategy rd_istrat;
|
IndexStrategy rd_istrat;
|
||||||
RegProcedure* rd_support;
|
RegProcedure* rd_support;
|
||||||
|
TriggerDesc *trigdesc;
|
||||||
} RelationData;
|
} RelationData;
|
||||||
|
|
||||||
typedef RelationData *Relation;
|
typedef RelationData *Relation;
|
||||||
|
Reference in New Issue
Block a user