Hacker News new | ask | show | jobs
by acarl005 1265 days ago
Actually standard SQL does specify a MERGE command (which lets you implement an upsert) and it's implemented in Postgres
1 comments

MERGE debuted in PostgreSQL 15 fairly recently, and has some caveats.

https://news.ycombinator.com/item?id=33236780