You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Change FK trigger naming convention to fix self-referential FKs.
Use names like "RI_ConstraintTrigger_a_NNNN" for FK action triggers and"RI_ConstraintTrigger_c_NNNN" for FK check triggers. This ensures theaction trigger fires first in self-referential cases where the very samerow update fires both an action and a check trigger. This change providesa non-probabilistic solution for bug #6268, at the risk that it could breakclient code that is making assumptions about the exact names assigned toauto-generated FK triggers. Hence, change this in HEAD only. No need forforced initdb since old triggers continue to work fine.