logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

DROP_EVENT_TRIGGER - remove an event trigger

Compatibility

There is no DROPEVENTTRIGGER statement in the SQL standard.

Description

DROPEVENTTRIGGER removes an existing event trigger. To execute this command, the current user must be the owner of the event trigger.

Examples

Destroy the trigger snitch: DROP EVENT TRIGGER snitch;

Name

DROP_EVENT_TRIGGER - remove an event trigger

Parameters

IF EXISTS Do not throw an error if the event trigger does not exist. A notice is issued in this case. name The name of the event trigger to remove. CASCADE Automatically drop objects that depend on the trigger, and in turn all objects that depend on those objects (see Section 5.15). RESTRICT Refuse to drop the trigger if any objects depend on it. This is the default.

See Also

CREATE EVENT TRIGGER (CREATE_EVENT_TRIGGER(7)), ALTER EVENT TRIGGER (ALTER_EVENT_TRIGGER(7)) PostgreSQL 17.5 2025 DROPEVENTTRIGGER(7)

Synopsis

DROP EVENT TRIGGER [ IF EXISTS ] name [ CASCADE | RESTRICT ]

See Also