Making Numeric Faster in Postgres
Comments on “Making Numeric Faster in Postgres”
Claim-checked. Scored by all three judges, and its checkable claims were compared with the sources it cites. How far stories are checked
A Postgres developer, Dan Olivo, describes a set of "fast path" optimisations for the numeric type, which is often slow because short on-disk values must be unpacked and palloc'd on every operation.
Why it ranked
No. 23 of 143 with a score of 0.62. The panel rated it highest on technical depth (0.93) and new information (0.90), lowest on audience breadth (0.47). Placed No. 23, No. 61 by score alone: the placement terms moved other stories past it.
- AI judgeJudge 2claude-haiku-5-5
- Deep, benchmarked engineering write-up on PostgreSQL numeric fast paths; technically substantive and useful to database builders, but narrow in audience and not a landmark.
- AI judgeJudge 3gpt-5.6-luna
- A deeply technical PostgreSQL optimization write-up with reproducible patch descriptions, benchmarks across workloads and CPUs, and meaningful performance and memory gains. It is highly actionable for database and systems practitioners, though broader tech relevance is limited.
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.62total under rubric v2.3
- Significance0.55
- Reader interest0.71
- Audience breadth0.47
- Practical relevance0.64
- Substantiated0.80
- Technical depth0.93
- New information0.90
- Counts against: Promotional0.05
- Counts against: Overclaim0.20
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.54 | 0.40 | 0.72 | 0.55 | 0.32 | +0.24 | +0.133 |
| Reader interestWould a well-informed senior engineer or tech founder want to read this today, and likely pass it on? | 0.64 | 0.60 | 0.90 | 0.71 | 0.30 | +0.26 | +0.185 |
| Audience breadthHow many people who build technology does it concern? | 0.52 | 0.30 | 0.58 | 0.47 | 0.28 | +0.13 | +0.061 |
| Practical relevanceHow useful is it to someone who builds software or tech products? | 0.64 | 0.45 | 0.84 | 0.64 | 0.39 | +0.22 | +0.141 |
| 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.73 | 0.80 | 0.86 | 0.80 | 0.13 | +0.05 | +0.040 |
| Technical depthHow technically substantive is it? | 0.97 | 0.90 | 0.93 | 0.93 | 0.07 | +0.05 | +0.047 |
| New informationDoes it contain information absent from the stories covered in the last 7 days (list provided)? | 0.85 | 0.90 | 0.96 | 0.90 | 0.11 | +0.05 | +0.045 |
| 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.07 | 0.05 | 0.03 | 0.05 | 0.04 | −0.19 | −0.010 |
| OverclaimDo the headline or conclusions claim more than the body supports? | 0.27 | 0.20 | 0.12 | 0.20 | 0.15 | −0.11 | −0.022 |
| Sum of contributions | +0.621 | ||||||
| Claim-check penalty | 0.000 | ||||||
| Total, as published | 0.621 | ||||||
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-02/23/"><img src="https://rubric.hrih.si/badge/2026-12-02/23.svg" alt="Ranked #23 on Rubric, 2 Dec 2026" width="238" height="28"></a>Claim check
Claim check: 5 no source given · 3 couldn’t check. Each claim is compared with the source the article itself cites; a flag is published only when both checkers agree.
No source givenBenchmark result
On the author's 2019 Intel MacBook Pro, sorting 5 million numeric rows took about 6400 ms on current master and about 4900 ms with the static-buffer patches.
The article gives no link or citation for it.
The article says “execution time is consistently ~6400 ms on current master and ~4900 ms with the patches — almost a quarter faster”
The source says No source to compare with.
Couldn’t checkFirst, only or fastest
numeric.c already uses a preallocated buffer in exactly one place, numeric_abbrev_convert(), which builds abbreviated keys for sorting.
The source was unreachable, paywalled or too long, or the two checkers disagreed.
The article says “Curiously, numeric.c already uses a preallocated buffer, in exactly one place”
The source says No passage could be compared.
Source cited by the article: github.com/postgres/postgres/blob/e87b024bfb8dd55e3049b1b6e6ab4e810cf1abc8/src/backend/utils/adt/numeric.c
Couldn’t checkQuote
A source comment in numeric.c says saving two palloc/pfree cycles with persistent buffers has not so far been considered worth the effort.
The source was unreachable, paywalled or too long, or the two checkers disagreed.
The article says “two palloc/pfree cycles could be saved with persistent buffers, but this “has not so far been considered to be worth the effort”
The source says No passage could be compared.
Source cited by the article: github.com/postgres/postgres/blob/e87b024bfb8dd55e3049b1b6e6ab4e810cf1abc8/src/backend/utils/adt/numeric.c
No source givenBenchmark result
With the equality fast path, numeric comparison queries run faster: WHERE a = b with the same scale is 39% faster and k IN (seven constants) is 44% faster.
The article gives no link or citation for it.
The article says “WHERE a = b, same scale — −39%”
The source says No source to compare with.
No source givenBenchmark result
The fast arithmetic patches make count(v + q) 45% faster on Intel, 35% on AMD and 30% on Arm.
The article gives no link or citation for it.
The article says “count(v + q) — −45% / −35% / −30%”
The source says No source to compare with.
No source givenNumber
With the aggregate patch, sum(v) over 500k groups uses 80 MB instead of 192 MB on master (−58%).
The article gives no link or citation for it.
The article says “sum(v), 500k groups — 192 MB on master, 80 MB with the patch (−58%”
The source says No source to compare with.
No source givenBenchmark result
With the whole patchset, the multi-aggregate query over numeric runs in about 2.8 s instead of about 9.4 s, and memory drops from about 1.8 GB to about 480 MiB.
The article gives no link or citation for it.
The article says “the query runs in ~2.8 s instead of the previous ~9.4 s. And memory consumption has dropped from ~1.8 GB to ~480 MiB”
The source says No source to compare with.
Couldn’t checkNumber
One PostgreSQL fork has already adopted this patch set in its codebase.
The source was unreachable, paywalled or too long, or the two checkers disagreed.
The article says “one of the PostgreSQL forks has already adoptedthis patch set in its codebase”
The source says No passage could be compared.
Source cited by the article: tantorlabs.com
Also covered by
No other coverage was clustered with this story.
Elsewhere
Elsewhere: HN 3 pts, not on front page
Recorded for context only, checked 2 Dec 2026, 05:47 UTC. It played no part in the ranking.