Rename the trigger only if the table and trigger exist. If the table or trigger does not exist, the statement succeeds without renaming a trigger.
trigger_name
The current name of the trigger.
table_name
The name of the table associated with the trigger.
trigger_new_name
The new name of the trigger.
ALTER TRIGGER ... IF EXISTS is a CockroachDB extension of the PostgreSQL syntax, which does not accept IF EXISTS for ALTER TRIGGER.
Renaming a trigger to its current name succeeds without changes. Renaming a trigger to a name that is already used by another trigger on the same table returns a duplicate-object error.