Postgresql 中文操作指南

DROP EVENT TRIGGER

DROP EVENT TRIGGER — 删除事件触发器

DROP EVENT TRIGGER — remove an event trigger

Synopsis

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

Description

DROP EVENT TRIGGER 删除现有的事件触发器。要执行此命令,当前用户必须是事件触发器的所有者。

DROP EVENT TRIGGER removes an existing event trigger. To execute this command, the current user must be the owner of the 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.14).

  • RESTRICT

    • Refuse to drop the trigger if any objects depend on it. This is the default.

Examples

销毁触发器 snitch

Destroy the trigger snitch:

DROP EVENT TRIGGER snitch;

Compatibility

SQL 标准中没有 DROP EVENT TRIGGER 语句。

There is no DROP EVENT TRIGGER statement in the SQL standard.