zitadel/cmd/setup/46/cockroach/04_create_trigger.sql

6 lines
168 B
SQL

CREATE TRIGGER reduce_instance_events
AFTER INSERT ON "queue"
FOR EACH ROW
WHEN (NEW).subscriber = 'transactional-instances'
EXECUTE FUNCTION reduce_instance_events();