33.42. triggers

The view triggers contains all triggers defined in the current database on tables that the current user owns or has some privilege on.

Table 33-40. triggers Columns

NameData TypeDescription
trigger_catalogsql_identifierName of the database that contains the trigger (always the current database)
trigger_schemasql_identifierName of the schema that contains the trigger
trigger_namesql_identifierName of the trigger
event_manipulationcharacter_data Event that fires the trigger (INSERT, UPDATE, or DELETE)
event_object_catalogsql_identifier Name of the database that contains the table that the trigger is defined on (always the current database)
event_object_schemasql_identifierName of the schema that contains the table that the trigger is defined on
event_object_tablesql_identifierName of the table that the trigger is defined on
action_ordercardinal_numberNot yet implemented
action_conditioncharacter_dataApplies to a feature not available in PostgreSQL
action_statementcharacter_data Statement that is executed by the trigger (currently always EXECUTE PROCEDURE function(...))
action_orientationcharacter_data Identifies whether the trigger fires once for each processed row or once for each statement (ROW or STATEMENT)
condition_timingcharacter_data Time at which the trigger fires (BEFORE or AFTER)
condition_reference_old_tablesql_identifierApplies to a feature not available in PostgreSQL
condition_reference_new_tablesql_identifierApplies to a feature not available in PostgreSQL
condition_reference_old_rowsql_identifierApplies to a feature not available in PostgreSQL
condition_reference_new_rowsql_identifierApplies to a feature not available in PostgreSQL
createdtime_stampApplies to a feature not available in PostgreSQL

Triggers in PostgreSQL have two incompatibilities with the SQL standard that affect the representation Release 7.1.1

E.156. Release 7.1.1

Release date: 2001-05-05

This has a variety of fixes from 7.1.

E.156.1. Migration to Version 7.1.1

A dump/restore is not required for those running 7.1.

E.156.2. Changes

Fix for numeri