Header And Logo

PostgreSQL
| The world's most advanced open source database.

pg_event_trigger.h

Go to the documentation of this file.
00001 /*-------------------------------------------------------------------------
00002  *
00003  * pg_event_trigger.h
00004  *    definition of the system "event trigger" relation (pg_event_trigger)
00005  *    along with the relation's initial contents.
00006  *
00007  *
00008  * Portions Copyright (c) 1996-2013, PostgreSQL Global Development Group
00009  * Portions Copyright (c) 1994, Regents of the University of California
00010  *
00011  * src/include/catalog/pg_event_trigger.h
00012  *
00013  * NOTES
00014  *    the genbki.pl script reads this file and generates .bki
00015  *    information from the DATA() statements.
00016  *
00017  *-------------------------------------------------------------------------
00018  */
00019 #ifndef PG_EVENT_TRIGGER_H
00020 #define PG_EVENT_TRIGGER_H
00021 
00022 #include "catalog/genbki.h"
00023 
00024 /* ----------------
00025  *      pg_event_trigger definition.    cpp turns this into
00026  *      typedef struct FormData_pg_event_trigger
00027  * ----------------
00028  */
00029 #define EventTriggerRelationId  3466
00030 
00031 CATALOG(pg_event_trigger,3466)
00032 {
00033     NameData    evtname;        /* trigger's name */
00034     NameData    evtevent;       /* trigger's event */
00035     Oid         evtowner;       /* trigger's owner */
00036     Oid         evtfoid;        /* OID of function to be called */
00037     char        evtenabled;     /* trigger's firing configuration WRT
00038                                  * session_replication_role */
00039 #ifdef CATALOG_VARLEN
00040     text        evttags[1];     /* command TAGs this event trigger targets */
00041 #endif
00042 } FormData_pg_event_trigger;
00043 
00044 /* ----------------
00045  *      Form_pg_event_trigger corresponds to a pointer to a tuple with
00046  *      the format of pg_event_trigger relation.
00047  * ----------------
00048  */
00049 typedef FormData_pg_event_trigger *Form_pg_event_trigger;
00050 
00051 /* ----------------
00052  *      compiler constants for pg_event_trigger
00053  * ----------------
00054  */
00055 #define Natts_pg_event_trigger                  6
00056 #define Anum_pg_event_trigger_evtname           1
00057 #define Anum_pg_event_trigger_evtevent          2
00058 #define Anum_pg_event_trigger_evtowner          3
00059 #define Anum_pg_event_trigger_evtfoid           4
00060 #define Anum_pg_event_trigger_evtenabled        5
00061 #define Anum_pg_event_trigger_evttags           6
00062 
00063 #endif   /* PG_EVENT_TRIGGER_H */