PostgreSQL Source Code  git master
pg_trigger.h File Reference
#include "catalog/genbki.h"
#include "catalog/pg_trigger_d.h"
Include dependency graph for pg_trigger.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef FormData_pg_triggerForm_pg_trigger
 

Functions

 CATALOG (pg_trigger, 2620, TriggerRelationId)
 

Variables

 FormData_pg_trigger
 

Typedef Documentation

◆ Form_pg_trigger

Definition at line 73 of file pg_trigger.h.

Function Documentation

◆ CATALOG()

CATALOG ( pg_trigger  ,
2620  ,
TriggerRelationId   
)

Definition at line 34 of file pg_trigger.h.

References BKI_FORCE_NOT_NULL.

35 {
36  Oid oid; /* oid */
37  Oid tgrelid; /* relation trigger is attached to */
38  Oid tgparentid; /* OID of parent trigger, if any */
39  NameData tgname; /* trigger's name */
40  Oid tgfoid; /* OID of function to be called */
41  int16 tgtype; /* BEFORE/AFTER/INSTEAD, UPDATE/DELETE/INSERT,
42  * ROW/STATEMENT; see below */
43  char tgenabled; /* trigger's firing configuration WRT
44  * session_replication_role */
45  bool tgisinternal; /* trigger is system-generated */
46  Oid tgconstrrelid; /* constraint's FROM table, if any */
47  Oid tgconstrindid; /* constraint's supporting index, if any */
48  Oid tgconstraint; /* associated pg_constraint entry, if any */
49  bool tgdeferrable; /* constraint trigger is deferrable */
50  bool tginitdeferred; /* constraint trigger is deferred initially */
51  int16 tgnargs; /* # of extra arguments in tgargs */
52 
53  /*
54  * Variable-length fields start here, but we allow direct access to
55  * tgattr. Note: tgattr and tgargs must not be null.
56  */
57  int2vector tgattr BKI_FORCE_NOT_NULL; /* column numbers, if trigger is
58  * on columns */
59 
60 #ifdef CATALOG_VARLEN
61  bytea tgargs BKI_FORCE_NOT_NULL; /* first\000second\000tgnargs\000 */
62  pg_node_tree tgqual; /* WHEN expression, or NULL if none */
63  NameData tgoldtable; /* old transition table, or NULL if none */
64  NameData tgnewtable; /* new transition table, or NULL if none */
65 #endif
signed short int16
Definition: c.h:361
FormData_pg_trigger
Definition: pg_trigger.h:66
unsigned int Oid
Definition: postgres_ext.h:31
#define BKI_FORCE_NOT_NULL
Definition: genbki.h:33
Definition: c.h:616
Definition: c.h:590
Definition: c.h:562

Variable Documentation

◆ FormData_pg_trigger

FormData_pg_trigger

Definition at line 66 of file pg_trigger.h.