My company logs DDL on one database using a Database Trigger, looking for DDL including:
ALTER_TABLE
CREATE_TRIGGER
ALTER_TRIGGER
DROP_TRIGGER
When I disable or enable triggers using ALTER TABLE x DISABLE TRIGGER tiud_x
, this change is logged with the Database Trigger.
When I disable or enable triggers using DISABLE TRIGGER tiud_x ON x
, this change is not logged.
To me, DISABLE TRIGGER
and ENABLE TRIGGER
look like "one weird trick" to avoid firing a database trigger, since they seem to be functionally equivalent. What's the difference between ALTER TABLE DISABLE TRIGGER
and DISABLE TRIGGER
?