在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 ]

本站公众号
   欢迎关注本站公众号,获取更多程序园信息
开发小院