https://stackoverflow.com/questions/3942258/how-do-i-temporarily-disable-triggers-in-postgresql
SET session_replication_role = replica;
This disables triggers for the current session.
To re-enable for the same session:
SET session_replication_role = DEFAULT;