Paste into your AI assistant to fix the article, then ask for a re-review.
Show the text
Fix the article with this report, then ask pgTrue for a re-review.
# pgTrue report: Postgres High Availability from first principles
Article title: Postgres High Availability from first principles
Article URL: https://multigres.com/blog/high-availability-from-first-principles
Report URL: https://pgtrue.postgres.ai/shared/brief/4b9b420c-d03e-4e64-9103-58ef8278a64d
Audited revision: 5 of 5, 2026-10-19 07:19:04 UTC
Overall letter: B
## Axes
- Factual: B · 1 wrong · 14 checked · 0 caveats · assessed
- Applicable: A · 0 wrong · 8 checked · 1 caveats · assessed
- Consistent: A · 0 wrong · 14 checked · 0 caveats · assessed
- Transparent: A · 0 wrong · 4 checked · 0 caveats · assessed
- Safe: — · 0 wrong · 0 checked · 0 caveats · not applicable
ElephantSeal: B.
## Report metadata
- Report: Technical fact-check, edition 3
- pgTrue version: audited with v1.0.14 (approx.) · regraded with v1.1.3
- Issued: 2026-10-19
- Edition: Updated after review. Corrections are listed below.
- Submitted: Submitted by the PostgresAI team.
- Author response: No written reply from the author. We re-audited this article 4 times; see Revisions below. Policy: [right-of-reply and corrections policy](/pgtrue/security).
## Findings needing a change (2)
### F1 · Inaccurate · Factual · Replica acknowledgment does not require WAL application
Location: excerpt · section “Why the old primary stays disconnected” · as fetched 2026-10-19 · [open in article](https://multigres.com/blog/high-availability-from-first-principles#:~:text=A%20replica%20acknowledges%20it%20once,streamed%20and%20applied%20the%20WAL.)
Article says:
```text
A replica acknowledges it once it has streamed and applied the WAL.
```
What is true:
PostgreSQL reports write, flush, and replay positions separately. REL_18_4 synchronous_commit=on waits for standby flush, not replay. remote_apply waits for replay. Multigres selects on for replicated durability. A flush acknowledgment does not establish visibility to standby queries.
So what:
Gate replica reads on WAL replay progress when they must observe a preceding committed write.
Charitable reading:
The sentence would describe remote_apply acknowledgments. Multigres instead configures synchronous_commit=on for replicated durability.
Review: We tested the remote_apply reading. E-15 selects on for replicated durability. E-10 distinguishes flush from replay. Gating replica reads addresses the supported stale-read consequence. We tested the remote_apply reading. E-15 selects on for replicated durability. E-38 requires flush, while E-11 separately requires replay.
Sources:
- [REL_18_4 · doc/src/sgml/config.sgml:3204-3213](https://github.com/postgres/postgres/blob/f5cc81719e6da4cbdb1f797c48b693e91018153a/doc/src/sgml/config.sgml#L3204-L3213)
Excerpt:
```text
it waits for WAL replay. When set to <literal>on</literal>,
commits wait until replies
from the current synchronous standby(s) indicate they have received
the commit record of the transaction and flushed it to durable storage. This
```
- [REL_18_4 · doc/src/sgml/config.sgml:3204-3213](https://github.com/postgres/postgres/blob/f5cc81719e6da4cbdb1f797c48b693e91018153a/doc/src/sgml/config.sgml#L3204-L3213)
Excerpt:
```text
When set to <literal>remote_apply</literal>, commits will wait
until replies from the current synchronous standby(s) indicate they
have received the commit record of the transaction and applied
it, so that it has become visible to queries on the standby(s),
```
- [REL_18_4 · src/backend/replication/walreceiver.c:1125-1139](https://github.com/postgres/postgres/blob/f5cc81719e6da4cbdb1f797c48b693e91018153a/src/backend/replication/walreceiver.c#L1125-L1139)
Excerpt:
```text
writePtr = LogstreamResult.Write;
flushPtr = LogstreamResult.Flush;
applyPtr = GetXLogReplayRecPtr(NULL);
resetStringInfo(&reply_message);
pq_sendbyte(&reply_message, 'r');
pq_sendint64(&reply_message, writePtr);
pq_sendint64(&reply_message, flushPtr);
pq_sendint64(&reply_message, applyPtr);
```
- [multigres@main@5b40c9c455 · go/common/consensus/policy_at_least_n.go:95-135](https://github.com/multigres/multigres/blob/5b40c9c455b4d25c5e1cae80b85cc38422a023fa/go/common/consensus/policy_at_least_n.go#L95-L135)
Excerpt:
```text
return &SyncReplicationConfig{
SyncCommit: multipoolermanagerdatapb.SynchronousCommitLevel_SYNCHRONOUS_COMMIT_ON,
SyncMethod: multipoolermanagerdatapb.SynchronousMethod_SYNCHRONOUS_METHOD_ANY,
NumSync: requiredNumSync,
SyncStandbyIDs: cohort,
}, nil
```
- [REL_18_4 · src/backend/replication/walreceiver.c:1128-1136](https://github.com/postgres/postgres/blob/f5cc81719e6da4cbdb1f797c48b693e91018153a/src/backend/replication/walreceiver.c#L1128-L1136)
Excerpt:
```text
writePtr = LogstreamResult.Write;
flushPtr = LogstreamResult.Flush;
applyPtr = GetXLogReplayRecPtr(NULL);
resetStringInfo(&reply_message);
pq_sendbyte(&reply_message, 'r');
pq_sendint64(&reply_message, writePtr);
pq_sendint64(&reply_message, flushPtr);
pq_sendint64(&reply_message, applyPtr);
```
- [REL_18_4 · doc/src/sgml/config.sgml:3210-3213](https://github.com/postgres/postgres/blob/f5cc81719e6da4cbdb1f797c48b693e91018153a/doc/src/sgml/config.sgml#L3210-L3213)
Excerpt:
```text
it waits for WAL replay. When set to <literal>on</literal>,
commits wait until replies
from the current synchronous standby(s) indicate they have received
the commit record of the transaction and flushed it to durable storage. This
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/4b9b420c-d03e-4e64-9103-58ef8278a64d#F1
### F2 · Imprecise · Applicable · Imprecise: “A primary acknowledges a write once it is durable on local storage.”
Location: excerpt · section “Why the old primary stays disconnected” · as fetched 2026-10-19 · [open in article](https://multigres.com/blog/high-availability-from-first-principles#:~:text=A%20primary%20acknowledges%20a%20write,is%20durable%20on%20local%20storage.)
Article says:
```text
A primary acknowledges a write once it is durable on local storage.
```
What is true:
The sentence describes default asynchronous replication. It omits configuration qualifiers. REL_18_4 doc/src/sgml/config.sgml:3179 permits acknowledgment before local flush with synchronous_commit=off. Lines 3197–3213 add standby requirements for synchronous replication. Check synchronous_commit and synchronous_standby_names before changing the HA design.
So what:
Inspect synchronous_commit and synchronous_standby_names before treating acknowledgment as local-only or changing the HA design.
Review: E-2 does not explicitly claim local-only acknowledgment. Its default-case explanation is correct. The omitted settings justify imprecision rather than misleading. We tested the default asynchronous reading, which the finding already preserves. The general statement omits configurable acknowledgment requirements. Inspecting synchronous_commit and synchronous_standby_names is a concrete corrective action.
Sources:
- [REL_18_4 · doc/src/sgml/config.sgml:3204-3213](https://github.com/postgres/postgres/blob/f5cc81719e6da4cbdb1f797c48b693e91018153a/doc/src/sgml/config.sgml#L3204-L3213)
Excerpt:
```text
it waits for WAL replay. When set to <literal>on</literal>,
commits wait until replies
from the current synchronous standby(s) indicate they have received
the commit record of the transaction and flushed it to durable storage. This
```
- [REL_18_4 · doc/src/sgml/config.sgml:3173-3183](https://github.com/postgres/postgres/blob/f5cc81719e6da4cbdb1f797c48b693e91018153a/doc/src/sgml/config.sgml#L3173-L3183)
Excerpt:
```text
non-<literal>off</literal> modes is to wait for local flush of WAL
to disk. In <literal>off</literal> mode, there is no waiting,
so there can be a delay between when success is reported to the
client and when the transaction is later guaranteed to be safe
```
- [REL_18_4 · src/backend/access/transam/xact.c:1540-1560](https://github.com/postgres/postgres/blob/f5cc81719e6da4cbdb1f797c48b693e91018153a/src/backend/access/transam/xact.c#L1540-L1560)
Excerpt:
```text
if (wrote_xlog && markXidCommitted)
SyncRepWaitForLSN(XactLastRecEnd, true);
```
- [multigres@main@5b40c9c455 · go/common/consensus/policy_at_least_n.go:95-135](https://github.com/multigres/multigres/blob/5b40c9c455b4d25c5e1cae80b85cc38422a023fa/go/common/consensus/policy_at_least_n.go#L95-L135)
Excerpt:
```text
return &SyncReplicationConfig{
SyncCommit: multipoolermanagerdatapb.SynchronousCommitLevel_SYNCHRONOUS_COMMIT_ON,
SyncMethod: multipoolermanagerdatapb.SynchronousMethod_SYNCHRONOUS_METHOD_ANY,
NumSync: requiredNumSync,
SyncStandbyIDs: cohort,
}, nil
```
- [REL_18_4 · doc/src/sgml/config.sgml:3197-3200](https://github.com/postgres/postgres/blob/f5cc81719e6da4cbdb1f797c48b693e91018153a/doc/src/sgml/config.sgml#L3197-L3200)
Excerpt:
```text
If <xref linkend="guc-synchronous-standby-names"/> is non-empty,
<varname>synchronous_commit</varname> also controls whether
transaction commits will wait for their WAL records to be
processed on the standby server(s).
```
- [REL_18_4 · src/backend/access/transam/xact.c:1556-1557](https://github.com/postgres/postgres/blob/f5cc81719e6da4cbdb1f797c48b693e91018153a/src/backend/access/transam/xact.c#L1556-L1557)
Excerpt:
```text
if (wrote_xlog && markXidCommitted)
SyncRepWaitForLSN(XactLastRecEnd, true);
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/4b9b420c-d03e-4e64-9103-58ef8278a64d#F2
## Verified accurate claims (12)
### F3 · Accurate · Factual · pg_promote triggers standby promotion
Location: excerpt · section “Approaches to High Availability” · as fetched 2026-10-19 · [open in article](https://multigres.com/blog/high-availability-from-first-principles#:~:text=runs%20pg_promote)
Article says:
```text
…runs pg_promote…
```
What is true:
REL_18_4 documents pg_promote as promoting a standby to primary. src/backend/access/transam/xlogfuncs.c creates the promotion signal file and signals the postmaster.
Charitable reading:
The article presents pg_promote as the promotion step, then separately discusses fencing and durability.
Review: We checked whether pg_promote supplies broader failover guarantees. F3 claims only promotion. E-28 creates the promotion signal and signals the postmaster. We checked whether promotion implied fencing or durability. F3 claims only promotion. E-27 and E-28 support that effect.
Sources:
- [REL_18_4 · doc/src/sgml/func.sgml:29353-29359](https://github.com/postgres/postgres/blob/f5cc81719e6da4cbdb1f797c48b693e91018153a/doc/src/sgml/func.sgml#L29353-L29359)
Excerpt:
```text
Promotes a standby server to primary status.
```
- [REL_18_4 · src/backend/access/transam/xlogfuncs.c:670-742](https://github.com/postgres/postgres/blob/f5cc81719e6da4cbdb1f797c48b693e91018153a/src/backend/access/transam/xlogfuncs.c#L670-L742)
Excerpt:
```text
/* signal the postmaster */
if (kill(PostmasterPid, SIGUSR1) != 0)
```
- [REL_18_4 · doc/src/sgml/func.sgml:29354-29354](https://github.com/postgres/postgres/blob/f5cc81719e6da4cbdb1f797c48b693e91018153a/doc/src/sgml/func.sgml#L29354-L29354)
Excerpt:
```text
Promotes a standby server to primary status.
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/4b9b420c-d03e-4e64-9103-58ef8278a64d#F3
### F4 · Accurate · Factual · A replica rejects another coordinator at its accepted term
Location: excerpt · section “What happens during a failover” · as fetched 2026-10-19 · [open in article](https://multigres.com/blog/high-availability-from-first-principles#:~:text=Replicas%20accept%20only%20one%20coordinator%20per%20term)
Article says:
```text
Replicas accept only one coordinator per term…
```
What is true:
Multigres rejects a different coordinator at an already accepted term. Its AT_LEAST_N recruitment checks also require majority overlap and fewer than N unrecruited members. These checks match the article's distinction between coordinator exclusion and revoking old-policy progress.
Charitable reading:
The claim concerns competing coordinators within one term. Later terms can replace earlier attempts.
Review: We tested same-term retries and disjoint recruitment. E-16 permits matching retries but rejects another coordinator. E-17 separately enforces majority overlap and revocation. We checked same-term retries and quorum overlap. E-16 rejects different coordinators. E-17 separately checks majority overlap and old-policy revocation.
Sources:
- [multigres@main@5b40c9c455 · go/common/consensus/revocation.go:195-229](https://github.com/multigres/multigres/blob/5b40c9c455b4d25c5e1cae80b85cc38422a023fa/go/common/consensus/revocation.go#L195-L229)
Excerpt:
```text
if storedTerm == revokedBelowTerm {
storedCoord := topoclient.ClusterIDString(stored.GetAcceptedCoordinatorId())
reqCoord := topoclient.ClusterIDString(revocation.GetAcceptedCoordinatorId())
if storedCoord != reqCoord {
return fmt.Errorf(
"cannot accept revocation: already accepted term %d from coordinator %s, requested by %s",
storedTerm, storedCoord, reqCoord,
)
}
```
- [multigres@main@5b40c9c455 · go/common/consensus/policy_at_least_n.go:41-90](https://github.com/multigres/multigres/blob/5b40c9c455b4d25c5e1cae80b85cc38422a023fa/go/common/consensus/policy_at_least_n.go#L41-L90)
Excerpt:
```text
unrecruited := len(cohort) - len(recruited)
if unrecruited >= p.N {
return fmt.Errorf("revocation not satisfied: %d cohort poolers not recruited, another possible quorum could be formed of %d",
unrecruited, p.N)
}
return nil
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/4b9b420c-d03e-4e64-9103-58ef8278a64d#F4
### F5 · Accurate · Factual · Leader discovery retains candidates tied at the highest eligible LSN
Location: Article · exact quote · [open in article](https://multigres.com/blog/high-availability-from-first-principles#:~:text=The%20new%20leader%20is%20chosen,tied%20at%20that%20most%2Dadvanced%20position.)
Article says:
```text
…The new leader is chosen from the nodes already tied at that most-advanced position.
```
What is true:
go/common/consensus/proposals.go:395-424 filters recruits by the outgoing rule. A higher LSN replaces earlier candidates. Equal LSNs retain multiple eligible candidates.
Charitable reading:
The claim concerns eligible recruited nodes under the outgoing rule, not every reachable replica.
Review: We checked whether higher LSNs from another rule could qualify. E-18 filters by the outgoing rule before collecting maximum-LSN ties. F5 preserves that restriction. We checked whether discovery compares every reachable replica. E-33 filters the outgoing rule and retains ties at the highest eligible LSN.
Sources:
- [multigres@main@5b40c9c455 · go/common/consensus/proposals.go:395-424](https://github.com/multigres/multigres/blob/5b40c9c455b4d25c5e1cae80b85cc38422a023fa/go/common/consensus/proposals.go#L395-L424)
Excerpt:
```text
if lsn > bestLSN {
bestLSN = lsn
eligibleLeaders = eligibleLeaders[:0]
}
if lsn >= bestLSN {
// There may be multiple poolers that have the most advanced LSN.
eligibleLeaders = append(eligibleLeaders, cs)
}
```
- [multigres@main@5b40c9c455 · go/common/consensus/proposals.go:375-435](https://github.com/multigres/multigres/blob/5b40c9c455b4d25c5e1cae80b85cc38422a023fa/go/common/consensus/proposals.go#L375-L435)
Excerpt:
```text
if lsn > bestLSN {
bestLSN = lsn
eligibleLeaders = eligibleLeaders[:0]
}
if lsn >= bestLSN {
// There may be multiple poolers that have the most advanced LSN.
eligibleLeaders = append(eligibleLeaders, cs)
}
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/4b9b420c-d03e-4e64-9103-58ef8278a64d#F5
### F6 · Accurate · Factual · Multigres automatically rewinds a divergent returning primary
Location: Article · exact quote · [open in article](https://multigres.com/blog/high-availability-from-first-principles#:~:text=Multigres%20runs%20pg_rewind%20automatically%20as,bringing%20the%20old%20primary%20back.)
Article says:
```text
Multigres runs pg_rewind automatically as part of bringing the old primary back.
```
What is true:
Multigres routes stale-leader recovery through SetTermPrimary. Its manager invokes pg_rewind with -R when the servers diverged. PostgreSQL finds the divergence through timeline histories. WAL recovery then brings the target into a consistent state.
Charitable reading:
Automatic rewind describes the recovery path when rewind succeeds. It does not guarantee recovery without the required WAL.
Review: We checked whether rewind was merely documented or unconditional. E-20 invokes rewind after detecting divergence, and E-35 executes pg_rewind. F6 does not promise successful recovery under every failure. We checked whether rewind appears only in comments. E-20 invokes the RPC after detecting divergence. E-35 invokes pg_rewind.
Sources:
- [multigres@main@5b40c9c455 · go/services/multiorch/recovery/actions/demote_stale_leader.go:130-179](https://github.com/multigres/multigres/blob/5b40c9c455b4d25c5e1cae80b85cc38422a023fa/go/services/multiorch/recovery/actions/demote_stale_leader.go#L130-L179)
Excerpt:
```text
// Route through SetTermPrimary on the stale leader. The pooler-side handler:
// 1. Stops postgres
// 2. Runs pg_rewind to sync with the correct leader's postgres
// 3. Restarts as standby
// 4. Clears sync replication config
// 5. Updates topology to REPLICA
```
- [multigres@main@5b40c9c455 · go/services/multipooler/manager/rpc_manager.go:1069-1090](https://github.com/multigres/multigres/blob/5b40c9c455b4d25c5e1cae80b85cc38422a023fa/go/services/multipooler/manager/rpc_manager.go#L1069-L1090)
Excerpt:
```text
rewindReq := &pgctldpb.PgRewindRequest{
SourceHost: sourceHost,
SourcePort: sourcePort,
DryRun: false,
ApplicationName: pid.appName,
ExtraArgs: []string{"-R"},
}
rewindResp, err := pm.pgctldClient.PgRewind(ctx, rewindReq)
```
- [REL_18_4 · src/bin/pg_rewind/pg_rewind.c:386-400](https://github.com/postgres/postgres/blob/f5cc81719e6da4cbdb1f797c48b693e91018153a/src/bin/pg_rewind/pg_rewind.c#L386-L400)
Excerpt:
```text
sourceHistory = getTimelineHistory(source_tli, true, &sourceNentries);
targetHistory = getTimelineHistory(target_tli, false, &targetNentries);
findCommonAncestorTimeline(sourceHistory, sourceNentries,
targetHistory, targetNentries,
&divergerec, &lastcommontliIndex);
```
- [REL_18_4 · doc/src/sgml/ref/pg_rewind.sgml:42-110](https://github.com/postgres/postgres/blob/f5cc81719e6da4cbdb1f797c48b693e91018153a/doc/src/sgml/ref/pg_rewind.sgml#L42-L110)
Excerpt:
```text
After running <application>pg_rewind</application>, WAL replay needs to
complete for the data directory to be in a consistent state. When the
target server is started again it will enter archive recovery and replay
all WAL generated in the source server from the last checkpoint before
the point of divergence. If some of the WAL was no longer available in the
```
- [multigres@main@5b40c9c455 · go/services/multiorch/recovery/actions/demote_stale_leader.go:145-180](https://github.com/multigres/multigres/blob/5b40c9c455b4d25c5e1cae80b85cc38422a023fa/go/services/multiorch/recovery/actions/demote_stale_leader.go#L145-L180)
Excerpt:
```text
// Route through SetTermPrimary on the stale leader. The pooler-side handler:
// 1. Stops postgres
// 2. Runs pg_rewind to sync with the correct leader's postgres
// 3. Restarts as standby
```
- [multigres@main@5b40c9c455 · go/cmd/pgctld/command/rewind.go:45-53](https://github.com/multigres/multigres/blob/5b40c9c455b4d25c5e1cae80b85cc38422a023fa/go/cmd/pgctld/command/rewind.go#L45-L53)
Excerpt:
```text
cmd := executil.Command(ctx, "pg_rewind", args...)
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/4b9b420c-d03e-4e64-9103-58ef8278a64d#F6
### F8 · Accurate · Factual · Divergent WAL history prevents the described direct streaming recovery
Location: Article · exact quote · [open in article](https://multigres.com/blog/high-availability-from-first-principles#:~:text=because%20the%20timelines%20do%20not%20match)
Article says:
```text
…because the timelines do not match…
```
What is true:
REL_18_4 src/backend/replication/walsender.c:879-918 checks the requested start position against timeline history. It rejects a start position beyond the fork point. This supports the article's divergent-old-primary scenario.
Charitable reading:
The preceding sentences specify divergent old-primary WAL. The claim does not concern every difference in timeline number.
Review: We tested ordinary timeline changes as a counterexample. F8 concerns divergent WAL beyond the fork. E-24 rejects that starting position, not every timeline difference. We tested whether timeline inequality alone causes rejection. F8 preserves the divergent-WAL condition. E-24 rejects starting beyond the fork.
Sources:
- [REL_18_4 · src/backend/replication/walsender.c:879-918](https://github.com/postgres/postgres/blob/f5cc81719e6da4cbdb1f797c48b693e91018153a/src/backend/replication/walsender.c#L879-L918)
Excerpt:
```text
if (!XLogRecPtrIsInvalid(switchpoint) &&
switchpoint < cmd->startpoint)
{
ereport(ERROR,
(errmsg("requested starting point %X/%X on timeline %u is not in this server's history",
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/4b9b420c-d03e-4e64-9103-58ef8278a64d#F8
### F9 · Accurate · Factual · Asynchronous replication permits primary-only committed writes
Location: Article · exact quote · [open in article](https://multigres.com/blog/high-availability-from-first-principles#:~:text=A%20primary%20can%20crash%20holding,that%20no%20replica%20ever%20sees.)
Article says:
```text
A primary can crash holding writes that no replica ever sees.
```
What is true:
REL_18_4 streaming replication is asynchronous by default. A primary crash can leave committed transactions absent from standbys. The article's possible primary-only WAL scenario matches that behavior.
Charitable reading:
The statement says a primary can retain unseen writes. It does not say every configured synchronous deployment loses acknowledged writes.
Review: We tested synchronous replication as a counterexample. The article states a possibility, and F9 expressly limits its explanation to asynchronous replication. E-25 supports that possibility. We tested whether F9 claims this happens under every policy. It states an asynchronous-replication possibility. E-25 explicitly documents that failure window.
Sources:
- [REL_18_4 · src/backend/access/transam/xact.c:1540-1560](https://github.com/postgres/postgres/blob/f5cc81719e6da4cbdb1f797c48b693e91018153a/src/backend/access/transam/xact.c#L1540-L1560)
Excerpt:
```text
if (wrote_xlog && markXidCommitted)
SyncRepWaitForLSN(XactLastRecEnd, true);
```
- [REL_18_4 · doc/src/sgml/high-availability.sgml:1060-1081](https://github.com/postgres/postgres/blob/f5cc81719e6da4cbdb1f797c48b693e91018153a/doc/src/sgml/high-availability.sgml#L1060-L1081)
Excerpt:
```text
<productname>PostgreSQL</productname> streaming replication is asynchronous by
default. If the primary server
crashes then some transactions that were committed may not have been
replicated to the standby server, causing data loss. The amount
```
- [REL_18_4 · doc/src/sgml/high-availability.sgml:530-533](https://github.com/postgres/postgres/blob/f5cc81719e6da4cbdb1f797c48b693e91018153a/doc/src/sgml/high-availability.sgml#L530-L533)
Excerpt:
```text
It should be noted that log shipping is asynchronous, i.e., the WAL
records are shipped after transaction commit. As a result, there is a
window for data loss should the primary server suffer a catastrophic
failure; transactions not yet shipped will be lost.
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/4b9b420c-d03e-4e64-9103-58ef8278a64d#F9
### F10 · Accurate · Factual · The cited framework separates coordination from replication
Location: excerpt · section “Multiorch: the coordinator” · as fetched 2026-10-19 · [open in article](https://multigres.com/blog/high-availability-from-first-principles#:~:text=Generalized%20consensus%20separates%20the%20roles)
Article says:
```text
Generalized consensus separates the roles…
```
What is true:
Part 11 assigns leadership changes to coordinators. It separately defines leaders, followers, and observers.
Charitable reading:
The passage summarizes roles in the cited framework.
Review: We checked whether framework attribution became an implementation-safety claim. F10 stays with attribution. Part 11 assigns leadership changes to coordinators and defines the other roles. We checked the cited framework's role definitions. E-30 assigns leadership changes to coordinators. F10 does not claim implementation safety.
Sources:
- [https://multigres.com/blog/generalized-consensus-part11](https://multigres.com/blog/generalized-consensus-part11)
Excerpt:
```text
In our approach, the task of changing leadership is taken on by the coordinators instead.
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/4b9b420c-d03e-4e64-9103-58ef8278a64d#F10
### F11 · Accurate · Factual · The cited framework permits external durability policies
Location: Article · exact quote · [open in article](https://multigres.com/blog/high-availability-from-first-principles#:~:text=Those%20requirements%20are%20externally%20specified%20by%20policy)
Article says:
```text
Those requirements are externally specified by policy…
```
What is true:
Part 11 explicitly permits externally specified durability policies. It restricts those policies to cohort nodes and static node properties.
Charitable reading:
The passage describes the framework's policy model.
Review: We checked whether external policies meant unrestricted policies. Part 11 limits them to cohort nodes and static properties. F11 includes those restrictions. We checked the complete policy section behind E-32. It permits external policies and restricts inputs to cohort nodes and static properties.
Sources:
- [https://multigres.com/blog/generalized-consensus-part11](https://multigres.com/blog/generalized-consensus-part11)
Excerpt:
```text
We declared that durability policies can be specified externally, such as a plugin.
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/4b9b420c-d03e-4e64-9103-58ef8278a64d#F11
### F12 · Accurate · Factual · Streaming rejects a requested position beyond the timeline fork
Location: Article · exact quote · [open in article](https://multigres.com/blog/high-availability-from-first-principles#:~:text=If%20you%20let%20it%20stream,primary%20directly%2C%20Postgres%20will%20refuse)
Article says:
```text
If you let it stream from the new primary directly, Postgres will refuse…
```
What is true:
PostgreSQL rejects a requested starting point beyond its timeline fork. REL_18_4 src/backend/replication/walsender.c:905 checks that condition. The article describes an old primary containing divergent WAL, so this refusal fits its scenario.
Charitable reading:
The preceding sentences specify divergent WAL. We did not interpret this as a prohibition on following every different timeline.
Review: We checked the exact rejection condition. E-43 requires the requested position to exceed the fork. F12 states that condition and preserves the article's divergent-WAL context. We checked the rejection's exact predicate. E-43 requires a requested position beyond the switchpoint. F12 retains that condition.
Sources:
- [REL_18_4 · src/backend/replication/walsender.c:905-909](https://github.com/postgres/postgres/blob/f5cc81719e6da4cbdb1f797c48b693e91018153a/src/backend/replication/walsender.c#L905-L909)
Excerpt:
```text
if (!XLogRecPtrIsInvalid(switchpoint) &&
switchpoint < cmd->startpoint)
{
ereport(ERROR,
(errmsg("requested starting point %X/%X on timeline %u is not in this server's history",
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/4b9b420c-d03e-4e64-9103-58ef8278a64d#F12
### F13 · Accurate · Factual · Rewind removes divergent target changes and recovery follows source WAL
Location: Article · exact quote · [open in article](https://multigres.com/blog/high-availability-from-first-principles#:~:text=The%20old%20primary%27s%20local%20writes%20after%20the%20divergence%20are%20discarded.)
Article says:
```text
The old primary's local writes after the divergence are discarded.
```
What is true:
pg_rewind replaces divergent target blocks from the source. REL_18_4 src/bin/pg_rewind/pg_rewind.c:585 fetches those blocks. Recovery then replays source WAL from the checkpoint preceding divergence.
Charitable reading:
The sentence concerns writes unique to the old primary after divergence. It does not claim rewind preserves those writes elsewhere.
Review: We tested whether rewind alone produces a consistent target. F13 explicitly includes subsequent recovery. E-46 copies source blocks, and E-45 requires source WAL replay. We checked whether rewind merely changes replication settings. E-46 fetches replacement source blocks. E-45 requires subsequent source-WAL recovery.
Sources:
- [REL_18_4 · doc/src/sgml/ref/pg_rewind.sgml:82-86](https://github.com/postgres/postgres/blob/f5cc81719e6da4cbdb1f797c48b693e91018153a/doc/src/sgml/ref/pg_rewind.sgml#L82-L86)
Excerpt:
```text
After running <application>pg_rewind</application>, WAL replay needs to
complete for the data directory to be in a consistent state. When the
target server is started again it will enter archive recovery and replay
all WAL generated in the source server from the last checkpoint before
the point of divergence.
```
- [REL_18_4 · src/bin/pg_rewind/pg_rewind.c:585-589](https://github.com/postgres/postgres/blob/f5cc81719e6da4cbdb1f797c48b693e91018153a/src/bin/pg_rewind/pg_rewind.c#L585-L589)
Excerpt:
```text
iter = datapagemap_iterate(&entry->target_pages_to_overwrite);
while (datapagemap_next(iter, &blkno))
{
offset = blkno * BLCKSZ;
source->queue_fetch_range(source, entry->path, offset, BLCKSZ);
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/4b9b420c-d03e-4e64-9103-58ef8278a64d#F13
### F14 · Accurate · Factual · The planned transition stops serving through the old primary
Location: Article · exact quote · [open in article](https://multigres.com/blog/high-availability-from-first-principles#:~:text=the%20primary%20stops%20accepting%20new,the%20new%20primary%20takes%20over)
Article says:
```text
…the primary stops accepting new writes before the new primary takes over…
```
What is true:
The planned transition demotes the primary and buffers requests. main@5b40c9c455 docs/query_serving/failover_buffering.md:29 documents NOT_SERVING and MTF01. Buffering ends when the new primary reports that it serves requests.
Charitable reading:
We read this as the planned Multigres transition described by the article, rather than every possible PostgreSQL promotion procedure.
Review: We tested whether buffering proves WAL catch-up. It does not, but F14 verifies only the serving transition. E-48 documents NOT_SERVING, MTF01, and buffering until the new primary serves. We tested whether buffering proves WAL catch-up. It does not. F14 verifies only stopped service and buffering, which E-48 documents.
Sources:
- [multigres@main@5b40c9c455 · docs/query_serving/failover_buffering.md:29-35](https://github.com/multigres/multigres/blob/5b40c9c455b4d25c5e1cae80b85cc38422a023fa/docs/query_serving/failover_buffering.md#L29-L35)
Excerpt:
```text
When the orchestrator demotes a primary (e.g., during a planned
failover), the multipooler transitions to `NOT_SERVING` and starts
returning `MTF01` ("planned failover in progress") errors. The
gateway uses these errors to trigger buffering.
Buffering stops when the gateway's streaming health check from the
new primary reports it as serving.
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/4b9b420c-d03e-4e64-9103-58ef8278a64d#F14
### F15 · Accurate · Factual · PostgreSQL alone does not provide the complete failover contract
Location: excerpt · section “Why the old primary stays disconnected” · as fetched 2026-10-19 · [open in article](https://multigres.com/blog/high-availability-from-first-principles#:~:text=Postgres%20makes%20a%20guarantee%20that,weaker%20than%20the%20consensus%20contract.)
Article says:
```text
Postgres makes a guarantee that is weaker than the consensus contract.
```
What is true:
PostgreSQL alone does not implement the complete failover contract described here. REL_18_4 doc/src/sgml/high-availability.sgml:1457 requires external failure detection and standby notification. Its asynchronous replication also permits unshipped committed WAL.
Charitable reading:
The comparison concerns the complete durability and failover contract. It does not mean PostgreSQL lacks synchronous replication.
Review: We tested whether synchronous replication defeats the architectural distinction. E-50 still requires external failure detection and standby notification. F15 does not deny PostgreSQL synchronous durability. We tested whether synchronous replication defeats the architectural distinction. E-50 still requires external failure detection and notification. F15 preserves that scope.
Sources:
- [REL_18_4 · doc/src/sgml/high-availability.sgml:530-533](https://github.com/postgres/postgres/blob/f5cc81719e6da4cbdb1f797c48b693e91018153a/doc/src/sgml/high-availability.sgml#L530-L533)
Excerpt:
```text
It should be noted that log shipping is asynchronous, i.e., the WAL
records are shipped after transaction commit. As a result, there is a
window for data loss should the primary server suffer a catastrophic
failure; transactions not yet shipped will be lost.
```
- [REL_18_4 · doc/src/sgml/high-availability.sgml:1457-1459](https://github.com/postgres/postgres/blob/f5cc81719e6da4cbdb1f797c48b693e91018153a/doc/src/sgml/high-availability.sgml#L1457-L1459)
Excerpt:
```text
<productname>PostgreSQL</productname> does not provide the system
software required to identify a failure on the primary and notify
the standby database server.
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/4b9b420c-d03e-4e64-9103-58ef8278a64d#F15
## Notes (not graded) (1)
### F7 · Note · · pg_rewind does not produce a historical database image at the divergence point
Location: Article · exact quote · [open in article](https://multigres.com/blog/high-availability-from-first-principles#:~:text=rewinds%20the%20old%20primary%20to%20that%20point)
Article says:
```text
…rewinds the old primary to that point…
```
What is true:
REL_18_4 describes the resulting directory as analogous to a base backup of the source. pg_rewind copies source data. Subsequent recovery replays WAL from the checkpoint before divergence. The article compresses these steps into rewinding to the common point.
Charitable reading:
The article summarizes removing divergent writes and subsequently replaying source WAL. That high-level recovery sequence is valid.
Explanation: Not graded: knowing this would not change what a reader does.
Review: We tested the article's high-level recovery description. It remains defensible. E-22 and E-23 support the technical distinction, and note severity avoids charging an operational error. We tested the article's high-level recovery description. E-22 and E-23 support the technical distinction. F7 correctly leaves it ungraded.
Sources:
- [REL_18_4 · doc/src/sgml/ref/pg_rewind.sgml:51-65](https://github.com/postgres/postgres/blob/f5cc81719e6da4cbdb1f797c48b693e91018153a/doc/src/sgml/ref/pg_rewind.sgml#L51-L65)
Excerpt:
```text
After a successful rewind, the state of the target data directory is
analogous to a base backup of the source data directory. Unlike taking
```
- [REL_18_4 · doc/src/sgml/ref/pg_rewind.sgml:42-110](https://github.com/postgres/postgres/blob/f5cc81719e6da4cbdb1f797c48b693e91018153a/doc/src/sgml/ref/pg_rewind.sgml#L42-L110)
Excerpt:
```text
After running <application>pg_rewind</application>, WAL replay needs to
complete for the data directory to be in a consistent state. When the
target server is started again it will enter archive recovery and replay
all WAL generated in the source server from the last checkpoint before
the point of divergence. If some of the WAL was no longer available in the
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/4b9b420c-d03e-4e64-9103-58ef8278a64d#F7
## Withdrawn findings (0)
None.
## Section checks
- HA approaches · A · 1 verified-accurate · 100% of claims (4 of 4)
- Multiorch · A · 2 verified-accurate · no checkable claims
- Failover sequence · A · 2 verified-accurate · no checkable claims
- Old primary recovery · B · 1 inaccuracy · 1 imprecise · 7 verified-accurate · 100% of claims (17 of 17, plus 1 that need data we do not have)
## Claim coverage
- Introduction: no checkable claims; not counted: 6 product or opinion, 1 duplicate, 6 not a claim
- HA approaches: 4 of 4 Postgres claims checked; not counted: 8 product or opinion, 2 duplicate, 1 not a claim
- Generalized consensus: no checkable claims; not counted: 10 product or opinion, 2 not a claim
- Multiorch: no checkable claims; not counted: 34 product or opinion, 3 duplicate, 1 not a claim
- Failover sequence: no checkable claims; not counted: 30 product or opinion, 4 duplicate, 2 not a claim
- Old primary recovery: 17 of 17 Postgres claims checked, plus 1 that need data we do not have; not counted: 5 product or opinion, 1 duplicate, 1 not a claim
- Failover guarantees: no checkable claims; not counted: 6 product or opinion, 3 duplicate, 1 not a claim
- Further reading: no checkable claims; not counted: 1 not a claim
## What we did not check
- We did not reproduce the failover timing or replica-read behavior shown in the video.
- We did not verify the planned handover's WAL drain and catch-up sequence.
- We did not establish the full durability guarantee across every failure ordering and durability policy.
- We did not verify the efficiency comparison with other HA implementations.
- We did not verify the complete Multigres durability guarantee across failures.
- We did not reproduce the failover timing or inspect the demo video.
- We did not verify the stated deployment topology or coordinator counts.
- We did not check changes to Multigres after May 28, 2026.
- We did not check PostgreSQL acknowledgment, timeline rejection, or pg_rewind recovery semantics.
- We could not retrieve the blog index or the two linked chat pages.
- We did not inspect the embedded video's timing, node identities, or displayed output.
- We did not reproduce the claimed failover duration of seconds.
- We could not decide whether the evidence backs the central claim.
- We could not decide whether the article depends on finding F1.
## Notes
- B — the findings address the article's main subject. What we did not check is listed below. We checked Multigres coordinator exclusion, candidate selection, durability policies, and old-primary recovery against implementation and design documentation.
- We did not check everything in this article. What we did not check is listed below, in the words we recorded at the time. None of it moved the letter. We never charge our own limits to the article.
- Average of 4 axes: 3.75 · worst of factual, consistent: B · one load-bearing error · result B
- Some explanatory text is not shown in this edition; the grade and findings are complete.
- Some checks did not happen for this edition, and each one we know of is listed above.
- Checked against: github.com/postgres/postgres REL_18_4 at commit f5cc81719e6da4cbdb1f797c48b693e91018153a (pinned target); github.com/multigres/multigres main@5b40c9c455 at commit 5b40c9c455b4d25c5e1cae80b85cc38422a023fa (pinned target); https://multigres.com/blog/generalized-consensus (fetched 2026-10-19T07:19:21.262499Z); https://multigres.com/blog/generalized-consensus-part11 (fetched 2026-10-19T07:19:22.042608Z).
- Article captured 2026-10-19T07:19:04.095087Z · SHA-256 b30e010ba03ca49c6e25fba86b5d928c9234ea5a53201df10859f863b48b5b4e · Text extracted from the article's HTML.
- Policy SHA-256 b10109001dc6731e88ee9c864c24302bb2512b8a28a0059edc47c8ac55aeb6e4 · Grading rules SHA-256 6fb334e79d6b9e7ed81d3238cc10d9de602ff87ed65ff2fa781f53bac5798765.
- We did not inspect the embedded video's timing, node identities, displayed output, or replica-read behavior.
- We did not reproduce the claimed failover duration of seconds.
- We did not verify the planned handover's complete WAL drain and catch-up sequence.
- We did not establish the durability guarantee across every failure ordering and durability policy.
- We did not verify the efficiency comparison, deployment topology, or coordinator counts.
- We checked the Multigres revision selected for May 28, 2026. We did not check later changes.
- We could not retrieve useful text from the blog index or access the linked chat pages.
- source: multigres had no release when the article was published, so it was read at main@5b40c9c455, the commit its main branch was at that day
- source: the article names no postgres release, so it was read at REL_18_4, the latest release when it was published
- One fetched page is not listed above, because our policy does not allow linking it.
- review: the findings were written by one model and reviewed independently by a different model.
- 2026-10-30: Regraded under the current grading rules: the letter is the average of the axis letters, with every cap stated under it.
- 3 passages in this edition fell short of our own plain-English rules.
- Built from the article text captured above, 2 pinned source trees, and 2 fetched pages.
- 14 survived · 1 weakened · 0 withdrawn.
## Revision history
- [Revision 1](https://pgtrue.postgres.ai/shared/brief/4b9b420c-d03e-4e64-9103-58ef8278a64d?v=1) · Not assessed · audit version not recorded
Details unavailable.
ElephantSeal: Not assessed.
- [Revision 2](https://pgtrue.postgres.ai/shared/brief/4b9b420c-d03e-4e64-9103-58ef8278a64d?v=2) · Not assessed · audit version not recorded
Details unavailable.
ElephantSeal: Not assessed.
- [Revision 3](https://pgtrue.postgres.ai/shared/brief/4b9b420c-d03e-4e64-9103-58ef8278a64d?v=7) · Not assessed · audit version not recorded
Details unavailable.
ElephantSeal: Not assessed.
- [Revision 4](https://pgtrue.postgres.ai/shared/brief/4b9b420c-d03e-4e64-9103-58ef8278a64d?v=30) · 2026-10-01 05:51 UTC · A- · audit version not recorded · regrade version not recorded
Same article text, re-audited. 7 accurate · 1 wrong · 2 caveats.
ElephantSeal: A-.
Changes: Details unavailable.
- [Revision 5](https://pgtrue.postgres.ai/shared/brief/4b9b420c-d03e-4e64-9103-58ef8278a64d?v=34) · this page · 2026-10-19 07:19 UTC · B · audited with v1.0.14 (approx.) · regraded with v1.1.3
Same article text, re-audited. 12 accurate · 1 wrong · 1 caveat.
ElephantSeal: B.
Changes: No longer reported: “The unconditional durability guarantee omits membership-change uncertainty”; “…every uncommitted write is discarded…”. New: F2 “A primary acknowledges a write once it is durable on local storage.” (mostly accurate).