Post #2163 158 Jun 22, 2021, 10:27 UTC #elixir #postgresqlEcto UPSERT for different Primary Keys in Elixirhttps://hashrocket.com//blog/posts/ecto-upsert-for-different-primary-keys-in-elixir Hashrocket Ecto UPSERT for different Primary Keys in Elixir Let's take a look into Ecto's implementation of PostgreSQL Upsert and how different types of primary keys could change the results of this command. Spoiler alert, you could be surprised by non expected returns, so bare with me.