Barriers, Volatile, and Atomics: How PostgreSQL Orders Memory Accesses
Comments on “Barriers, Volatile, and Atomics: How PostgreSQL Orders Memory Accesses”
Claim-checked. Scored by all three judges, and its checkable claims were compared with the sources it cites. How far stories are checked
Jan Nidzwetzki's post explains why PostgreSQL's shared-memory code needs compiler and CPU barriers. GCC 14.2 at -O2 swaps two stores in a writer function, letting a reader on another core see done=true with stale data; pg_compiler_barrier() restores the order. It then covers store buffers and invalidate queues, noting that x86 permits only Store→Load reordering while ARM permits all four. Code that runs on x86 may therefore fail on ARM servers such as Graviton. Several hardware and PostgreSQL version details could not be verified.
Why it ranked
No. 9 of 57 with a score of 0.63. The panel rated it highest on technical depth (0.95) and substantiated (0.89), lowest on audience breadth (0.49). Placed No. 9, No. 12 by score alone: the placement terms moved other stories past it.
- AI judgeJudge 2claude-haiku-5-5
- Deep, well-substantiated tutorial on memory ordering and barriers in PostgreSQL with hardware-level detail; valuable to systems builders but niche and not a landmark, and not in recent coverage.
- AI judgeJudge 3gpt-5.6-luna
- A deeply technical PostgreSQL and systems explanation, with code, assembly, architecture comparisons, and source-based examples. It is highly useful to systems and database engineers, though narrower than general tech coverage.
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.63total under rubric v2.3
- Significance0.50
- Reader interest0.71
- Audience breadth0.49
- Practical relevance0.65
- Substantiated0.89
- Technical depth0.95
- New information0.88
- Counts against: Promotional0.02
- Counts against: Overclaim0.10
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.52 | 0.35 | 0.62 | 0.50 | 0.27 | +0.24 | +0.119 |
| 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.78 | 0.71 | 0.14 | +0.26 | +0.185 |
| Audience breadthHow many people who build technology does it concern? | 0.58 | 0.40 | 0.48 | 0.49 | 0.18 | +0.13 | +0.063 |
| Practical relevanceHow useful is it to someone who builds software or tech products? | 0.62 | 0.60 | 0.72 | 0.65 | 0.12 | +0.22 | +0.142 |
| 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.91 | 0.85 | 0.90 | 0.89 | 0.06 | +0.05 | +0.044 |
| Technical depthHow technically substantive is it? | 1.00 | 0.95 | 0.90 | 0.95 | 0.10 | +0.05 | +0.047 |
| New informationDoes it contain information absent from the stories covered in the last 7 days (list provided)? | 0.88 | 0.80 | 0.96 | 0.88 | 0.16 | +0.05 | +0.044 |
| 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.03 | 0.02 | 0.01 | 0.02 | 0.02 | −0.19 | −0.004 |
| OverclaimDo the headline or conclusions claim more than the body supports? | 0.14 | 0.05 | 0.12 | 0.10 | 0.09 | −0.11 | −0.011 |
| Sum of contributions | +0.631 | ||||||
| Claim-check penalty | 0.000 | ||||||
| Total, as published | 0.631 | ||||||
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-11-30/9/"><img src="https://rubric.hrih.si/badge/2026-11-30/9.svg" alt="Ranked #9 on Rubric, 30 Nov 2026" width="238" height="28"></a>Claim check
Claim check: 1 matches source · 1 no source given · 6 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 checkNumber
Intel's Core microarchitecture (introduced in 2006 with the Core 2 CPUs) uses a 14-stage pipeline and can complete up to 4 instructions simultaneously.
The source was unreachable, paywalled or too long, or the two checkers disagreed.
The article says “Intel’s Core microarchitecture (introduced in 2006 with the Core 2 CPUs) uses a 14-stage pipeline and can complete up to 4 instructions simultaneously”
The source says No passage could be compared.
Source cited by the article: intel.com/pressroom/kits/events/idfspr_2006/BackgrounderIDF.pdf
Couldn’t checkNumber
Arm specifies the pipeline depth of its Neoverse N2 server core as 10 clock cycles.
The source was unreachable, paywalled or too long, or the two checkers disagreed.
The article says “Arm specifies the pipeline depth of its Neoverse N2 server core as 10 clock cycles”
The source says No passage could be compared.
Source cited by the article: hc33.hotchips.org/assets/program/conference/day1/20210818_Hotchips_NeoverseN2.pdf
Couldn’t checkNumber
The Arm Neoverse V2 core can decode 6 instructions and dispatch 8 micro-operations per clock cycle.
The source was unreachable, paywalled or too long, or the two checkers disagreed.
The article says “The Arm Neoverse V2 core can decode 6 instructions and dispatch 8 micro-operations per clock cycle”
The source says No passage could be compared.
Source cited by the article: hc2023.hotchips.org/assets/program/conference/day1/CPU1/HC2023.Arm.MagnusBruce.v04.FINAL.pdf
Couldn’t checkVersion
On x86, read and write barriers in PostgreSQL are just compiler barriers, and only the full memory barrier triggers a CPU instruction.
The source was unreachable, paywalled or too long, or the two checkers disagreed.
The article says “On x86, read and write barriers are just compiler barriers because x86 does not reorder Load→Load or Store→Store operations”
The source says No passage could be compared.
Source cited by the article: github.com/postgres/postgres/blob/5ffc82103773eea1ab5aa699edc301d4f03de4ce/src/include/port/atomics/arch-x86.h
No source givenVersion
PostgreSQL required only C99 until version 18; PostgreSQL 19 raised the requirement to C11.
The article gives no link or citation for it.
The article says “PostgreSQL required only C99 until version 18; PostgreSQL 19 raised the requirement to C11”
The source says No source to compare with.
Couldn’t checkDate
Memory barriers were added in PostgreSQL 9.2.
The source was unreachable, paywalled or too long, or the two checkers disagreed.
The article says “Memory barriers were added in PostgreSQL 9.2”
The source says No passage could be compared.
Source cited by the article: github.com/postgres/postgres/commit/0c8eda6258805223fa412ab55a1f130fbc51afa0
Matches sourceVersion
In PostgreSQL 9.5, the spinlock functions also became compiler barriers, removing the need to access spinlock-protected data through volatile pointers.
The cited source says the same thing.
The article says “This changed in PostgreSQL 9.5, when the spinlock functions also became compiler barriers”
The source says “Prior to PostgreSQL 9.5, this 61+ * was the caller's responsibility, which meant that callers had to use 62+ * volatile-qualified pointers to refer to both the spinlock itself and…”
Source cited by the article: github.com/postgres/postgres/commit/0709b7ee72e4bc71ad07b7120acd117265ab51d0
Couldn’t checkCausal conclusion
A 2008 rewrite of the shared invalidation message queue (sinvaladt.c) introduced a memory ordering bug, which Tom Lane fixed by protecting maxMsgNum with a spinlock.
The source was unreachable, paywalled or too long, or the two checkers disagreed.
The article says “In 2008, a rewrite of the shared invalidation message queue (sinvaladt.c) introduced a memory ordering bug”
The source says No passage could be compared.
Source cited by the article: github.com/postgres/postgres/commit/fad153ec45299bd4d4f29dec8d9e04e2f1c08148
Also covered by
No other coverage was clustered with this story.
Elsewhere
Elsewhere: HN 2 pts, not on front page
Recorded for context only, checked 30 Nov 2026, 05:47 UTC. It played no part in the ranking.