PostgreSQL 17's MERGE with RETURNING: The Game-Changer Rails Developers Have Been Waiting For
PostgreSQL 17 introduces RETURNING support to the MERGE statement, solving a long-standing limitation that forced developers to choose between atomic upserts and knowing what actually happened to their data.