在pg中禁用触发器



The ability to temporarily enable or disable a trigger is provided by ALTER TABLE, 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.

参考:
https://www.postgresql.org/docs/current/static/sql-altertrigger.html

https://www.postgresql.org/docs/current/static/sql-altertable.html

alter table tab_xxx enable trigger [ trigger_name | ALL | USER ]

相关文章
相关标签/搜索