How do I temporarily disable triggers in PostgreSQL?

后端 未结 6 680
我在风中等你
我在风中等你 2020-12-04 07:37

I\'m bulk loading data and can re-calculate all trigger modifications much more cheaply after the fact than on a row-by-row basis.

How can I temporarily disable all

6条回答
  •  盖世英雄少女心
    2020-12-04 08:21

    PostgreSQL knows the ALTER TABLE tblname DISABLE TRIGGER USER command, which seems to do what I need. See ALTER TABLE.

提交回复
热议问题