/* ---------------- *pg_triggerdefinition.cppturnsthisinto *typedefstructFormData_pg_trigger * *Note:whentgconstraintisnonzero,tgconstrrelid,tgconstrindid, *tgdeferrable,andtginitdeferredarelargelyredundantwiththereferenced *pg_constraintentry.However,itispossibleforanon-deferrabletrigger *tobeassociatedwithadeferrableconstraint. *----------------
*/
CATALOG(pg_trigger,2620,TriggerRelationId)
{
Oid oid; /* oid */
Oid tgrelid BKI_LOOKUP(pg_class); /* relation trigger is
* attached to */
Oid tgparentid BKI_LOOKUP_OPT(pg_trigger); /* OID of parent
* trigger, if any */
NameData tgname; /* trigger's name */
Oid tgfoid BKI_LOOKUP(pg_proc); /* OID of function to be called */
int16 tgtype; /* BEFORE/AFTER/INSTEAD, UPDATE/DELETE/INSERT,
* ROW/STATEMENT; see below */ char tgenabled; /* trigger's firing configuration WRT
* session_replication_role */ bool tgisinternal; /* trigger is system-generated */
Oid tgconstrrelid BKI_LOOKUP_OPT(pg_class); /* constraint's FROM
* table, if any */
Oid tgconstrindid BKI_LOOKUP_OPT(pg_class); /* constraint's *supportingindex,if
* any */
Oid tgconstraint BKI_LOOKUP_OPT(pg_constraint); /* associated *pg_constraintentry,
* if any */ bool tgdeferrable; /* constraint trigger is deferrable */ bool tginitdeferred; /* constraint trigger is deferred initially */
int16 tgnargs; /* # of extra arguments in tgargs */
/* *Variable-lengthfieldsstarthere,butweallowdirectaccessto *tgattr.Note:tgattrandtgargsmustnotbenull.
*/
int2vector tgattr BKI_FORCE_NOT_NULL; /* column numbers, if trigger is
* on columns */
#ifdef CATALOG_VARLEN
bytea tgargs BKI_FORCE_NOT_NULL; /* first\000second\000tgnargs\000 */
pg_node_tree tgqual; /* WHEN expression, or NULL if none */
NameData tgoldtable; /* old transition table, or NULL if none */
NameData tgnewtable; /* new transition table, or NULL if none */ #endif
} FormData_pg_trigger;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.