Använd pg_trigger_depth()
funktion, som returnerar (som anges i dokumentationen
):
CREATE TRIGGER insert_task
AFTER INSERT ON employees
FOR EACH ROW
WHEN (pg_trigger_depth() = 0)
EXECUTE PROCEDURE insert_task()
Använd pg_trigger_depth()
funktion, som returnerar (som anges i dokumentationen
):
CREATE TRIGGER insert_task
AFTER INSERT ON employees
FOR EACH ROW
WHEN (pg_trigger_depth() = 0)
EXECUTE PROCEDURE insert_task()