PostgreSQL Source Code  git master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
pg_event_trigger.h
Go to the documentation of this file.
1 /*-------------------------------------------------------------------------
2  *
3  * pg_event_trigger.h
4  * definition of the system "event trigger" relation (pg_event_trigger)
5  * along with the relation's initial contents.
6  *
7  *
8  * Portions Copyright (c) 1996-2017, PostgreSQL Global Development Group
9  * Portions Copyright (c) 1994, Regents of the University of California
10  *
11  * src/include/catalog/pg_event_trigger.h
12  *
13  * NOTES
14  * the genbki.pl script reads this file and generates .bki
15  * information from the DATA() statements.
16  *
17  *-------------------------------------------------------------------------
18  */
19 #ifndef PG_EVENT_TRIGGER_H
20 #define PG_EVENT_TRIGGER_H
21 
22 #include "catalog/genbki.h"
23 
24 /* ----------------
25  * pg_event_trigger definition. cpp turns this into
26  * typedef struct FormData_pg_event_trigger
27  * ----------------
28  */
29 #define EventTriggerRelationId 3466
30 
31 CATALOG(pg_event_trigger,3466)
32 {
33  NameData evtname; /* trigger's name */
34  NameData evtevent; /* trigger's event */
35  Oid evtowner; /* trigger's owner */
36  Oid evtfoid; /* OID of function to be called */
37  char evtenabled; /* trigger's firing configuration WRT
38  * session_replication_role */
39 
40 #ifdef CATALOG_VARLEN
41  text evttags[1]; /* command TAGs this event trigger targets */
42 #endif
44 
45 /* ----------------
46  * Form_pg_event_trigger corresponds to a pointer to a tuple with
47  * the format of pg_event_trigger relation.
48  * ----------------
49  */
51 
52 /* ----------------
53  * compiler constants for pg_event_trigger
54  * ----------------
55  */
56 #define Natts_pg_event_trigger 6
57 #define Anum_pg_event_trigger_evtname 1
58 #define Anum_pg_event_trigger_evtevent 2
59 #define Anum_pg_event_trigger_evtowner 3
60 #define Anum_pg_event_trigger_evtfoid 4
61 #define Anum_pg_event_trigger_evtenabled 5
62 #define Anum_pg_event_trigger_evttags 6
63 
64 #endif /* PG_EVENT_TRIGGER_H */
unsigned int Oid
Definition: postgres_ext.h:31
Definition: c.h:488
FormData_pg_event_trigger * Form_pg_event_trigger
Definition: c.h:434
FormData_pg_event_trigger
CATALOG(pg_event_trigger, 3466)