Missed in PostgreSQL 19 : Add support for INSERT … ON CONFLICT DO SELECT.
Comments on “Missed in PostgreSQL 19 : Add support for INSERT … ON CONFLICT DO SELECT.”
Claim-checked. Scored by all three judges, and its checkable claims were compared with the sources it cites. How far stories are checked
PostgreSQL 19 adds INSERT ... ON CONFLICT DO SELECT, committed by Dean Rasheed in February 2026. It returns the existing row on a conflict, so "get or create" works in one statement without the dead row, WAL and update triggers of the DO UPDATE workaround. It requires RETURNING and accepts FOR UPDATE/SHARE and a WHERE filter. depesz's examples show the command tag counts returned rows, not inserted ones, which can mislead apps. The old/new values in RETURNING (from version 18) identify inserted rows. The commit details were not independently verified.
Why it ranked
No. 9 of 140 with a score of 0.70. The panel rated it highest on new information (0.92) and substantiated (0.89), lowest on audience breadth (0.55). Placed No. 9, No. 10 by score alone: the placement terms moved other stories past it.
- AI judgeJudge 2claude-haiku-5-5
- Clear, well-substantiated technical tutorial on a new PostgreSQL 19 feature with examples; practical for database users, narrower audience, modest significance, no promotion or overclaim.
- AI judgeJudge 3gpt-5.6-luna
- A well-supported PostgreSQL 19 feature announcement with reproducible SQL examples and clear implications for race-free get-or-create patterns, write amplification, locking, RETURNING semantics, and sequence behavior.
Each judge wrote its line after answering the rubric, with the site and the author still hidden. Every answer behind this is in the table under Score.
Score
0.70total under rubric v2.3
- Significance0.58
- Reader interest0.75
- Audience breadth0.55
- Practical relevance0.82
- Substantiated0.89
- Technical depth0.87
- New information0.92
- Counts against: Promotional0.04
- Counts against: Overclaim0.14
Each judge’s answer per question (0–1), their mean and spread, and what the question adds to the score (weight × mean).
| Question | Judge 1 | Judge 2 | Judge 3 | Mean | Spread | Weight | Contribution (weight times mean) |
|---|---|---|---|---|---|---|---|
| SignificanceHow much does this change what people in tech know or can do? | 0.58 | 0.45 | 0.72 | 0.58 | 0.27 | +0.24 | +0.140 |
| Reader interestWould a well-informed senior engineer or tech founder want to read this today, and likely pass it on? | 0.64 | 0.72 | 0.90 | 0.75 | 0.26 | +0.26 | +0.196 |
| Audience breadthHow many people who build technology does it concern? | 0.51 | 0.55 | 0.58 | 0.55 | 0.07 | +0.13 | +0.071 |
| Practical relevanceHow useful is it to someone who builds software or tech products? | 0.86 | 0.75 | 0.86 | 0.82 | 0.11 | +0.22 | +0.181 |
| SubstantiatedHow well is it backed? Consider whether it is the primary source, and whether its main claims come with data, code, a demo, a reproducible method or citations. | 0.88 | 0.85 | 0.93 | 0.89 | 0.08 | +0.05 | +0.044 |
| Technical depthHow technically substantive is it? | 0.99 | 0.85 | 0.78 | 0.87 | 0.21 | +0.05 | +0.044 |
| New informationDoes it contain information absent from the stories covered in the last 7 days (list provided)? | 0.81 | 0.95 | 1.00 | 0.92 | 0.19 | +0.05 | +0.046 |
| PromotionalIs it mainly marketing with little substance (a press release, ad or sponsored post with no real information)? A launch post that carries real news is not promotional. | 0.05 | 0.05 | 0.02 | 0.04 | 0.03 | −0.19 | −0.008 |
| OverclaimDo the headline or conclusions claim more than the body supports? | 0.24 | 0.10 | 0.08 | 0.14 | 0.16 | −0.11 | −0.015 |
| Sum of contributions | +0.699 | ||||||
| Claim-check penalty | 0.000 | ||||||
| Total, as published | 0.699 | ||||||
Spread is the highest minus the lowest judge answer. marks a spread above 0.40: the judges disagree, and the story is marked contested.
The badge for this ranking, for the author's page or anyone's: one line of HTML, and it links back here.
<a href="https://rubric.hrih.si/editions/2026-12-03/9/"><img src="https://rubric.hrih.si/badge/2026-12-03/9.svg" alt="Ranked #9 on Rubric, 3 Dec 2026" width="231" height="28"></a>Claim check
Claim check: 1 matches source · 3 no source given · 4 couldn’t check. Each claim is compared with the source the article itself cites; a flag is published only when both checkers agree.
Couldn’t checkDate
Dean Rasheed committed the patch adding INSERT ... ON CONFLICT DO SELECT to PostgreSQL on 12 February 2026.
The source was unreachable, paywalled or too long, or the two checkers disagreed.
The article says “On 12th of February 2026, Dean Rasheed committed patch”
The source says No passage could be compared.
Source cited by the article: git.postgresql.org/pg/commitdiff/88327092ff06c48676d2a603420089bf493770f3
Couldn’t checkVersion
The new ON CONFLICT DO SELECT action returns the pre-existing rows when conflicts are detected and requires a RETURNING clause on the INSERT.
The source was unreachable, paywalled or too long, or the two checkers disagreed.
The article says “This adds a new ON CONFLICT action DO SELECT [FOR UPDATE/SHARE], which returns the pre-existing rows when conflicts are detected”
The source says No passage could be compared.
Source cited by the article: git.postgresql.org/pg/commitdiff/88327092ff06c48676d2a603420089bf493770f3
Couldn’t checkVersion
With DO SELECT FOR UPDATE/SHARE, rows filtered out by the optional WHERE clause are still locked.
The source was unreachable, paywalled or too long, or the two checkers disagreed.
The article says “rows filtered out by the WHERE clause are still locked”
The source says No passage could be compared.
Source cited by the article: git.postgresql.org/pg/commitdiff/88327092ff06c48676d2a603420089bf493770f3
Couldn’t checkVersion
The commit bumps catversion because stored rules change.
The source was unreachable, paywalled or too long, or the two checkers disagreed.
The article says “Bumps catversion as stored rules change”
The source says No passage could be compared.
Source cited by the article: git.postgresql.org/pg/commitdiff/88327092ff06c48676d2a603420089bf493770f3
No source givenCausal conclusion
The "fake update" workaround (ON CONFLICT DO UPDATE SET username = excluded.username) writes a new row version, leaving a dead row to be vacuumed, generating WAL and firing update triggers.
The article gives no link or citation for it.
The article says “new row version was written, old one is now dead, and will have to be vacuumed. Plus WAL, plus update triggers fire, and so on”
The source says No source to compare with.
No source givenCausal conclusion
With DO SELECT, the conflicting row is returned unchanged (same ctid and xmin) and nothing is written for it.
The article gives no link or citation for it.
The article says “depesz row is returned as it was – same ctid, same xmin. Nothing was written for it”
The source says No source to compare with.
No source givenNumber
With DO SELECT the command tag count is the number of returned rows, not inserted rows.
The article gives no link or citation for it.
The article says “With do select the count is number of returned rows, not inserted ones”
The source says No source to compare with.
Matches sourceVersion
Since PostgreSQL 18, RETURNING supports old and new values.
The cited source says the same thing.
The article says “Since Pg 18 we have old and new in returning”
The source says “Add OLD/NEW support to RETURNING in DML queries”
Source cited by the article: depesz.com/2025/01/30/waiting-for-postgresql-18-add-old-new-support-to-returning-in-dml-queries
Also covered by
No other coverage was clustered with this story.
Elsewhere
Elsewhere: HN —
Recorded for context only, checked 3 Dec 2026, 05:47 UTC. It played no part in the ranking.