Brug pg_trigger_depth()
funktion, som returnerer (som angivet i dokumentationen
):
CREATE TRIGGER insert_task
AFTER INSERT ON employees
FOR EACH ROW
WHEN (pg_trigger_depth() = 0)
EXECUTE PROCEDURE insert_task()
Brug pg_trigger_depth()
funktion, som returnerer (som angivet i dokumentationen
):
CREATE TRIGGER insert_task
AFTER INSERT ON employees
FOR EACH ROW
WHEN (pg_trigger_depth() = 0)
EXECUTE PROCEDURE insert_task()