Discussion about this post

User's avatar
ace_x's avatar

The trigger doing double duty on both inserts and updates is the part most expand-contract writeups skip. Handling the insert case is the easy half, catching a legacy instance updating full_name after a bridge instance already wrote display_name is where most naive implementations quietly lose data, and the IS DISTINCT FROM checks are exactly the right way to avoid the stale COALESCE trap.

No posts

Ready for more?