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

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

Variable Documentation

◆ FormData_pg_trigger

FormData_pg_trigger

Definition at line 63 of file pg_trigger.h.