diff --git a/deployment/postgres-init-db/sql/views/merlin/derived_events.sql b/deployment/postgres-init-db/sql/views/merlin/derived_events.sql index 76984f97d4..29ca0139b0 100644 --- a/deployment/postgres-init-db/sql/views/merlin/derived_events.sql +++ b/deployment/postgres-init-db/sql/views/merlin/derived_events.sql @@ -87,7 +87,7 @@ begin end; $$; --- events are the most basic source of information, so we have to trigger on their insertion +-- events are the most basic source of information, so update when the set of events changes. create trigger refresh_derived_events_on_external_event after insert or update or delete on merlin.external_event for each statement execute function merlin.refresh_derived_events_on_trigger();