Skip to main content
Version: 2.x

pg_trigger

The pg_trigger system catalog table stores triggers on tables.

note

Apache Cloudberry does not support triggers.

columntypereferencesdescription
oidoidThe object ID
tgrelidoidpg_class.oid

Note that Apache Cloudberry does not enforce referential integrity.
The table this trigger is on.
tgparentidoidpg_trigger.oidOID of the parent trigger that this trigger was cloned from (for example, on a partition); zero if not a clone.
tgnamename Trigger name (must be unique among triggers of same table).
tgfoidoidpg_proc.oid

Note that Apache Cloudberry does not enforce referential integrity.
The function to be called.
tgtypesmallint Bit mask identifying trigger conditions.
tgenabledchar True if trigger is enabled.
tgisinternalboolean True if trigger is internally generated (usually, to enforce the constraint identified by tgconstraint).
tgconstrrelidoidpg_class.oid

Note that Apache Cloudberry does not enforce referential integrity.
The table referenced by an referential integrity constraint.
tgconstrindidoidpg_class.oidThe index supporting a unique, primary key, or referential integrity constraint.
tgconstraintoidpg_constraint.oidThe pg_constraint entry associated with the trigger, if any.
tgdeferrableboolean True if deferrable.
tginitdeferredboolean True if initially deferred.
tgnargssmallint Number of argument strings passed to trigger function.
tgattrARRAY Currently not used.
tgargsbytea Argument strings to pass to trigger, each NULL-terminated.
tgqualpg_node_tree Expression tree (in nodeToString() representation) for the trigger's WHEN condition, or null if none.
tgoldtablenameThe name of the old transition table, or NULL if none.
tgnewtablenameThe name of the new transition table, or NULL if none.