Utilisez pg_trigger_depth()
fonction, qui renvoie (comme indiqué dans la documentation
):
CREATE TRIGGER insert_task
AFTER INSERT ON employees
FOR EACH ROW
WHEN (pg_trigger_depth() = 0)
EXECUTE PROCEDURE insert_task()
Utilisez pg_trigger_depth()
fonction, qui renvoie (comme indiqué dans la documentation
):
CREATE TRIGGER insert_task
AFTER INSERT ON employees
FOR EACH ROW
WHEN (pg_trigger_depth() = 0)
EXECUTE PROCEDURE insert_task()