Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

IIUC, it’s an improvement over Postgres’ existing upsert functionality, which is centered around “INSERT INTO… ON CONFLICT UPDATE”. Instead of having to choose which action to take based on constraint conflicts, you can specify insert vs. update based on any arbitrary expression now, which formerly would’ve required some pgplsql or the like to write an IF… ELSE… branch.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: