Použijte pg_trigger_depth()
funkce, která vrací (jak je uvedeno v dokumentaci
):
CREATE TRIGGER insert_task
AFTER INSERT ON employees
FOR EACH ROW
WHEN (pg_trigger_depth() = 0)
EXECUTE PROCEDURE insert_task()
Použijte pg_trigger_depth()
funkce, která vrací (jak je uvedeno v dokumentaci
):
CREATE TRIGGER insert_task
AFTER INSERT ON employees
FOR EACH ROW
WHEN (pg_trigger_depth() = 0)
EXECUTE PROCEDURE insert_task()