Ecto.Repo.upsert_all with :on_conflict on partial unique index and :returning – undefined behavior for generated columns
When using Ecto.Repo.upsert_all/3 with :on_conflict set to a partial unique index and :returning true, it is unclear whether the returned structs contain post‑computation values for generated columns and columns altered by AFTER INSERT/UPDATE triggers. PostgreSQL may reflect the trigger‑modified state, but MySQL and SQLite ignore :returning entirely, returni