Usa pg_trigger_depth()
función, que devuelve (como se indica en la documentación
):
CREATE TRIGGER insert_task
AFTER INSERT ON employees
FOR EACH ROW
WHEN (pg_trigger_depth() = 0)
EXECUTE PROCEDURE insert_task()
Usa pg_trigger_depth()
función, que devuelve (como se indica en la documentación
):
CREATE TRIGGER insert_task
AFTER INSERT ON employees
FOR EACH ROW
WHEN (pg_trigger_depth() = 0)
EXECUTE PROCEDURE insert_task()