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

ALTER 
TRIGGER(7) SQL Commands ALTER TRIGGER(7) NAME
ALTER TRIGGER - change the definition of a trigger SYNOPSIS
ALTER TRIGGER name ON table RENAME TO newname DESCRIPTION
ALTER TRIGGER changes properties of an existing trigger. The RENAME clause changes the name of the given trigger without otherwise changing the trigger definition. You must own the table on which the trigger acts to be allowed to change its properties. PARAMETERS
name The name of an existing trigger to alter. table The name of the table on which this trigger acts. newname The new name for the trigger. NOTES
The ability to temporarily enable or disable a trigger is provided by ALTER TABLE [alter_table(7)], not by ALTER TRIGGER, because ALTER TRIGGER has no convenient way to express the option of enabling or disabling all of a table's triggers at once. EXAMPLES
To rename an existing trigger: ALTER TRIGGER emp_stamp ON emp RENAME TO emp_track_chgs; COMPATIBILITY
ALTER TRIGGER is a PostgreSQL extension of the SQL standard. SEE ALSO
ALTER TABLE [alter_table(7)] SQL - Language Statements 2010-05-14 ALTER 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

Featured Tech Videos