Trigger Editor
Top  Previous  Next


The Trigger Editor allows you to create new triggers and to edit the existing ones (see How to create a trigger and How to edit a trigger).

Trigger  
 
The main trigger parameters are set on the Trigger tab.

Name
Set the name of the new trigger in the edit field.

For Table
The drop-down list allows you to select the table from the list of all database tables, for which the current trigger is created.

On Event
Select the events when the trigger fires (Insert, Update, Delete) and choose whether it fires before or after one of the selected events takes place.

Function
This drop-down list allows you to select the function for the trigger from the list of all database functions.

Arguments
Set the trigger arguments by right-clicking in the list and selecting Add Argument or Insert Argument. After the argument is added set its value in the Argument Value edit field. To delete the existing argument, select Delete Argument from the popup menu.

Description  
 
The Description tab contains the trigger description. Button Save Description saves the edited description.

DDL  
 
On the DDL tab you can view the SQL text for creating the trigger with the properties you set. This text can't be edited, but can be copied to the clipboard.

To call the PostgreSQL Reference, click button Help on SQL on the toolbar.

Button Default Size brings the window to the default size (restricted by the main window and the DB Explorer).

The drop-down list of the current database triggers on the toolbar allows you to switch the edited trigger.

When you are done, click button Compile on the toolbar to start the process of compilation. The Compile Window will appear where you will be able to view and edit the result SQL statement for creating the new trigger. Commit the transaction, and if it is successful, the new trigger will be created or the trigger parameters will be changed.

See also:
Table Editor
Schema Editor
View Editor
Function Editor
Rule Editor
Index Editor
Sequence Editor
Type Editor
Aggregate Editor
Operator Editor
Language Editor
Compile Window


Availability:
Windows Professional

Yes

Windows Lite

Yes

Linux Professional

Yes

Linux Lite

Yes