I want to be able to edit some data in a table, without running the triggers, I can disable and enable triger in my script, but how to ensure that other transactions do not update/insert/delete data in my table until the trigger is enabled again?
begin transaction;
;DISABLE TRIGGER my-triger on my_table
--update my_table
--set some data
-- Can other transaction insert/edit/delete data at this moment with out an active trigger on my_table?
;ENABLE TRIGGER my-triger on my_table
commit transaction;