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

Variable Documentation

◆ FormData_pg_trigger

FormData_pg_trigger

Definition at line 64 of file pg_trigger.h.