Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

drop_trigger(7) [centos man page]

DROP 
TRIGGER(7) PostgreSQL 9.2.7 Documentation DROP TRIGGER(7) NAME
DROP_TRIGGER - remove a trigger SYNOPSIS
DROP TRIGGER [ IF EXISTS ] name ON table_name [ CASCADE | RESTRICT ] DESCRIPTION
DROP TRIGGER removes an existing trigger definition. To execute this command, the current user must be the owner of the table for which the trigger is defined. PARAMETERS
IF EXISTS Do not throw an error if the trigger does not exist. A notice is issued in this case. name The name of the trigger to remove. table_name The name (optionally schema-qualified) of the table for which the trigger is defined. CASCADE Automatically drop objects that depend on the trigger. RESTRICT Refuse to drop the trigger if any objects depend on it. This is the default. EXAMPLES
Destroy the trigger if_dist_exists on the table films: DROP TRIGGER if_dist_exists ON films; COMPATIBILITY
The DROP TRIGGER statement in PostgreSQL is incompatible with the SQL standard. In the SQL standard, trigger names are not local to tables, so the command is simply DROP TRIGGER name. SEE ALSO
CREATE TRIGGER (CREATE_TRIGGER(7)) PostgreSQL 9.2.7 2014-02-17 DROP TRIGGER(7)

Check Out this Related Man Page

CREATE CONSTRAINT 
TRIGGER(7) SQL Commands CREATE CONSTRAINT TRIGGER(7) NAME
CREATE CONSTRAINT TRIGGER - define a new constraint trigger SYNOPSIS
CREATE CONSTRAINT TRIGGER name AFTER event [ OR ... ] ON table_name [ FROM referenced_table_name ] { NOT DEFERRABLE | [ DEFERRABLE ] { INITIALLY IMMEDIATE | INITIALLY DEFERRED } } FOR EACH ROW EXECUTE PROCEDURE funcname ( arguments ) DESCRIPTION
CREATE CONSTRAINT TRIGGER creates a constraint trigger. This is the same as a regular trigger except that the timing of the trigger firing can be adjusted using SET CONSTRAINTS [set_constraints(7)]. Constraint triggers must be AFTER ROW triggers. They can be fired either at the end of the statement causing the triggering event, or at the end of the containing transaction; in the latter case they are said to be deferred. A pending deferred-trigger firing can also be forced to happen immediately by using SET CONSTRAINTS. PARAMETERS
name The name of the constraint trigger. This is also the name to use when modifying the trigger's behavior using SET CONSTRAINTS. The name cannot be schema-qualified -- the trigger inherits the schema of its table. event One of INSERT, UPDATE, or DELETE; this specifies the event that will fire the trigger. Multiple events can be specified using OR. table_name The (possibly schema-qualified) name of the table in which the triggering events occur. referenced_table_name The (possibly schema-qualified) name of another table referenced by the constraint. This option is used for foreign-key constraints and is not recommended for general use. DEFERRABLE NOT DEFERRABLE INITIALLY IMMEDIATE INITIALLY DEFERRED The default timing of the trigger. See the CREATE TABLE [create_table(7)] documentation for details of these constraint options. funcname The function to call when the trigger is fired. See CREATE TRIGGER [create_trigger(7)] for details. arguments Optional argument strings to pass to the trigger function. See CREATE TRIGGER [create_trigger(7)] for details. COMPATIBILITY
CREATE CONSTRAINT TRIGGER is a PostgreSQL extension of the SQL standard. SEE ALSO
CREATE TRIGGER [create_trigger(7)], DROP TRIGGER [drop_trigger(7)], SET CONSTRAINTS [set_constraints(7)] SQL - Language Statements 2010-05-14 CREATE CONSTRAINT TRIGGER(7)
Man Page

We Also Found This Discussion For You

1. Shell Programming and Scripting

How to filter a whole line using a word?

Hello Team, I have a script in which more than 500 trigger statemetns are written. i need to filter all lines from that script file which containts "CREATE TRIGGER" word in each line is it possible using linux commands?? example: CREATE TRIGGER S1.T1 .................. (10 Replies)
Discussion started by: kanakaraju
10 Replies