Limited beta · What is this?

pgTrue is under active development: reports may contain significant mistakes, inaccuracies, or bugs. Please report anything you find to pgtrue@postgres.ai.

pgTrue is an independent fact-check of technical Postgres articles. Read the questions and answers.

pgTrue fact-check

ElephantSeal ALimited coverage

Embed

The ElephantSeal always shows this report's latest edition and links here. Copies cached elsewhere may update later.

[![pgTrue fact-check](https://pgtrue.postgres.ai/badge/22d12695-d1a8-477b-82da-76606061cce3.svg?v=13&theme=light)](https://pgtrue.postgres.ai/shared/brief/22d12695-d1a8-477b-82da-76606061cce3)
<a href="https://pgtrue.postgres.ai/shared/brief/22d12695-d1a8-477b-82da-76606061cce3"><img src="https://pgtrue.postgres.ai/badge/22d12695-d1a8-477b-82da-76606061cce3.svg?v=13&amp;theme=light" alt="pgTrue fact-check" width="90" height="20" loading="lazy" decoding="async" style="display:inline-block;width:90px;height:20px"></a>
https://pgtrue.postgres.ai/badge/22d12695-d1a8-477b-82da-76606061cce3.svg?v=13&theme=light
.. image:: https://pgtrue.postgres.ai/badge/22d12695-d1a8-477b-82da-76606061cce3.svg?v=13&theme=light
   :target: https://pgtrue.postgres.ai/shared/brief/22d12695-d1a8-477b-82da-76606061cce3
   :alt: pgTrue fact-check
   :width: 90
   :height: 20
[![pgTrue fact-check](https://pgtrue.postgres.ai/badge/22d12695-d1a8-477b-82da-76606061cce3.svg?v=13&theme=dark)](https://pgtrue.postgres.ai/shared/brief/22d12695-d1a8-477b-82da-76606061cce3)
<a href="https://pgtrue.postgres.ai/shared/brief/22d12695-d1a8-477b-82da-76606061cce3"><img src="https://pgtrue.postgres.ai/badge/22d12695-d1a8-477b-82da-76606061cce3.svg?v=13&amp;theme=dark" alt="pgTrue fact-check" width="90" height="20" loading="lazy" decoding="async" style="display:inline-block;width:90px;height:20px"></a>
https://pgtrue.postgres.ai/badge/22d12695-d1a8-477b-82da-76606061cce3.svg?v=13&theme=dark
.. image:: https://pgtrue.postgres.ai/badge/22d12695-d1a8-477b-82da-76606061cce3.svg?v=13&theme=dark
   :target: https://pgtrue.postgres.ai/shared/brief/22d12695-d1a8-477b-82da-76606061cce3
   :alt: pgTrue fact-check
   :width: 90
   :height: 20
[![pgTrue fact-check](https://pgtrue.postgres.ai/badge/22d12695-d1a8-477b-82da-76606061cce3.svg?v=13)](https://pgtrue.postgres.ai/shared/brief/22d12695-d1a8-477b-82da-76606061cce3)
<a href="https://pgtrue.postgres.ai/shared/brief/22d12695-d1a8-477b-82da-76606061cce3"><img src="https://pgtrue.postgres.ai/badge/22d12695-d1a8-477b-82da-76606061cce3.svg?v=13" alt="pgTrue fact-check" width="90" height="20" loading="lazy" decoding="async" style="display:inline-block;width:90px;height:20px"></a>
https://pgtrue.postgres.ai/badge/22d12695-d1a8-477b-82da-76606061cce3.svg?v=13
.. image:: https://pgtrue.postgres.ai/badge/22d12695-d1a8-477b-82da-76606061cce3.svg?v=13
   :target: https://pgtrue.postgres.ai/shared/brief/22d12695-d1a8-477b-82da-76606061cce3
   :alt: pgTrue fact-check
   :width: 90
   :height: 20
[![pgTrue fact-check](https://pgtrue.postgres.ai/badge/22d12695-d1a8-477b-82da-76606061cce3/radar.svg?v=13&theme=light)](https://pgtrue.postgres.ai/shared/brief/22d12695-d1a8-477b-82da-76606061cce3)
<a href="https://pgtrue.postgres.ai/shared/brief/22d12695-d1a8-477b-82da-76606061cce3"><img src="https://pgtrue.postgres.ai/badge/22d12695-d1a8-477b-82da-76606061cce3/radar.svg?v=13&amp;theme=light" alt="pgTrue fact-check" width="240" height="240" loading="lazy" decoding="async" style="display:inline-block;width:240px;height:240px"></a>
https://pgtrue.postgres.ai/badge/22d12695-d1a8-477b-82da-76606061cce3/radar.svg?v=13&theme=light
.. image:: https://pgtrue.postgres.ai/badge/22d12695-d1a8-477b-82da-76606061cce3/radar.svg?v=13&theme=light
   :target: https://pgtrue.postgres.ai/shared/brief/22d12695-d1a8-477b-82da-76606061cce3
   :alt: pgTrue fact-check
   :width: 240
   :height: 240
[![pgTrue fact-check](https://pgtrue.postgres.ai/badge/22d12695-d1a8-477b-82da-76606061cce3/radar.svg?v=13&theme=dark)](https://pgtrue.postgres.ai/shared/brief/22d12695-d1a8-477b-82da-76606061cce3)
<a href="https://pgtrue.postgres.ai/shared/brief/22d12695-d1a8-477b-82da-76606061cce3"><img src="https://pgtrue.postgres.ai/badge/22d12695-d1a8-477b-82da-76606061cce3/radar.svg?v=13&amp;theme=dark" alt="pgTrue fact-check" width="240" height="240" loading="lazy" decoding="async" style="display:inline-block;width:240px;height:240px"></a>
https://pgtrue.postgres.ai/badge/22d12695-d1a8-477b-82da-76606061cce3/radar.svg?v=13&theme=dark
.. image:: https://pgtrue.postgres.ai/badge/22d12695-d1a8-477b-82da-76606061cce3/radar.svg?v=13&theme=dark
   :target: https://pgtrue.postgres.ai/shared/brief/22d12695-d1a8-477b-82da-76606061cce3
   :alt: pgTrue fact-check
   :width: 240
   :height: 240
[![pgTrue fact-check](https://pgtrue.postgres.ai/badge/22d12695-d1a8-477b-82da-76606061cce3/radar.svg?v=13)](https://pgtrue.postgres.ai/shared/brief/22d12695-d1a8-477b-82da-76606061cce3)
<a href="https://pgtrue.postgres.ai/shared/brief/22d12695-d1a8-477b-82da-76606061cce3"><img src="https://pgtrue.postgres.ai/badge/22d12695-d1a8-477b-82da-76606061cce3/radar.svg?v=13" alt="pgTrue fact-check" width="240" height="240" loading="lazy" decoding="async" style="display:inline-block;width:240px;height:240px"></a>
https://pgtrue.postgres.ai/badge/22d12695-d1a8-477b-82da-76606061cce3/radar.svg?v=13
.. image:: https://pgtrue.postgres.ai/badge/22d12695-d1a8-477b-82da-76606061cce3/radar.svg?v=13
   :target: https://pgtrue.postgres.ai/shared/brief/22d12695-d1a8-477b-82da-76606061cce3
   :alt: pgTrue fact-check
   :width: 240
   :height: 240
[![pgTrue fact-check](https://pgtrue.postgres.ai/badge/22d12695-d1a8-477b-82da-76606061cce3/wide.svg?v=13&theme=light)](https://pgtrue.postgres.ai/shared/brief/22d12695-d1a8-477b-82da-76606061cce3)
<a href="https://pgtrue.postgres.ai/shared/brief/22d12695-d1a8-477b-82da-76606061cce3"><img src="https://pgtrue.postgres.ai/badge/22d12695-d1a8-477b-82da-76606061cce3/wide.svg?v=13&amp;theme=light" alt="pgTrue fact-check" width="480" height="240" loading="lazy" decoding="async" style="display:inline-block;width:480px;height:240px"></a>
https://pgtrue.postgres.ai/badge/22d12695-d1a8-477b-82da-76606061cce3/wide.svg?v=13&theme=light
.. image:: https://pgtrue.postgres.ai/badge/22d12695-d1a8-477b-82da-76606061cce3/wide.svg?v=13&theme=light
   :target: https://pgtrue.postgres.ai/shared/brief/22d12695-d1a8-477b-82da-76606061cce3
   :alt: pgTrue fact-check
   :width: 480
   :height: 240
[![pgTrue fact-check](https://pgtrue.postgres.ai/badge/22d12695-d1a8-477b-82da-76606061cce3/wide.svg?v=13&theme=dark)](https://pgtrue.postgres.ai/shared/brief/22d12695-d1a8-477b-82da-76606061cce3)
<a href="https://pgtrue.postgres.ai/shared/brief/22d12695-d1a8-477b-82da-76606061cce3"><img src="https://pgtrue.postgres.ai/badge/22d12695-d1a8-477b-82da-76606061cce3/wide.svg?v=13&amp;theme=dark" alt="pgTrue fact-check" width="480" height="240" loading="lazy" decoding="async" style="display:inline-block;width:480px;height:240px"></a>
https://pgtrue.postgres.ai/badge/22d12695-d1a8-477b-82da-76606061cce3/wide.svg?v=13&theme=dark
.. image:: https://pgtrue.postgres.ai/badge/22d12695-d1a8-477b-82da-76606061cce3/wide.svg?v=13&theme=dark
   :target: https://pgtrue.postgres.ai/shared/brief/22d12695-d1a8-477b-82da-76606061cce3
   :alt: pgTrue fact-check
   :width: 480
   :height: 240
[![pgTrue fact-check](https://pgtrue.postgres.ai/badge/22d12695-d1a8-477b-82da-76606061cce3/wide.svg?v=13)](https://pgtrue.postgres.ai/shared/brief/22d12695-d1a8-477b-82da-76606061cce3)
<a href="https://pgtrue.postgres.ai/shared/brief/22d12695-d1a8-477b-82da-76606061cce3"><img src="https://pgtrue.postgres.ai/badge/22d12695-d1a8-477b-82da-76606061cce3/wide.svg?v=13" alt="pgTrue fact-check" width="480" height="240" loading="lazy" decoding="async" style="display:inline-block;width:480px;height:240px"></a>
https://pgtrue.postgres.ai/badge/22d12695-d1a8-477b-82da-76606061cce3/wide.svg?v=13
.. image:: https://pgtrue.postgres.ai/badge/22d12695-d1a8-477b-82da-76606061cce3/wide.svg?v=13
   :target: https://pgtrue.postgres.ai/shared/brief/22d12695-d1a8-477b-82da-76606061cce3
   :alt: pgTrue fact-check
   :width: 480
   :height: 240

Click the snippet to select all of it, then copy. Where SVG is stripped, as in some email clients and feed readers, change .svg to .png. PNG uses the light theme for Auto. For Markdown PNG embeds, use the HTML snippet where supported to preserve the display size.

Optional colours: append &color=26798E or &labelColor=333C47 after a theme query (use ? for the first parameter). Use 3- or 6-digit hex.

For pages with a light background.

For pages with a dark background. The ElephantSeal gets a thin edge so it does not blend in.

Auto follows the reader's light or dark setting where the host supports it, and shows the light ElephantSeal where it does not.

On a light page
On a dark page

28.5. WAL Configuration (opens in new tab)

postgresql.org
Sound as far as we checked.
0
inaccuracy
0
dangerous-recipe
0
misleading
0
imprecise
0
transcription
0
aged
0
withdrawn
3
verified-accurate

Factual A · Applicable — · Consistent A · Transparent A · Safe A

ReportTechnical fact-check, edition 3 Issued EditionUpdated after review. Corrections are listed below. SubmittedSubmitted by the PostgresAI team. Author responseNo written reply from the author. The article changed 1 time after our first audit; we re-audited each version. See Revisions below. Policy: right-of-reply and corrections policy. pgTrue versionaudited with v1.0.14 (approx.) · regraded with v1.1.0 (approx.)

InaccuraciesNone in this edition.

Dangerous or recipe bugsNone in this edition.

Misleading / impreciseNone in this edition.

Verified accurate

F15

PostgreSQL 18 remains the current release

ACCURATEFactual · holds up after review

Claim ledger

Article says
…Current ( 18 )…
What is true
The official manual directory identifies PostgreSQL 18 as Current on October 19, 2026.
Charitable reading
Current identifies the supported production release, rather than the largest available prerelease version.

Source

Source · https://www.postgresql.org/docs/18 / Current
In the article

In the article

excerpt · as fetched 2026-10-19 · open in article ↗ (opens in new tab)

Supported Versions: Current ( 18 ) / 17 / 16 / 15 / 14

28.5. WAL Configuration Prev Up Chapter 28. Reliability and the Write-Ahead Log Home Next
All sources and excerpts · 1
Evidence18 / Current
How the review tested this

Review: We tested whether PostgreSQL 19's larger version number contradicted Current. The manual directory distinguishes its release candidate from PostgreSQL 18. We checked whether Current meant the largest prerelease number. The official directory explicitly labels PostgreSQL 18 as Current.

F16

PostgreSQL 19 remains a prerelease

ACCURATEFactual · holds up after review

Claim ledger

Article says
…Development Versions: 19 / devel…
What is true
The October 15, 2026 announcement identifies PostgreSQL 19 RC 1 as a release candidate. It schedules general availability for November 19, 2026.
Charitable reading
Development includes release candidates that precede general availability.

Source

Source · https://www.postgresql.org/about/news/postgresql-19-rc-1-released-3409/This is the first release candidate for PostgreSQL 19.
In the article

In the article

excerpt · as fetched 2026-10-19 · open in article ↗ (opens in new tab)

Development Versions: 19 / devel

28.5. WAL Configuration Prev Up Chapter 28. Reliability and the Write-Ahead Log Home Next
All sources and excerpts · 1
EvidenceThis is the first release candidate for PostgreSQL 19.
How the review tested this

Review: We checked the announcement's release status and schedule. It identifies RC 1 and gives November 19 as planned general availability. We checked the announcement's release status and schedule. It identifies RC 1 and plans general availability for November 19, 2026.

F17

The archived release support labels match the manual index

ACCURATEFactual · holds up after review

Claim ledger

Article says
…Unsupported versions: 13 / 12 / 11…
What is true
The PostgreSQL 18 manual index lists PostgreSQL 13 and the older releases named in the article as unsupported.
Charitable reading
Unsupported refers to project support, rather than whether archived manuals remain accessible.

Source

Source · https://www.postgresql.org/docs/18/index.htmlUnsupported versions: 13 / 12 / 11
In the article

In the article

excerpt · as fetched 2026-10-19 · open in article ↗ (opens in new tab)

Unsupported versions: 13 / 12 / 11 / 10 / 9.6 / 9.5 / 9.4 / 9.3 / 9.2 / 9.1 / 9.0 / 8.4 / 8.3 / 8.2 / 8.1 / 8.0 / 7.4 / 7.3 / 7.2 / 7.1

28.5. WAL Configuration Prev Up Chapter 28. Reliability and the Write-Ahead Log Home Next
All sources and excerpts · 1
EvidenceUnsupported versions: 13 / 12 / 11
How the review tested this

Review: We distinguished archived documentation availability from release support. The PostgreSQL 18 index repeats the unsupported-version labels. We distinguished archived documentation from project support. The PostgreSQL 18 index confirms the unsupported-release labels.

Notes

18 not graded: findings no reader would act on differently
F1

Note: “…at around 90% of the last checkpoint's duration…”

NOTEpartly holds after review

Claim ledger

Article says
…at around 90% of the last checkpoint's duration…
What is true
PostgreSQL 19 checkpointer.c:928 divides elapsed time by CheckPointTimeout. Its pacing calculation does not use the previous checkpoint's duration. PostgreSQL 18 wal.sgml:581 contains the disputed wording. The cited implementation establishes the correction for PostgreSQL 19.
So what
Estimate checkpoint pacing from checkpoint_timeout and WAL consumption rather than the previous checkpoint's duration.

Source

Source · REL_19_STABLE@16dd909023 · src/backend/postmaster/checkpointer.c:928-929elapsed_time = ((double) ((pg_time_t) now.tv_sec - ckpt_start_time) + now.tv_usec / 1000000.0) / CheckPointTimeout;

Not graded: no reader would act differently on it.

In the article · section “28.5. WAL Configuration #”

In the article

excerpt · section “28.5. WAL Configuration #” · as fetched 2026-10-19 · open in article ↗ (opens in new tab)

28.5. WAL Configuration #

To avoid flooding the I/O system with a burst of page writes, writing dirty buffers during a checkpoint is spread over a period of time. That period is controlled by checkpoint_completion_target , which is given as a fraction of the checkpoint interval (configured by using checkpoint_timeout ). The I/O rate is adjusted so that the checkpoint finishes when the given fraction of checkpoint_timeout seconds have elapsed, or before max_wal_size is exceeded, whichever is sooner. With the default value of 0.9, PostgreSQL can be expected to complete each checkpoint a bit before the next scheduled checkpoint (at around 90% of the last checkpoint's duration). This spreads out the I/O as much as possible so that the checkpoint I/O load is consistent throughout the checkpoint interval. The disadvantage of this is that prolonging checkpoints affects recovery time, because more WAL segments will need to be kept around for possible use in recovery. A user concerned about the amount of time required to recover might wish to reduce checkpoint_timeout so that checkpoints occur more frequently but still spread the I/O across the checkpoint interval. Alternatively, checkpoint_completion_target could be reduced, but this would result in times of more intense I/O (during the checkpoint) and times of less I/O (after the checkpoint completed but before the next scheduled checkpoint) and therefore is not recommended. Although checkpoint_completion_target could be set as high as 1.0, it is typically recommended to set it to no higher than 0.9 (the default) since checkpoints include some other activities besides writing dirty buffers. A setting of 1.0 is quite likely to result in checkpoints not being completed on time, which would result in performance loss due to unexpected variation in the number of WAL segments needed.

All sources and excerpts · 3
Evidence elapsed_time = ((double) ((pg_time_t) now.tv_sec - ckpt_start_time) + now.tv_usec / 1000000.0) / CheckPointTimeout;

Version note: Pinned PostgreSQL 19 source.

Evidence a bit before the next scheduled checkpoint (at around 90% of the last checkpoint's duration). This spreads out the I/O as much as possible so that the checkpoint

Version note: PostgreSQL 18 documentation repeats the article's wording.

Evidence /* Scale progress according to checkpoint_completion_target. */ progress *= CheckPointCompletionTarget;

Version note: The article identifies PostgreSQL 18. This source range is from PostgreSQL 19.

How the review tested this

Review: The surrounding text correctly names checkpoint_timeout. The correction is plausible, but its implementation evidence comes from PostgreSQL 19. The preceding sentence supplies the correct interval. The duration correction remains useful, but its implementation evidence identifies PostgreSQL 19.

F2

Note: “If checkpoints happen closer together than checkpoint_warning seconds…”

NOTEholds up after review

Claim ledger

Article says
If checkpoints happen closer together than checkpoint_warning seconds…
What is true
checkpointer.c:476 requires CHECKPOINT_CAUSE_XLOG before logging the warning. checkpoint_warning does not detect every cause of frequent checkpoints. PostgreSQL 18 wal.sgml:557 uses the same shortened description.
So what
Use checkpoint statistics and log_checkpoints to detect frequent timed or manual checkpoints.

Source

Source · REL_19_STABLE@16dd909023 · src/backend/postmaster/checkpointer.c:476-478if (!do_restartpoint && (flags & CHECKPOINT_CAUSE_XLOG) && elapsed_secs < CheckPointWarning)

Not graded: no reader would act differently on it.

In the article

In the article

Article · exact quote · open in article ↗ (opens in new tab)If checkpoints happen closer together than checkpoint_warning seconds…
All sources and excerpts · 3
Evidence if (!do_restartpoint && (flags & CHECKPOINT_CAUSE_XLOG) && elapsed_secs < CheckPointWarning)
Evidence parameter. If checkpoints happen closer together than <varname>checkpoint_warning</varname> seconds, a message will be output to the server log recommending increasing

Version note: PostgreSQL 18 documentation uses the same shortened description.

Evidence if (!do_restartpoint && (flags & CHECKPOINT_CAUSE_XLOG) && elapsed_secs < CheckPointWarning)

Version note: The article identifies PostgreSQL 18 as its documentation version.

How the review tested this

Review: We tested the surrounding WAL-consumption context. The condition still requires CHECKPOINT_CAUSE_XLOG in PostgreSQL 18.6. A documentation note is justified. We tested the surrounding WAL-specific reading. PostgreSQL 18 and 19 both require CHECKPOINT_CAUSE_XLOG. The documentation note preserves that qualification fairly.

F3

Note: “…force OS pages written by the checkpoint to be flushed to disk…”

NOTEpartly holds after review

Claim ledger

Article says
…force OS pages written by the checkpoint to be flushed to disk…
What is true
PostgreSQL 19 fd.c:552 describes Linux writeback requests that do not wait for completion. PostgreSQL 18 wal.sgml:603 repeats the article's wording. This evidence supports a Linux implementation qualification, rather than a general guarantee about every platform.
So what
Keep checkpoint synchronization enabled and evaluate checkpoint_flush_after as writeback pacing.

Source

Source · REL_19_STABLE@16dd909023 · src/backend/storage/file/fd.c:552-554* sync_file_range(SYNC_FILE_RANGE_WRITE), currently linux specific, * tells the OS that writeback for the specified blocks should be * started, but that we don't want to wait for completion. Note that

Not graded: no reader would act differently on it.

In the article

In the article

Article · exact quote · open in article ↗ (opens in new tab)…force OS pages written by the checkpoint to be flushed to disk…
All sources and excerpts · 2
Evidence * sync_file_range(SYNC_FILE_RANGE_WRITE), currently linux specific, * tells the OS that writeback for the specified blocks should be * started, but that we don't want to wait for completion. Note that
Evidence allows you to force OS pages written by the checkpoint to be flushed to disk after a configurable number of bytes. Otherwise, these

Version note: PostgreSQL 18 documentation repeats this wording.

How the review tested this

Review: The article describes writeback's objective without promising synchronous completion. The cited implementation describes Linux behavior in PostgreSQL 19. The paragraph describes writeback pacing rather than replacing fsync. The nonblocking implementation citation establishes PostgreSQL 19 behavior.

F4

Note: “The default settings are 5 minutes and 1 GB, respectively.”

NOTEpartly holds after review

Claim ledger

Article says
The default settings are 5 minutes and 1 GB, respectively.
What is true
The cited PostgreSQL 19 source sets defaults of 300 seconds, 1024 MB, and 0.9. It also supports the stated buffer flushing and page-LSN comparison. These citations do not independently verify PostgreSQL 18.

Source

Source · REL_19_STABLE@16dd909023 · src/backend/postmaster/checkpointer.c:928-929elapsed_time = ((double) ((pg_time_t) now.tv_sec - ckpt_start_time) + now.tv_usec / 1000000.0) / CheckPointTimeout;

Not graded: no reader would act differently on it.

In the article

In the article

Article · exact quote · open in article ↗ (opens in new tab)The default settings are 5 minutes and 1 GB, respectively.
All sources and excerpts · 6
Evidence elapsed_time = ((double) ((pg_time_t) now.tv_sec - ckpt_start_time) + now.tv_usec / 1000000.0) / CheckPointTimeout;

Version note: Pinned PostgreSQL 19 source.

Evidenceint CheckPointTimeout = 300; int CheckPointWarning = 30; double CheckPointCompletionTarget = 0.9;
Evidenceint max_wal_size_mb = 1024; /* 1 GB */
Evidence XLogRecPtr page_lsn = PageGetLSN(regbuf->page); needs_backup = (page_lsn <= RedoRecPtr);
Evidence now = (pg_time_t) time(NULL); elapsed_secs = now - last_checkpoint_time; if (elapsed_secs >= CheckPointTimeout) { if (!do_checkpoint) chkpt_or_rstpt_timed = true; do_checkpoint = true; flags |= CHECKPOINT_CAUSE_TIME;
Evidence CheckPointBuffers(flags); /* Perform all queued up fsyncs */ TRACE_POSTGRESQL_BUFFER_CHECKPOINT_SYNC_START(); CheckpointStats.ckpt_sync_t = GetCurrentTimestamp(); ProcessSyncRequests();
How the review tested this

Review: We checked the defaults and checkpoint operations. They match PostgreSQL 19, which does not establish the article's PostgreSQL 18 behavior. We checked defaults, buffer flushing, and page-LSN comparison. They support the finding for PostgreSQL 19, rather than the article's PostgreSQL 18.

F5

Note: “The estimate is based on a moving average…”

NOTEpartly holds after review

Claim ledger

Article says
The estimate is based on a moving average…
What is true
PostgreSQL 19 xlog.c:6969 immediately raises the estimate when demand exceeds it. Otherwise, the previous estimate receives 90% weight. The cited summarization logic preserves required WAL independently. These checks establish PostgreSQL 19 behavior.

Source

Source · REL_19_STABLE@16dd909023 · src/backend/access/transam/xlog.c:6969-6974PrevCheckPointDistance = nbytes; if (CheckPointDistanceEstimate < nbytes) CheckPointDistanceEstimate = nbytes; else CheckPointDistanceEstimate = (0.90 * CheckPointDistanceEstimate + 0.10 * (double) nbytes);

Not graded: no reader would act differently on it.

In the article

In the article

Article · exact quote · open in article ↗ (opens in new tab)The estimate is based on a moving average…
All sources and excerpts · 2
Evidence PrevCheckPointDistance = nbytes; if (CheckPointDistanceEstimate < nbytes) CheckPointDistanceEstimate = nbytes; else CheckPointDistanceEstimate = (0.90 * CheckPointDistanceEstimate + 0.10 * (double) nbytes);
Evidence /* * If WAL summarization is in use, don't remove WAL that has yet to be * summarized. */ keep = GetOldestUnsummarizedLSN(NULL, NULL);
How the review tested this

Review: We checked both branches of the estimate update. The 90% weight is correct, but the citations cover PostgreSQL 19. The 90% weighting and immediate upward adjustment match the code. Both citations identify PostgreSQL 19.

F6

Note: “…restartpoints can only be performed at checkpoint records…”

NOTEpartly holds after review

Claim ledger

Article says
…restartpoints can only be performed at checkpoint records…
What is true
PostgreSQL 19 xlog.c:7795 explains why an already-used checkpoint cannot support another restartpoint. checkpointer.c:410 independently schedules timed attempts. The cited ranges do not establish every counter claim or independently verify PostgreSQL 18.

Source

Source · REL_19_STABLE@16dd909023 · src/backend/access/transam/xlog.c:7794-7796/* * If the last checkpoint record we've replayed is already our last * restartpoint, we can't perform a new restart point. We still update

Not graded: no reader would act differently on it.

In the article

In the article

Article · exact quote · open in article ↗ (opens in new tab)…restartpoints can only be performed at checkpoint records…
All sources and excerpts · 3
Evidence /* * If the last checkpoint record we've replayed is already our last * restartpoint, we can't perform a new restart point. We still update
Evidence now = (pg_time_t) time(NULL); elapsed_secs = now - last_checkpoint_time; if (elapsed_secs >= CheckPointTimeout) { if (!do_checkpoint) chkpt_or_rstpt_timed = true; do_checkpoint = true; flags |= CHECKPOINT_CAUSE_TIME;
Evidence last_checkpoint_time = now - CheckPointTimeout + 15;

Version note: The article identifies PostgreSQL 18. This source range is from PostgreSQL 19.

How the review tested this

Review: The cited ranges support the checkpoint restriction and timer. They do not show all claimed counter updates. The successful-restartpoint restriction survives. The cited ranges do not establish all counter increments or the 15-second retry statement.

F7

Note: “XLogInsertRecord is used to place a new record into the WAL buffers in shared memory.”

NOTEpartly holds after review

Claim ledger

Article says
XLogInsertRecord is used to place a new record into the WAL buffers in shared memory.
What is true
PostgreSQL 19 xlog.c:22 describes insertion into shared WAL buffers. Its buffer-pressure path calls XLogWrite and increments wal_buffers_full. This supports the mechanism at that revision, without independently verifying PostgreSQL 18.

Source

Source · REL_19_STABLE@16dd909023 · src/backend/access/transam/xlog.c:22-25* XLogInsertRecord() inserts a WAL record into the WAL buffers. Most * callers should not call this directly, but use the functions in * xloginsert.c to construct the WAL record. XLogFlush() can be used * to force the WAL to disk.

Not graded: no reader would act differently on it.

In the article

In the article

Article · exact quote · open in article ↗ (opens in new tab)XLogInsertRecord is used to place a new record into the WAL buffers in shared memory.
All sources and excerpts · 2
Evidence * XLogInsertRecord() inserts a WAL record into the WAL buffers. Most * callers should not call this directly, but use the functions in * xloginsert.c to construct the WAL record. XLogFlush() can be used * to force the WAL to disk.
Evidence /* Have to write it ourselves */ TRACE_POSTGRESQL_WAL_BUFFER_WRITE_DIRTY_START(); WriteRqst.Write = OldPageRqstPtr; WriteRqst.Flush = InvalidXLogRecPtr; XLogWrite(WriteRqst, tli, false); LWLockRelease(WALWriteLock); pgWalUsage.wal_buffers_full++;
How the review tested this

Review: The conditional wal_buffers recommendation avoids a universal performance claim. Its implementation evidence nevertheless covers PostgreSQL 19. We checked the conditional buffer-pressure explanation. The insertion description and write path match PostgreSQL 19.

F8

Note: “No sleep will occur if fsync is not enabled…”

NOTEpartly holds after review

Claim ledger

Article says
No sleep will occur if fsync is not enabled…
What is true
PostgreSQL 19 xlog.c:2909 checks positive CommitDelay, enabled fsync, and MinimumActiveBackends before sleeping. pg_test_fsync calculates microseconds per operation. These citations support those conditions at PostgreSQL 19, without establishing the lock sequence or PostgreSQL 18 equivalence.

Source

Source · REL_19_STABLE@16dd909023 · src/backend/access/transam/xlog.c:2909-2914if (CommitDelay > 0 && enableFsync && MinimumActiveBackends(CommitSiblings)) { pgstat_report_wait_start(WAIT_EVENT_COMMIT_DELAY); pg_usleep(CommitDelay); pgstat_report_wait_end();

Not graded: no reader would act differently on it.

In the article

In the article

Article · exact quote · open in article ↗ (opens in new tab)No sleep will occur if fsync is not enabled…
All sources and excerpts · 3
Evidence if (CommitDelay > 0 && enableFsync && MinimumActiveBackends(CommitSiblings)) { pgstat_report_wait_start(WAIT_EVENT_COMMIT_DELAY); pg_usleep(CommitDelay); pgstat_report_wait_end();
Evidence double per_second = ops / total_time; double avg_op_time_us = (total_time / ops) * USECS_SEC; printf(_(OPS_FORMAT), per_second, avg_op_time_us);
Evidence if (CommitDelay > 0 && enableFsync && MinimumActiveBackends(CommitSiblings)) { pgstat_report_wait_start(WAIT_EVENT_COMMIT_DELAY); pg_usleep(CommitDelay);
How the review tested this

Review: The conditions and microsecond calculation match. The quoted ranges do not show lock acquisition and belong to PostgreSQL 19. The sleep conditions and microsecond calculation match. The recorded ranges establish PostgreSQL 19 conditions but omit the preceding lock acquisition.

F9

Note: “…issue_xlog_fsync does nothing…”

NOTEpartly holds after review

Claim ledger

Article says
…issue_xlog_fsync does nothing…
What is true
PostgreSQL 19 issue_xlog_fsync returns for disabled fsync or synchronous-open methods. Its other branches perform explicit synchronization. The cited implementation confirms PostgreSQL 19 behavior, without independently verifying PostgreSQL 18.

Source

Source · REL_19_STABLE@16dd909023 · src/backend/access/transam/xlog.c:8934-8937if (!enableFsync || wal_sync_method == WAL_SYNC_METHOD_OPEN || wal_sync_method == WAL_SYNC_METHOD_OPEN_DSYNC) return;

Not graded: no reader would act differently on it.

In the article

In the article

Article · exact quote · open in article ↗ (opens in new tab)…issue_xlog_fsync does nothing…
All sources and excerpts · 2
Evidence if (!enableFsync || wal_sync_method == WAL_SYNC_METHOD_OPEN || wal_sync_method == WAL_SYNC_METHOD_OPEN_DSYNC) return;
Evidence pgstat_count_io_op_time(IOOBJECT_WAL, IOCONTEXT_NORMAL, IOOP_FSYNC, start, 1, 0);
How the review tested this

Review: We checked the early return and explicit synchronization branches. They support the finding only at the cited PostgreSQL 19 revision. We checked the synchronous-open condition and explicit synchronization branches. The evidence establishes PostgreSQL 19 behavior.

F10

Note: “By default, it is set to try…”

NOTEpartly holds after review

Claim ledger

Article says
By default, it is set to try…
What is true
PostgreSQL 19 defaults recovery_prefetch to RECOVERY_PREFETCH_TRY. Its source gates prefetch on platform support and positive maintenance_io_concurrency. wal_decode_buffer_size limits WAL lookahead. These citations do not independently establish PostgreSQL 18 behavior.

Source

Source · REL_19_STABLE@16dd909023 · src/backend/access/transam/xlogprefetcher.c:70-76/* GUCs */ int recovery_prefetch = RECOVERY_PREFETCH_TRY; #ifdef USE_PREFETCH #define RecoveryPrefetchEnabled() \ (recovery_prefetch != RECOVERY_PREFETCH_OFF && \ maintenance_io_concurrency > 0)

Not graded: no reader would act differently on it.

In the article

In the article

Article · exact quote · open in article ↗ (opens in new tab)By default, it is set to try…
All sources and excerpts · 3
Evidence/* GUCs */ int recovery_prefetch = RECOVERY_PREFETCH_TRY; #ifdef USE_PREFETCH #define RecoveryPrefetchEnabled() \ (recovery_prefetch != RECOVERY_PREFETCH_OFF && \ maintenance_io_concurrency > 0)
Evidence if (RecoveryPrefetchEnabled()) { Assert(maintenance_io_concurrency > 0); max_inflight = maintenance_io_concurrency; max_distance = max_inflight * XLOGPREFETCHER_DISTANCE_MULTIPLIER;
Evidence * Set the WAL decode buffer size. This limits how far ahead we can read * in the WAL. */ XLogReaderSetDecodeBuffer(xlogreader, NULL, wal_decode_buffer_size);
How the review tested this

Review: We checked platform gating, concurrency, and decode distance separately. All cited implementation ranges belong to PostgreSQL 19. The platform gate, concurrency setting, and decoding bound match. All three code citations identify PostgreSQL 19.

F11

Note: “A restartpoint is triggered by schedule when a checkpoint record is reached…”

NOTEpartly holds after review

Claim ledger

Article says
A restartpoint is triggered by schedule when a checkpoint record is reached…
What is true
PostgreSQL 19 checkpointer.c:412 triggers timed attempts independently of checkpoint replay. CreateRestartPoint separately requires a usable checkpoint. PostgreSQL 19 wal.sgml:670 repeats the article's wording. This establishes a wording distinction at PostgreSQL 19, without independently checking PostgreSQL 18.

Source

Source · REL_19_STABLE@16dd909023 · src/backend/access/transam/xlog.c:7794-7796/* * If the last checkpoint record we've replayed is already our last * restartpoint, we can't perform a new restart point. We still update

Not graded: no reader would act differently on it.

In the article

In the article

Article · exact quote · open in article ↗ (opens in new tab)A restartpoint is triggered by schedule when a checkpoint record is reached…
All sources and excerpts · 3
Evidence /* * If the last checkpoint record we've replayed is already our last * restartpoint, we can't perform a new restart point. We still update
Evidence now = (pg_time_t) time(NULL); elapsed_secs = now - last_checkpoint_time; if (elapsed_secs >= CheckPointTimeout) { if (!do_checkpoint) chkpt_or_rstpt_timed = true; do_checkpoint = true; flags |= CHECKPOINT_CAUSE_TIME;
Evidence A restartpoint is triggered by schedule when a checkpoint record is reached if at least <xref linkend="guc-checkpoint-timeout"/> seconds have passed since the last performed restartpoint or when the previous attempt to perform the restartpoint has failed. In the last case, the next restartpoint will be scheduled in 15 seconds.

Version note: The pinned documentation repeats the article's trigger description.

How the review tested this

Review: Reading the sentence as a successful-restartpoint restriction preserves its intent. The timer distinction comes from PostgreSQL 19 source. The successful-work reading preserves the checkpoint-record restriction. The timer distinction rests on PostgreSQL 19 code and documentation.

F12

Note: “If checkpoints happen closer together than checkpoint_warning seconds, a message will be…”

NOTEpartly holds after review

Claim ledger

Article says
If checkpoints happen closer together than checkpoint_warning seconds, a message will be output to the server log…
What is true
REL_18_6 checkpointer.c:454 requires CHECKPOINT_CAUSE_XLOG before issuing checkpoint_warning. Timed or manual checkpoints alone do not satisfy that condition. PostgreSQL 18 wal.sgml:557 uses the same shortened wording. This is the documentation caveat already recorded in F2.
So what
Use checkpoint logs and pg_stat_checkpointer to inspect checkpoint frequency. Do not use checkpoint_warning as a general short-interval detector.

Source

Source · REL_19_STABLE@16dd909023 · src/backend/postmaster/checkpointer.c:476-478if (!do_restartpoint && (flags & CHECKPOINT_CAUSE_XLOG) && elapsed_secs < CheckPointWarning)

Not graded: no reader would act differently on it.

In the article

In the article

Article · exact quote · open in article ↗ (opens in new tab)If checkpoints happen closer together than checkpoint_warning seconds, a message will be output to the server log…
All sources and excerpts · 3
Evidence if (!do_restartpoint && (flags & CHECKPOINT_CAUSE_XLOG) && elapsed_secs < CheckPointWarning)
Evidence parameter. If checkpoints happen closer together than <varname>checkpoint_warning</varname> seconds, a message will be output to the server log recommending increasing

Version note: PostgreSQL 18 documentation uses the same shortened description.

Evidence if (!do_restartpoint && (flags & CHECKPOINT_CAUSE_XLOG) && elapsed_secs < CheckPointWarning)

Version note: The article identifies PostgreSQL 18 as its documentation version.

How the review tested this

Review: The technical caveat survives. PostgreSQL 18 documentation uses identical wording, and F2 already records this caveat as a note. PostgreSQL 18 documentation repeats this wording. The surrounding max_wal_size discussion supports the charitable reading. F2 already records the qualification as a note.

F13

Note: “…if fewer than commit_siblings other sessions are currently in active transactions…”

NOTEpartly holds after review

Claim ledger

Article says
…if fewer than commit_siblings other sessions are currently in active transactions…
What is true
PostgreSQL 19 xlog.c:2909 requires MinimumActiveBackends(CommitSiblings) before the commit_delay sleep. The cited range confirms this prerequisite at PostgreSQL 19. It does not independently verify PostgreSQL 18.

Source

Source · REL_19_STABLE@16dd909023 · src/backend/access/transam/xlog.c:2909-2913if (CommitDelay > 0 && enableFsync && MinimumActiveBackends(CommitSiblings)) { pgstat_report_wait_start(WAIT_EVENT_COMMIT_DELAY); pg_usleep(CommitDelay);

Not graded: no reader would act differently on it.

In the article

In the article

Article · exact quote · open in article ↗ (opens in new tab)…if fewer than commit_siblings other sessions are currently in active transactions…
All sources and excerpts · 1
Evidence if (CommitDelay > 0 && enableFsync && MinimumActiveBackends(CommitSiblings)) { pgstat_report_wait_start(WAIT_EVENT_COMMIT_DELAY); pg_usleep(CommitDelay);
How the review tested this

Review: MinimumActiveBackends supports the stated prerequisite. The citation establishes PostgreSQL 19 behavior, not the article's PostgreSQL 18 version. The active-sibling condition matches the quotation. The implementation citation identifies PostgreSQL 19.

F14

Note: “…old segments are kept until they are summarized…”

NOTEpartly holds after review

Claim ledger

Article says
…old segments are kept until they are summarized…
What is true
PostgreSQL 19 KeepLogSeg lowers the removal boundary when unsummarized WAL requires retention. xlog.c:8157 supports this mechanism at PostgreSQL 19. The citation does not independently verify PostgreSQL 18.

Source

Source · REL_19_STABLE@16dd909023 · src/backend/access/transam/xlog.c:8157-8168XLByteToSeg(keep, unsummarized_segno, wal_segment_size); if (unsummarized_segno < segno) segno = unsummarized_segno;

Not graded: no reader would act differently on it.

In the article

In the article

Article · exact quote · open in article ↗ (opens in new tab)…old segments are kept until they are summarized…
All sources and excerpts · 1
Evidence XLByteToSeg(keep, unsummarized_segno, wal_segment_size); if (unsummarized_segno < segno) segno = unsummarized_segno;
How the review tested this

Review: The enabled-summarization condition makes the article's claim appropriately conditional. The implementation citation still covers PostgreSQL 19. We checked the summarization condition and removal boundary. The cited implementation identifies PostgreSQL 19.

F18

Note: “…counted as writes and fsyncs in pg_stat_io for the object wal , respectively…”

NOTEpartly holds after review

Claim ledger

Article says
…counted as writes and fsyncs in pg_stat_io for the object wal , respectively…
What is true
PostgreSQL 19 pgstat_io.c:114 updates operation counts outside its timing branch. XLogWrite and issue_xlog_fsync call that accounting function. The cited code confirms timing-independent counts at PostgreSQL 19, without independently verifying PostgreSQL 18.

Source

Source · REL_19_STABLE@16dd909023 · src/backend/access/transam/xlog.c:2464-2490pgstat_count_io_op_time(IOOBJECT_WAL, IOCONTEXT_NORMAL, IOOP_WRITE, start, 1, written);

Not graded: no reader would act differently on it.

In the article

In the article

Article · exact quote · open in article ↗ (opens in new tab)…counted as writes and fsyncs in pg_stat_io for the object wal , respectively…
All sources and excerpts · 3
Evidence pgstat_count_io_op_time(IOOBJECT_WAL, IOCONTEXT_NORMAL, IOOP_WRITE, start, 1, written);
Evidence pgstat_count_io_op_time(IOOBJECT_WAL, IOCONTEXT_NORMAL, IOOP_FSYNC, start, 1, 0);
Evidence } pgstat_count_io_op(io_object, io_context, io_op, cnt, bytes);
How the review tested this

Review: We checked whether disabling timing also suppresses counts. Counting occurs outside the timing branch, but these citations cover PostgreSQL 19. We checked whether disabling timing also disables counting. Counting occurs outside the timing branch in the cited PostgreSQL 19 implementation.

F20

Note: “…checkpoint_completion_target could be set as high as 1.0…”

NOTEpartly holds after review

Claim ledger

Article says
…checkpoint_completion_target could be set as high as 1.0…
What is true
PostgreSQL 19 guc_parameters.dat:410 accepts checkpoint_completion_target from 0.0 through 1.0 and defaults to 0.9. This supports the acceptance claim at PostgreSQL 19. The citation does not independently establish PostgreSQL 18's range.

Source

Source · REL_19_STABLE@16dd909023 · src/backend/utils/misc/guc_parameters.dat:410-415{ name => 'checkpoint_completion_target', type => 'real', context => 'PGC_SIGHUP', group => 'WAL_CHECKPOINTS', short_desc => 'Time spent flushing dirty buffers during checkpoint, as fraction of checkpoint interval.', variable => 'CheckPointCompletionTarget', boot_val => '0.9', min => '0.0', max => '1.0',

Not graded: no reader would act differently on it.

In the article · section “28.5. WAL Configuration #”

In the article

excerpt · section “28.5. WAL Configuration #” · as fetched 2026-10-19 · open in article ↗ (opens in new tab)

28.5. WAL Configuration #

To avoid flooding the I/O system with a burst of page writes, writing dirty buffers during a checkpoint is spread over a period of time. That period is controlled by checkpoint_completion_target , which is given as a fraction of the checkpoint interval (configured by using checkpoint_timeout ). The I/O rate is adjusted so that the checkpoint finishes when the given fraction of checkpoint_timeout seconds have elapsed, or before max_wal_size is exceeded, whichever is sooner. With the default value of 0.9, PostgreSQL can be expected to complete each checkpoint a bit before the next scheduled checkpoint (at around 90% of the last checkpoint's duration). This spreads out the I/O as much as possible so that the checkpoint I/O load is consistent throughout the checkpoint interval. The disadvantage of this is that prolonging checkpoints affects recovery time, because more WAL segments will need to be kept around for possible use in recovery. A user concerned about the amount of time required to recover might wish to reduce checkpoint_timeout so that checkpoints occur more frequently but still spread the I/O across the checkpoint interval. Alternatively, checkpoint_completion_target could be reduced, but this would result in times of more intense I/O (during the checkpoint) and times of less I/O (after the checkpoint completed but before the next scheduled checkpoint) and therefore is not recommended. Although checkpoint_completion_target could be set as high as 1.0, it is typically recommended to set it to no higher than 0.9 (the default) since checkpoints include some other activities besides writing dirty buffers. A setting of 1.0 is quite likely to result in checkpoints not being completed on time, which would result in performance loss due to unexpected variation in the number of WAL segments needed.

All sources and excerpts · 1
Evidence{ name => 'checkpoint_completion_target', type => 'real', context => 'PGC_SIGHUP', group => 'WAL_CHECKPOINTS', short_desc => 'Time spent flushing dirty buffers during checkpoint, as fraction of checkpoint interval.', variable => 'CheckPointCompletionTarget', boot_val => '0.9', min => '0.0', max => '1.0',

Version note: The article identifies PostgreSQL 18. This source range is from PostgreSQL 19.

How the review tested this

Review: The article distinguishes accepted values from recommendations. The range declaration supports acceptance at PostgreSQL 19 only. We distinguished an accepted value from a recommended value. The cited parameter definition establishes PostgreSQL 19 acceptance.

F21

Note: “…the next restartpoint will be scheduled in 15 seconds…”

NOTEpartly holds after review

Claim ledger

Article says
…the next restartpoint will be scheduled in 15 seconds…
What is true
PostgreSQL 19 checkpointer.c:556 resets the timer so its timeout threshold occurs 15 seconds later. That supports a retry schedule, not guaranteed completion. The cited arithmetic does not independently establish PostgreSQL 18 behavior.

Source

Source · REL_19_STABLE@16dd909023 · src/backend/postmaster/checkpointer.c:556-556last_checkpoint_time = now - CheckPointTimeout + 15;

Not graded: no reader would act differently on it.

In the article

In the article

Article · exact quote · open in article ↗ (opens in new tab)…the next restartpoint will be scheduled in 15 seconds…
All sources and excerpts · 2
Evidence last_checkpoint_time = now - CheckPointTimeout + 15;

Version note: The article identifies PostgreSQL 18. This source range is from PostgreSQL 19.

Evidence now = (pg_time_t) time(NULL); elapsed_secs = now - last_checkpoint_time; if (elapsed_secs >= CheckPointTimeout)

Version note: The article identifies PostgreSQL 18. This source range is from PostgreSQL 19.

How the review tested this

Review: The timer arithmetic gives 15 seconds and promises scheduling, not successful completion. Both implementation citations belong to PostgreSQL 19. The timer arithmetic supports a retry schedule rather than guaranteed completion. The report cites PostgreSQL 19 for PostgreSQL 18 documentation.

F22

Note: “…wal_keep_size megabytes of WAL files plus one additional WAL file…”

NOTEpartly holds after review

Claim ledger

Article says
…wal_keep_size megabytes of WAL files plus one additional WAL file…
What is true
PostgreSQL 19 rounds wal_keep_size down to whole segments before calculating its retention boundary. With 17 MiB configured and 16 MiB segments, that rule retains 2 segments totaling 32 MiB. Other requirements can retain more. The cited calculation does not independently verify PostgreSQL 18.
So what
Use whole WAL segments when calculating the retention contributed by wal_keep_size.

Source

Source · REL_19_STABLE@16dd909023 · src/include/access/xlog_internal.h:122-127/* * Convert values of GUCs measured in megabytes to equiv. segment count. * Rounds down. */ #define XLogMBVarToSegs(mbvar, wal_segsz_bytes) \ ((mbvar) / ((wal_segsz_bytes) / (1024 * 1024)))

Not graded: knowing this would not change what a reader does.

In the article

In the article

Article · exact quote · open in article ↗ (opens in new tab)…wal_keep_size megabytes of WAL files plus one additional WAL file…
All sources and excerpts · 4
Evidence/* * Convert values of GUCs measured in megabytes to equiv. segment count. * Rounds down. */ #define XLogMBVarToSegs(mbvar, wal_segsz_bytes) \ ((mbvar) / ((wal_segsz_bytes) / (1024 * 1024)))

Version note: The article identifies PostgreSQL 18. This source range is from PostgreSQL 19.

Evidence#define ConvertToXSegs(x, segsize) XLogMBVarToSegs((x), (segsize))

Version note: The article identifies PostgreSQL 18. This source range is from PostgreSQL 19.

Evidence keep_segs = ConvertToXSegs(wal_keep_size_mb, wal_segment_size); if (currSegNo - segno < keep_segs) { /* avoid underflow, don't go below 1 */ if (currSegNo <= keep_segs) segno = 1; else segno = currSegNo - keep_segs; }

Version note: The article identifies PostgreSQL 18. This source range is from PostgreSQL 19.

Evidence _logSegNo--; RemoveOldXlogFiles(_logSegNo, RedoRecPtr, recptr, checkPoint.ThisTimeLineID);

Version note: The article identifies PostgreSQL 18. This source range is from PostgreSQL 19.

How the review tested this

Review: We checked rounding and the removal boundary. The two-segment example follows, but the calculation describes PostgreSQL 19. We checked integer division and the removal boundary. The 32 MiB example follows for ordinary segment numbers. Its citations identify PostgreSQL 19.

More in this report

Section checks · 11 sections

Section checks

AspectGradeFindingsCoverage
Page metadataA3 verified-accurate100% of claims (3 of 3)
Checkpoint schedulingAnone85% of claims (6 of 7)
Checkpoint warningsAnone83% of claims (5 of 6)
Checkpoint pacingAnone90% of claims (10 of 11, plus 5 that need data we do not have)
Checkpoint flushingAnone100% of claims (2 of 2, plus 3 that need data we do not have)
WAL retentionAnone53% of claims (8 of 15)provisional
RestartpointsAnone88% of claims (15 of 17, plus 1 that need data we do not have)
WAL buffersAnone83% of claims (10 of 12, plus 2 that need data we do not have)
Group commit delayAnone100% of claims (9 of 9, plus 2 that need data we do not have)
WAL I/O statisticsAnone87% of claims (14 of 16)
Recovery prefetchAnone80% of claims (4 of 5, plus 1 that need data we do not have)
Coverage and assessment · Checked 113 of 144 Postgres claims across 19 sections; 1 section below half

A — the findings address the article's main subject. What we did not check is listed below. The findings directly check checkpoint scheduling, WAL retention, buffering, synchronization, and recovery_prefetch, subject to the source-version qualification.

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.

What we did not check

  • We did not check every low-level database modification path for the claim that all modifications call XLogInsertRecord.
  • We did not verify every claim about checkpoint scheduling, WAL cleanup, restartpoint counters, or wal_debug.
  • We did not benchmark the checkpoint, commit_delay, wal_buffers, or recovery_prefetch performance recommendations.
  • We did not verify operating-system writeback, sleep timing, or disk-cache durability claims.
  • We did not finish checking the pg_stat_io timing claims or recovery_prefetch prerequisites.
  • We could not retrieve the community page, account page, or development WAL configuration page.
  • We did not verify the one-checkpoint-cycle estimate for WAL growth during recovery.
  • We did not verify the 10-millisecond sleep resolution on a specific operating system.
  • We did not measure whether half the flush time optimizes commit_delay or whether two clients gain throughput.
  • Section “WAL retention”: we checked 8 of 15 checkable claims.
  • Section “Restartpoint monitoring”: we checked 2 of 5 checkable claims.
  • Section “Group commit without delay”: we checked 3 of 9 checkable claims.
  • Section “WAL debugging”: we checked 0 of 3 checkable claims.
Checked 113 of 144 Postgres claims across 19 sections; 1 section below half
  • Page metadata: 3 of 3 Postgres claims checked; not counted: 4 not a claim
  • Checkpoint basics: 9 of 12 Postgres claims checked, plus 2 that need data we do not have; not counted: 2 not a claim; not checked: 3 for other reasons
  • Checkpoint scheduling: 6 of 7 Postgres claims checked; not checked: 1 for other reasons
  • Checkpoint frequency costs: 4 of 6 Postgres claims checked, plus 3 that need data we do not have; not counted: 2 duplicate; not checked: 2 for other reasons
  • Checkpoint warnings: 5 of 6 Postgres claims checked; not checked: 1 for other reasons
  • Checkpoint pacing: 10 of 11 Postgres claims checked, plus 5 that need data we do not have; not counted: 1 duplicate; not checked: 1 for other reasons
  • Checkpoint flushing: 2 of 2 Postgres claims checked, plus 3 that need data we do not have
  • WAL retention: 8 of 15 Postgres claims checked; not counted: 1 duplicate; not checked: 7 for other reasons
  • Restartpoints: 15 of 17 Postgres claims checked, plus 1 that need data we do not have; not checked: 2 for other reasons
  • Restartpoint monitoring: 2 of 4 Postgres claims checked, plus 1 that need data we do not have; not checked: 2 for other reasons
  • WAL buffers: 10 of 12 Postgres claims checked, plus 2 that need data we do not have; not checked: 2 for other reasons
  • Group commit delay: 9 of 9 Postgres claims checked, plus 2 that need data we do not have
  • Commit delay tuning: 7 of 7 Postgres claims checked, plus 6 that need data we do not have
  • Group commit without delay: 3 of 6 Postgres claims checked, plus 3 that need data we do not have; not checked: 3 for other reasons
  • WAL synchronization methods: 2 of 3 Postgres claims checked, plus 3 that need data we do not have; not checked: 1 for other reasons
  • WAL debugging: 0 of 3 Postgres claims checked; not counted: 1 product or opinion; not checked: 3 for other reasons
  • WAL I/O statistics: 14 of 16 Postgres claims checked; not counted: 1 duplicate; not checked: 2 for other reasons
  • Recovery prefetch: 4 of 5 Postgres claims checked, plus 1 that need data we do not have; not checked: 1 for other reasons
  • Page footer: no checkable claims; not counted: 4 not a claim

Average of 4 axes: 4 · result A

Some explanatory text is not shown in this edition; the grade and findings are complete.

Scorecard · the five axes
FACTS scorecard Scorecard radar, 5 axes, bigger is better. Overall A. Factual A · 0 wrong of 3 checked · 0 caveats. Applicable not applicable (n/a). Consistent A · 0 wrong of 3 checked · 0 caveats. Transparent A · 0 wrong of 3 checked · 0 caveats. Safe A · 0 wrong of 14 checked · 0 caveats. A 0 wrong of 3 checked · 0 caveatsFactual A0 wrong of 30 caveats not applicable (n/a), nothing to checkApplicable n/anothingto check A 0 wrong of 3 checked · 0 caveatsConsistent A0 wrong of 30 caveats A 0 wrong of 3 checked · 0 caveatsTransparent A0 wrong of 30 caveats A 0 wrong of 14 checked · 0 caveatsSafe A0 wrong of 140 caveats

By topic: Page metadata — 3 findings, 0 wrong

Further out is better. Each axis has its own letter, from the wrong claims and caveats among the claims we checked of that kind.

Checked on the FACTS: Factual, Applicable, Consistent, Transparent, Safe. Clockwise: Factual (is it true?), Applicable (does it apply to my setup, today?), Consistent (does it agree with itself?), Transparent (can I check it myself?), Safe (can I run this on prod?).

We checked 3 claims.

AxisLetterWrongCaveatsCheckedCoverage
FactualA003assessed: A · 0 wrong of 3 checked · 0 caveats
Applicable—000not applicable
ConsistentA003assessed: A · 0 wrong of 3 checked · 0 caveats
TransparentA003assessed: A · 0 wrong of 3 checked · 0 caveats
SafeA0014assessed: A · 0 wrong of 14 checked · 0 caveats
Topics · 11 topics

Topics

Issues found among the claims checked, per topic and axis. Each link goes to the finding behind the count.

Revisions: 2 · A -> A

We audited this article 2 times. Each row is the final edition of one audit. Letters and findings of earlier revisions stay readable at their own address.

  1. Revision 1 · 2026-10-13 19:37 UTC · A · audit version not recorded · regrade version not recorded

    Article as first submitted. 10 accurate · 0 wrong · 2 caveats.

    ElephantSeal: A.

    Changes: First audit. Open: F1 “Checkpoint pacing uses checkpoint_timeout, not the previous checkpoint's duration” (mostly accurate); F2 “If checkpoints happen closer together than checkpoint_warning seconds…” (mostly accurate).

  2. Revision 2 · this page · 2026-10-19 08:26 UTC · A · audited with v1.0.14 (approx.) · regraded with v1.1.0 (approx.)

    Article text changed. 3 accurate · 0 wrong · 0 caveats.

    ElephantSeal: A.

    Changes: No longer reported: “Checkpoint pacing uses checkpoint_timeout, not the previous checkpoint's duration”; “If checkpoints happen closer together than checkpoint_warning seconds…”. New: none.

Questions and answers

Questions and answers

What is pgTrue?

pgTrue is an independent fact-check of technical Postgres articles, made by PostgresAI. It helps you check advice before you use it.

What does the letter grade mean?

The letter grade summarizes the claims we checked. Five axes show what we checked:

  • Factual: is it true?
  • Applicable: does it apply to my setup, today?
  • Consistent: does it agree with itself?
  • Transparent: can I check it myself?
  • Safe: can I run this in production?

What is the ElephantSeal?

The ElephantSeal is the mark an article earns. It always shows the latest edition. “Open:” lists what is still open.

Can an author reply?

Authors can ask us to correct a finding, reply to it, or withdraw it. Right-of-reply policy.

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: 28.5. WAL Configuration

Article title: 28.5. WAL Configuration
Article URL: https://www.postgresql.org/docs/18/wal-configuration.html
Report URL: https://pgtrue.postgres.ai/shared/brief/22d12695-d1a8-477b-82da-76606061cce3
Audited revision: 2 of 2, 2026-10-19 08:26:24 UTC
Overall letter: A

## Axes

- Factual: A · 0 wrong · 3 checked · 0 caveats · assessed
- Applicable: — · 0 wrong · 0 checked · 0 caveats · not applicable
- Consistent: A · 0 wrong · 3 checked · 0 caveats · assessed
- Transparent: A · 0 wrong · 3 checked · 0 caveats · assessed
- Safe: A · 0 wrong · 14 checked · 0 caveats · assessed

ElephantSeal: A.

## Report metadata

- Report: Technical fact-check, edition 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. The article changed 1 time after our first audit; we re-audited each version. See Revisions below. Policy: [right-of-reply and corrections policy](/pgtrue/security).
- pgTrue version: audited with v1.0.14 (approx.) · regraded with v1.1.0 (approx.)

## Findings needing a change (0)

None.

## Verified accurate claims (3)

### F15 · Accurate · Factual · PostgreSQL 18 remains the current release
Location: excerpt · as fetched 2026-10-19 · [open in article](https://www.postgresql.org/docs/18/wal-configuration.html#:~:text=Current%20%28%2018%20%29)
Article says:
```text
…Current ( 18 )…
```
What is true:
The official manual directory identifies PostgreSQL 18 as Current on October 19, 2026.
Charitable reading:
Current identifies the supported production release, rather than the largest available prerelease version.
Review: We tested whether PostgreSQL 19's larger version number contradicted Current. The manual directory distinguishes its release candidate from PostgreSQL 18. We checked whether Current meant the largest prerelease number. The official directory explicitly labels PostgreSQL 18 as Current.

Sources:
- [https://www.postgresql.org/docs/](https://www.postgresql.org/docs/)
  Excerpt:
  ```text
  18 / Current
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/22d12695-d1a8-477b-82da-76606061cce3#F15

### F16 · Accurate · Factual · PostgreSQL 19 remains a prerelease
Location: excerpt · as fetched 2026-10-19 · [open in article](https://www.postgresql.org/docs/18/wal-configuration.html#:~:text=Development%20Versions%3A%2019%20%2F%20devel)
Article says:
```text
…Development Versions: 19 / devel…
```
What is true:
The October 15, 2026 announcement identifies PostgreSQL 19 RC 1 as a release candidate. It schedules general availability for November 19, 2026.
Charitable reading:
Development includes release candidates that precede general availability.
Review: We checked the announcement's release status and schedule. It identifies RC 1 and gives November 19 as planned general availability. We checked the announcement's release status and schedule. It identifies RC 1 and plans general availability for November 19, 2026.

Sources:
- [https://www.postgresql.org/about/news/postgresql-19-rc-1-released-3409/](https://www.postgresql.org/about/news/postgresql-19-rc-1-released-3409/)
  Excerpt:
  ```text
  This is the first release candidate for PostgreSQL 19.
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/22d12695-d1a8-477b-82da-76606061cce3#F16

### F17 · Accurate · Factual · The archived release support labels match the manual index
Location: excerpt · as fetched 2026-10-19 · [open in article](https://www.postgresql.org/docs/18/wal-configuration.html#:~:text=Unsupported%20versions%3A%2013%20%2F%2012%20%2F%2011)
Article says:
```text
…Unsupported versions: 13 / 12 / 11…
```
What is true:
The PostgreSQL 18 manual index lists PostgreSQL 13 and the older releases named in the article as unsupported.
Charitable reading:
Unsupported refers to project support, rather than whether archived manuals remain accessible.
Review: We distinguished archived documentation availability from release support. The PostgreSQL 18 index repeats the unsupported-version labels. We distinguished archived documentation from project support. The PostgreSQL 18 index confirms the unsupported-release labels.

Sources:
- [https://www.postgresql.org/docs/18/index.html](https://www.postgresql.org/docs/18/index.html)
  Excerpt:
  ```text
  Unsupported versions: 13 / 12 / 11
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/22d12695-d1a8-477b-82da-76606061cce3#F17

## Notes (not graded) (18)

### F1 · Note ·  · Note: “…at around 90% of the last checkpoint's duration…”
Location: excerpt · section “28.5. WAL Configuration \#” · as fetched 2026-10-19 · [open in article](https://www.postgresql.org/docs/18/wal-configuration.html#:~:text=at%20around%2090%25%20of%20the%20last%20checkpoint%27s%20duration)
Article says:
```text
…at around 90% of the last checkpoint's duration…
```
What is true:
PostgreSQL 19 checkpointer.c:928 divides elapsed time by CheckPointTimeout. Its pacing calculation does not use the previous checkpoint's duration. PostgreSQL 18 wal.sgml:581 contains the disputed wording. The cited implementation establishes the correction for PostgreSQL 19.
So what:
Estimate checkpoint pacing from checkpoint_timeout and WAL consumption rather than the previous checkpoint's duration.
Explanation: Not graded: no reader would act differently on it.
Review: The surrounding text correctly names checkpoint_timeout. The correction is plausible, but its implementation evidence comes from PostgreSQL 19. The preceding sentence supplies the correct interval. The duration correction remains useful, but its implementation evidence identifies PostgreSQL 19.

Sources:
- [REL_19_STABLE@16dd909023 · src/backend/postmaster/checkpointer.c:928-929](https://github.com/postgres/postgres/blob/16dd90902366c0404616dc43b170c94b064d0caf/src/backend/postmaster/checkpointer.c#L928-L929)
  Qualification: Version note: Pinned PostgreSQL 19 source.
  Excerpt:
  ```text
  elapsed_time = ((double) ((pg_time_t) now.tv_sec - ckpt_start_time) +
					now.tv_usec / 1000000.0) / CheckPointTimeout;
  ```
- [REL_18_6 · doc/src/sgml/wal.sgml:581-582](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/wal.sgml#L581-L582)
  Qualification: Version note: PostgreSQL 18 documentation repeats the article's wording.
  Excerpt:
  ```text
  a bit before the next scheduled checkpoint (at around 90% of the last checkpoint's
   duration).  This spreads out the I/O as much as possible so that the checkpoint
  ```
- [REL_19_STABLE@16dd909023 · src/backend/postmaster/checkpointer.c:879-880](https://github.com/postgres/postgres/blob/16dd90902366c0404616dc43b170c94b064d0caf/src/backend/postmaster/checkpointer.c#L879-L880)
  Qualification: Version note: The article identifies PostgreSQL 18. This source range is from PostgreSQL 19.
  Excerpt:
  ```text
  /* Scale progress according to checkpoint_completion_target. */
	progress *= CheckPointCompletionTarget;
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/22d12695-d1a8-477b-82da-76606061cce3#F1

### F2 · Note ·  · Note: “If checkpoints happen closer together than checkpoint_warning seconds…”
Location: Article · exact quote · [open in article](https://www.postgresql.org/docs/18/wal-configuration.html#:~:text=If%20checkpoints%20happen%20closer%20together%20than%20checkpoint_warning%20seconds)
Article says:
```text
If checkpoints happen closer together than checkpoint_warning seconds…
```
What is true:
checkpointer.c:476 requires CHECKPOINT_CAUSE_XLOG before logging the warning. checkpoint_warning does not detect every cause of frequent checkpoints. PostgreSQL 18 wal.sgml:557 uses the same shortened description.
So what:
Use checkpoint statistics and log_checkpoints to detect frequent timed or manual checkpoints.
Explanation: Not graded: no reader would act differently on it.
Review: We tested the surrounding WAL-consumption context. The condition still requires CHECKPOINT_CAUSE_XLOG in PostgreSQL 18.6. A documentation note is justified. We tested the surrounding WAL-specific reading. PostgreSQL 18 and 19 both require CHECKPOINT_CAUSE_XLOG. The documentation note preserves that qualification fairly.

Sources:
- [REL_19_STABLE@16dd909023 · src/backend/postmaster/checkpointer.c:476-478](https://github.com/postgres/postgres/blob/16dd90902366c0404616dc43b170c94b064d0caf/src/backend/postmaster/checkpointer.c#L476-L478)
  Excerpt:
  ```text
  if (!do_restartpoint &&
				(flags & CHECKPOINT_CAUSE_XLOG) &&
				elapsed_secs < CheckPointWarning)
  ```
- [REL_18_6 · doc/src/sgml/wal.sgml:557-559](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/wal.sgml#L557-L559)
  Qualification: Version note: PostgreSQL 18 documentation uses the same shortened description.
  Excerpt:
  ```text
  parameter.  If checkpoints happen closer together than
   <varname>checkpoint_warning</varname> seconds,
   a message will be output to the server log recommending increasing
  ```
- [REL_18_6 · src/backend/postmaster/checkpointer.c:454-456](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/postmaster/checkpointer.c#L454-L456)
  Qualification: Version note: The article identifies PostgreSQL 18 as its documentation version.
  Excerpt:
  ```text
  if (!do_restartpoint &&
				(flags & CHECKPOINT_CAUSE_XLOG) &&
				elapsed_secs < CheckPointWarning)
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/22d12695-d1a8-477b-82da-76606061cce3#F2

### F3 · Note ·  · Note: “…force OS pages written by the checkpoint to be flushed to disk…”
Location: Article · exact quote · [open in article](https://www.postgresql.org/docs/18/wal-configuration.html#:~:text=force%20OS%20pages%20written%20by,to%20be%20flushed%20to%20disk)
Article says:
```text
…force OS pages written by the checkpoint to be flushed to disk…
```
What is true:
PostgreSQL 19 fd.c:552 describes Linux writeback requests that do not wait for completion. PostgreSQL 18 wal.sgml:603 repeats the article's wording. This evidence supports a Linux implementation qualification, rather than a general guarantee about every platform.
So what:
Keep checkpoint synchronization enabled and evaluate checkpoint_flush_after as writeback pacing.
Explanation: Not graded: no reader would act differently on it.
Review: The article describes writeback's objective without promising synchronous completion. The cited implementation describes Linux behavior in PostgreSQL 19. The paragraph describes writeback pacing rather than replacing fsync. The nonblocking implementation citation establishes PostgreSQL 19 behavior.

Sources:
- [REL_19_STABLE@16dd909023 · src/backend/storage/file/fd.c:552-554](https://github.com/postgres/postgres/blob/16dd90902366c0404616dc43b170c94b064d0caf/src/backend/storage/file/fd.c#L552-L554)
  Excerpt:
  ```text
  * sync_file_range(SYNC_FILE_RANGE_WRITE), currently linux specific,
		 * tells the OS that writeback for the specified blocks should be
		 * started, but that we don't want to wait for completion.  Note that
  ```
- [REL_18_6 · doc/src/sgml/wal.sgml:603-604](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/wal.sgml#L603-L604)
  Qualification: Version note: PostgreSQL 18 documentation repeats this wording.
  Excerpt:
  ```text
  allows you to force OS pages written by the checkpoint to be
   flushed to disk after a configurable number of bytes.  Otherwise, these
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/22d12695-d1a8-477b-82da-76606061cce3#F3

### F4 · Note ·  · Note: “The default settings are 5 minutes and 1 GB, respectively.”
Location: Article · exact quote · [open in article](https://www.postgresql.org/docs/18/wal-configuration.html#:~:text=The%20default%20settings%20are%205%20minutes%20and%201%20GB%2C%20respectively.)
Article says:
```text
The default settings are 5 minutes and 1 GB, respectively.
```
What is true:
The cited PostgreSQL 19 source sets defaults of 300 seconds, 1024 MB, and 0.9. It also supports the stated buffer flushing and page-LSN comparison. These citations do not independently verify PostgreSQL 18.
Explanation: Not graded: no reader would act differently on it.
Review: We checked the defaults and checkpoint operations. They match PostgreSQL 19, which does not establish the article's PostgreSQL 18 behavior. We checked defaults, buffer flushing, and page-LSN comparison. They support the finding for PostgreSQL 19, rather than the article's PostgreSQL 18.

Sources:
- [REL_19_STABLE@16dd909023 · src/backend/postmaster/checkpointer.c:928-929](https://github.com/postgres/postgres/blob/16dd90902366c0404616dc43b170c94b064d0caf/src/backend/postmaster/checkpointer.c#L928-L929)
  Qualification: Version note: Pinned PostgreSQL 19 source.
  Excerpt:
  ```text
  elapsed_time = ((double) ((pg_time_t) now.tv_sec - ckpt_start_time) +
					now.tv_usec / 1000000.0) / CheckPointTimeout;
  ```
- [REL_19_STABLE@16dd909023 · src/backend/postmaster/checkpointer.c:167-169](https://github.com/postgres/postgres/blob/16dd90902366c0404616dc43b170c94b064d0caf/src/backend/postmaster/checkpointer.c#L167-L169)
  Excerpt:
  ```text
  int			CheckPointTimeout = 300;
int			CheckPointWarning = 30;
double		CheckPointCompletionTarget = 0.9;
  ```
- [REL_19_STABLE@16dd909023 · src/backend/access/transam/xlog.c:119-119](https://github.com/postgres/postgres/blob/16dd90902366c0404616dc43b170c94b064d0caf/src/backend/access/transam/xlog.c#L119-L119)
  Excerpt:
  ```text
  int			max_wal_size_mb = 1024; /* 1 GB */
  ```
- [REL_19_STABLE@16dd909023 · src/backend/access/transam/xloginsert.c:692-694](https://github.com/postgres/postgres/blob/16dd90902366c0404616dc43b170c94b064d0caf/src/backend/access/transam/xloginsert.c#L692-L694)
  Excerpt:
  ```text
  XLogRecPtr	page_lsn = PageGetLSN(regbuf->page);

			needs_backup = (page_lsn <= RedoRecPtr);
  ```
- [REL_19_STABLE@16dd909023 · src/backend/postmaster/checkpointer.c:410-417](https://github.com/postgres/postgres/blob/16dd90902366c0404616dc43b170c94b064d0caf/src/backend/postmaster/checkpointer.c#L410-L417)
  Excerpt:
  ```text
  now = (pg_time_t) time(NULL);
		elapsed_secs = now - last_checkpoint_time;
		if (elapsed_secs >= CheckPointTimeout)
		{
			if (!do_checkpoint)
				chkpt_or_rstpt_timed = true;
			do_checkpoint = true;
			flags |= CHECKPOINT_CAUSE_TIME;
  ```
- [REL_19_STABLE@16dd909023 · src/backend/access/transam/xlog.c:7696-7701](https://github.com/postgres/postgres/blob/16dd90902366c0404616dc43b170c94b064d0caf/src/backend/access/transam/xlog.c#L7696-L7701)
  Excerpt:
  ```text
  CheckPointBuffers(flags);

	/* Perform all queued up fsyncs */
	TRACE_POSTGRESQL_BUFFER_CHECKPOINT_SYNC_START();
	CheckpointStats.ckpt_sync_t = GetCurrentTimestamp();
	ProcessSyncRequests();
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/22d12695-d1a8-477b-82da-76606061cce3#F4

### F5 · Note ·  · Note: “The estimate is based on a moving average…”
Location: Article · exact quote · [open in article](https://www.postgresql.org/docs/18/wal-configuration.html#:~:text=The%20estimate%20is%20based%20on%20a%20moving%20average)
Article says:
```text
The estimate is based on a moving average…
```
What is true:
PostgreSQL 19 xlog.c:6969 immediately raises the estimate when demand exceeds it. Otherwise, the previous estimate receives 90% weight. The cited summarization logic preserves required WAL independently. These checks establish PostgreSQL 19 behavior.
Explanation: Not graded: no reader would act differently on it.
Review: We checked both branches of the estimate update. The 90% weight is correct, but the citations cover PostgreSQL 19. The 90% weighting and immediate upward adjustment match the code. Both citations identify PostgreSQL 19.

Sources:
- [REL_19_STABLE@16dd909023 · src/backend/access/transam/xlog.c:6969-6974](https://github.com/postgres/postgres/blob/16dd90902366c0404616dc43b170c94b064d0caf/src/backend/access/transam/xlog.c#L6969-L6974)
  Excerpt:
  ```text
  PrevCheckPointDistance = nbytes;
	if (CheckPointDistanceEstimate < nbytes)
		CheckPointDistanceEstimate = nbytes;
	else
		CheckPointDistanceEstimate =
			(0.90 * CheckPointDistanceEstimate + 0.10 * (double) nbytes);
  ```
- [REL_19_STABLE@16dd909023 · src/backend/access/transam/xlog.c:8157-8161](https://github.com/postgres/postgres/blob/16dd90902366c0404616dc43b170c94b064d0caf/src/backend/access/transam/xlog.c#L8157-L8161)
  Excerpt:
  ```text
  /*
	 * If WAL summarization is in use, don't remove WAL that has yet to be
	 * summarized.
	 */
	keep = GetOldestUnsummarizedLSN(NULL, NULL);
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/22d12695-d1a8-477b-82da-76606061cce3#F5

### F6 · Note ·  · Note: “…restartpoints can only be performed at checkpoint records…”
Location: Article · exact quote · [open in article](https://www.postgresql.org/docs/18/wal-configuration.html#:~:text=restartpoints%20can%20only%20be%20performed%20at%20checkpoint%20records)
Article says:
```text
…restartpoints can only be performed at checkpoint records…
```
What is true:
PostgreSQL 19 xlog.c:7795 explains why an already-used checkpoint cannot support another restartpoint. checkpointer.c:410 independently schedules timed attempts. The cited ranges do not establish every counter claim or independently verify PostgreSQL 18.
Explanation: Not graded: no reader would act differently on it.
Review: The cited ranges support the checkpoint restriction and timer. They do not show all claimed counter updates. The successful-restartpoint restriction survives. The cited ranges do not establish all counter increments or the 15-second retry statement.

Sources:
- [REL_19_STABLE@16dd909023 · src/backend/access/transam/xlog.c:7794-7796](https://github.com/postgres/postgres/blob/16dd90902366c0404616dc43b170c94b064d0caf/src/backend/access/transam/xlog.c#L7794-L7796)
  Excerpt:
  ```text
  /*
	 * If the last checkpoint record we've replayed is already our last
	 * restartpoint, we can't perform a new restart point. We still update
  ```
- [REL_19_STABLE@16dd909023 · src/backend/postmaster/checkpointer.c:410-417](https://github.com/postgres/postgres/blob/16dd90902366c0404616dc43b170c94b064d0caf/src/backend/postmaster/checkpointer.c#L410-L417)
  Excerpt:
  ```text
  now = (pg_time_t) time(NULL);
		elapsed_secs = now - last_checkpoint_time;
		if (elapsed_secs >= CheckPointTimeout)
		{
			if (!do_checkpoint)
				chkpt_or_rstpt_timed = true;
			do_checkpoint = true;
			flags |= CHECKPOINT_CAUSE_TIME;
  ```
- [REL_19_STABLE@16dd909023 · src/backend/postmaster/checkpointer.c:556-556](https://github.com/postgres/postgres/blob/16dd90902366c0404616dc43b170c94b064d0caf/src/backend/postmaster/checkpointer.c#L556-L556)
  Qualification: Version note: The article identifies PostgreSQL 18. This source range is from PostgreSQL 19.
  Excerpt:
  ```text
  last_checkpoint_time = now - CheckPointTimeout + 15;
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/22d12695-d1a8-477b-82da-76606061cce3#F6

### F7 · Note ·  · Note: “XLogInsertRecord is used to place a new record into the WAL buffers in shared memory.”
Location: Article · exact quote · [open in article](https://www.postgresql.org/docs/18/wal-configuration.html#:~:text=XLogInsertRecord%20is%20used%20to%20place,WAL%20buffers%20in%20shared%20memory.)
Article says:
```text
XLogInsertRecord is used to place a new record into the WAL buffers in shared memory.
```
What is true:
PostgreSQL 19 xlog.c:22 describes insertion into shared WAL buffers. Its buffer-pressure path calls XLogWrite and increments wal_buffers_full. This supports the mechanism at that revision, without independently verifying PostgreSQL 18.
Explanation: Not graded: no reader would act differently on it.
Review: The conditional wal_buffers recommendation avoids a universal performance claim. Its implementation evidence nevertheless covers PostgreSQL 19. We checked the conditional buffer-pressure explanation. The insertion description and write path match PostgreSQL 19.

Sources:
- [REL_19_STABLE@16dd909023 · src/backend/access/transam/xlog.c:22-25](https://github.com/postgres/postgres/blob/16dd90902366c0404616dc43b170c94b064d0caf/src/backend/access/transam/xlog.c#L22-L25)
  Excerpt:
  ```text
  * XLogInsertRecord() inserts a WAL record into the WAL buffers.  Most
 * callers should not call this directly, but use the functions in
 * xloginsert.c to construct the WAL record.  XLogFlush() can be used
 * to force the WAL to disk.
  ```
- [REL_19_STABLE@16dd909023 · src/backend/access/transam/xlog.c:2097-2103](https://github.com/postgres/postgres/blob/16dd90902366c0404616dc43b170c94b064d0caf/src/backend/access/transam/xlog.c#L2097-L2103)
  Excerpt:
  ```text
  /* Have to write it ourselves */
					TRACE_POSTGRESQL_WAL_BUFFER_WRITE_DIRTY_START();
					WriteRqst.Write = OldPageRqstPtr;
					WriteRqst.Flush = InvalidXLogRecPtr;
					XLogWrite(WriteRqst, tli, false);
					LWLockRelease(WALWriteLock);
					pgWalUsage.wal_buffers_full++;
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/22d12695-d1a8-477b-82da-76606061cce3#F7

### F8 · Note ·  · Note: “No sleep will occur if fsync is not enabled…”
Location: Article · exact quote · [open in article](https://www.postgresql.org/docs/18/wal-configuration.html#:~:text=No%20sleep%20will%20occur%20if%20fsync%20is%20not%20enabled)
Article says:
```text
No sleep will occur if fsync is not enabled…
```
What is true:
PostgreSQL 19 xlog.c:2909 checks positive CommitDelay, enabled fsync, and MinimumActiveBackends before sleeping. pg_test_fsync calculates microseconds per operation. These citations support those conditions at PostgreSQL 19, without establishing the lock sequence or PostgreSQL 18 equivalence.
Explanation: Not graded: no reader would act differently on it.
Review: The conditions and microsecond calculation match. The quoted ranges do not show lock acquisition and belong to PostgreSQL 19. The sleep conditions and microsecond calculation match. The recorded ranges establish PostgreSQL 19 conditions but omit the preceding lock acquisition.

Sources:
- [REL_19_STABLE@16dd909023 · src/backend/access/transam/xlog.c:2909-2914](https://github.com/postgres/postgres/blob/16dd90902366c0404616dc43b170c94b064d0caf/src/backend/access/transam/xlog.c#L2909-L2914)
  Excerpt:
  ```text
  if (CommitDelay > 0 && enableFsync &&
			MinimumActiveBackends(CommitSiblings))
		{
			pgstat_report_wait_start(WAIT_EVENT_COMMIT_DELAY);
			pg_usleep(CommitDelay);
			pgstat_report_wait_end();
  ```
- [REL_19_STABLE@16dd909023 · src/bin/pg_test_fsync/pg_test_fsync.c:628-631](https://github.com/postgres/postgres/blob/16dd90902366c0404616dc43b170c94b064d0caf/src/bin/pg_test_fsync/pg_test_fsync.c#L628-L631)
  Excerpt:
  ```text
  double		per_second = ops / total_time;
	double		avg_op_time_us = (total_time / ops) * USECS_SEC;

	printf(_(OPS_FORMAT), per_second, avg_op_time_us);
  ```
- [REL_19_STABLE@16dd909023 · src/backend/access/transam/xlog.c:2909-2913](https://github.com/postgres/postgres/blob/16dd90902366c0404616dc43b170c94b064d0caf/src/backend/access/transam/xlog.c#L2909-L2913)
  Excerpt:
  ```text
  if (CommitDelay > 0 && enableFsync &&
			MinimumActiveBackends(CommitSiblings))
		{
			pgstat_report_wait_start(WAIT_EVENT_COMMIT_DELAY);
			pg_usleep(CommitDelay);
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/22d12695-d1a8-477b-82da-76606061cce3#F8

### F9 · Note ·  · Note: “…issue_xlog_fsync does nothing…”
Location: Article · exact quote · [open in article](https://www.postgresql.org/docs/18/wal-configuration.html#:~:text=issue_xlog_fsync%20does%20nothing)
Article says:
```text
…issue_xlog_fsync does nothing…
```
What is true:
PostgreSQL 19 issue_xlog_fsync returns for disabled fsync or synchronous-open methods. Its other branches perform explicit synchronization. The cited implementation confirms PostgreSQL 19 behavior, without independently verifying PostgreSQL 18.
Explanation: Not graded: no reader would act differently on it.
Review: We checked the early return and explicit synchronization branches. They support the finding only at the cited PostgreSQL 19 revision. We checked the synchronous-open condition and explicit synchronization branches. The evidence establishes PostgreSQL 19 behavior.

Sources:
- [REL_19_STABLE@16dd909023 · src/backend/access/transam/xlog.c:8934-8937](https://github.com/postgres/postgres/blob/16dd90902366c0404616dc43b170c94b064d0caf/src/backend/access/transam/xlog.c#L8934-L8937)
  Excerpt:
  ```text
  if (!enableFsync ||
		wal_sync_method == WAL_SYNC_METHOD_OPEN ||
		wal_sync_method == WAL_SYNC_METHOD_OPEN_DSYNC)
		return;
  ```
- [REL_19_STABLE@16dd909023 · src/backend/access/transam/xlog.c:8920-8991](https://github.com/postgres/postgres/blob/16dd90902366c0404616dc43b170c94b064d0caf/src/backend/access/transam/xlog.c#L8920-L8991)
  Excerpt:
  ```text
  pgstat_count_io_op_time(IOOBJECT_WAL, IOCONTEXT_NORMAL, IOOP_FSYNC,
							start, 1, 0);
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/22d12695-d1a8-477b-82da-76606061cce3#F9

### F10 · Note ·  · Note: “By default, it is set to try…”
Location: Article · exact quote · [open in article](https://www.postgresql.org/docs/18/wal-configuration.html#:~:text=By%20default%2C%20it%20is%20set%20to%20try)
Article says:
```text
By default, it is set to try…
```
What is true:
PostgreSQL 19 defaults recovery_prefetch to RECOVERY_PREFETCH_TRY. Its source gates prefetch on platform support and positive maintenance_io_concurrency. wal_decode_buffer_size limits WAL lookahead. These citations do not independently establish PostgreSQL 18 behavior.
Explanation: Not graded: no reader would act differently on it.
Review: We checked platform gating, concurrency, and decode distance separately. All cited implementation ranges belong to PostgreSQL 19. The platform gate, concurrency setting, and decoding bound match. All three code citations identify PostgreSQL 19.

Sources:
- [REL_19_STABLE@16dd909023 · src/backend/access/transam/xlogprefetcher.c:70-76](https://github.com/postgres/postgres/blob/16dd90902366c0404616dc43b170c94b064d0caf/src/backend/access/transam/xlogprefetcher.c#L70-L76)
  Excerpt:
  ```text
  /* GUCs */
int			recovery_prefetch = RECOVERY_PREFETCH_TRY;

#ifdef USE_PREFETCH
#define RecoveryPrefetchEnabled() \
		(recovery_prefetch != RECOVERY_PREFETCH_OFF && \
		 maintenance_io_concurrency > 0)
  ```
- [REL_19_STABLE@16dd909023 · src/backend/access/transam/xlogprefetcher.c:1004-1008](https://github.com/postgres/postgres/blob/16dd90902366c0404616dc43b170c94b064d0caf/src/backend/access/transam/xlogprefetcher.c#L1004-L1008)
  Excerpt:
  ```text
  if (RecoveryPrefetchEnabled())
		{
			Assert(maintenance_io_concurrency > 0);
			max_inflight = maintenance_io_concurrency;
			max_distance = max_inflight * XLOGPREFETCHER_DISTANCE_MULTIPLIER;
  ```
- [REL_19_STABLE@16dd909023 · src/backend/access/transam/xlogrecovery.c:523-526](https://github.com/postgres/postgres/blob/16dd90902366c0404616dc43b170c94b064d0caf/src/backend/access/transam/xlogrecovery.c#L523-L526)
  Excerpt:
  ```text
  * Set the WAL decode buffer size.  This limits how far ahead we can read
	 * in the WAL.
	 */
	XLogReaderSetDecodeBuffer(xlogreader, NULL, wal_decode_buffer_size);
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/22d12695-d1a8-477b-82da-76606061cce3#F10

### F11 · Note ·  · Note: “A restartpoint is triggered by schedule when a checkpoint record is reached…”
Location: Article · exact quote · [open in article](https://www.postgresql.org/docs/18/wal-configuration.html#:~:text=A%20restartpoint%20is%20triggered%20by,a%20checkpoint%20record%20is%20reached)
Article says:
```text
A restartpoint is triggered by schedule when a checkpoint record is reached…
```
What is true:
PostgreSQL 19 checkpointer.c:412 triggers timed attempts independently of checkpoint replay. CreateRestartPoint separately requires a usable checkpoint. PostgreSQL 19 wal.sgml:670 repeats the article's wording. This establishes a wording distinction at PostgreSQL 19, without independently checking PostgreSQL 18.
Explanation: Not graded: no reader would act differently on it.
Review: Reading the sentence as a successful-restartpoint restriction preserves its intent. The timer distinction comes from PostgreSQL 19 source. The successful-work reading preserves the checkpoint-record restriction. The timer distinction rests on PostgreSQL 19 code and documentation.

Sources:
- [REL_19_STABLE@16dd909023 · src/backend/access/transam/xlog.c:7794-7796](https://github.com/postgres/postgres/blob/16dd90902366c0404616dc43b170c94b064d0caf/src/backend/access/transam/xlog.c#L7794-L7796)
  Excerpt:
  ```text
  /*
	 * If the last checkpoint record we've replayed is already our last
	 * restartpoint, we can't perform a new restart point. We still update
  ```
- [REL_19_STABLE@16dd909023 · src/backend/postmaster/checkpointer.c:410-417](https://github.com/postgres/postgres/blob/16dd90902366c0404616dc43b170c94b064d0caf/src/backend/postmaster/checkpointer.c#L410-L417)
  Excerpt:
  ```text
  now = (pg_time_t) time(NULL);
		elapsed_secs = now - last_checkpoint_time;
		if (elapsed_secs >= CheckPointTimeout)
		{
			if (!do_checkpoint)
				chkpt_or_rstpt_timed = true;
			do_checkpoint = true;
			flags |= CHECKPOINT_CAUSE_TIME;
  ```
- [REL_19_STABLE@16dd909023 · doc/src/sgml/wal.sgml:670-674](https://github.com/postgres/postgres/blob/16dd90902366c0404616dc43b170c94b064d0caf/doc/src/sgml/wal.sgml#L670-L674)
  Qualification: Version note: The pinned documentation repeats the article's trigger description.
  Excerpt:
  ```text
  A restartpoint is triggered by schedule when a checkpoint record is reached
   if at least <xref linkend="guc-checkpoint-timeout"/> seconds have passed since
   the last performed restartpoint or when the previous attempt to perform
   the restartpoint has failed. In the last case, the next restartpoint
   will be scheduled in 15 seconds.
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/22d12695-d1a8-477b-82da-76606061cce3#F11

### F12 · Note ·  · Note: “If checkpoints happen closer together than checkpoint_warning seconds, a message will be…”
Location: Article · exact quote · [open in article](https://www.postgresql.org/docs/18/wal-configuration.html#:~:text=If%20checkpoints%20happen%20closer%20together,output%20to%20the%20server%20log)
Article says:
```text
If checkpoints happen closer together than checkpoint_warning seconds, a message will be output to the server log…
```
What is true:
REL_18_6 checkpointer.c:454 requires CHECKPOINT_CAUSE_XLOG before issuing checkpoint_warning. Timed or manual checkpoints alone do not satisfy that condition. PostgreSQL 18 wal.sgml:557 uses the same shortened wording. This is the documentation caveat already recorded in F2.
So what:
Use checkpoint logs and pg_stat_checkpointer to inspect checkpoint frequency. Do not use checkpoint_warning as a general short-interval detector.
Explanation: Not graded: no reader would act differently on it.
Review: The technical caveat survives. PostgreSQL 18 documentation uses identical wording, and F2 already records this caveat as a note. PostgreSQL 18 documentation repeats this wording. The surrounding max_wal_size discussion supports the charitable reading. F2 already records the qualification as a note.

Sources:
- [REL_19_STABLE@16dd909023 · src/backend/postmaster/checkpointer.c:476-478](https://github.com/postgres/postgres/blob/16dd90902366c0404616dc43b170c94b064d0caf/src/backend/postmaster/checkpointer.c#L476-L478)
  Excerpt:
  ```text
  if (!do_restartpoint &&
				(flags & CHECKPOINT_CAUSE_XLOG) &&
				elapsed_secs < CheckPointWarning)
  ```
- [REL_18_6 · doc/src/sgml/wal.sgml:557-559](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/wal.sgml#L557-L559)
  Qualification: Version note: PostgreSQL 18 documentation uses the same shortened description.
  Excerpt:
  ```text
  parameter.  If checkpoints happen closer together than
   <varname>checkpoint_warning</varname> seconds,
   a message will be output to the server log recommending increasing
  ```
- [REL_18_6 · src/backend/postmaster/checkpointer.c:454-456](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/postmaster/checkpointer.c#L454-L456)
  Qualification: Version note: The article identifies PostgreSQL 18 as its documentation version.
  Excerpt:
  ```text
  if (!do_restartpoint &&
				(flags & CHECKPOINT_CAUSE_XLOG) &&
				elapsed_secs < CheckPointWarning)
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/22d12695-d1a8-477b-82da-76606061cce3#F12

### F13 · Note ·  · Note: “…if fewer than commit_siblings other sessions are currently in active transactions…”
Location: Article · exact quote · [open in article](https://www.postgresql.org/docs/18/wal-configuration.html#:~:text=if%20fewer%20than%20commit_siblings%20other,are%20currently%20in%20active%20transactions)
Article says:
```text
…if fewer than commit_siblings other sessions are currently in active transactions…
```
What is true:
PostgreSQL 19 xlog.c:2909 requires MinimumActiveBackends(CommitSiblings) before the commit_delay sleep. The cited range confirms this prerequisite at PostgreSQL 19. It does not independently verify PostgreSQL 18.
Explanation: Not graded: no reader would act differently on it.
Review: MinimumActiveBackends supports the stated prerequisite. The citation establishes PostgreSQL 19 behavior, not the article's PostgreSQL 18 version. The active-sibling condition matches the quotation. The implementation citation identifies PostgreSQL 19.

Sources:
- [REL_19_STABLE@16dd909023 · src/backend/access/transam/xlog.c:2909-2913](https://github.com/postgres/postgres/blob/16dd90902366c0404616dc43b170c94b064d0caf/src/backend/access/transam/xlog.c#L2909-L2913)
  Excerpt:
  ```text
  if (CommitDelay > 0 && enableFsync &&
			MinimumActiveBackends(CommitSiblings))
		{
			pgstat_report_wait_start(WAIT_EVENT_COMMIT_DELAY);
			pg_usleep(CommitDelay);
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/22d12695-d1a8-477b-82da-76606061cce3#F13

### F14 · Note ·  · Note: “…old segments are kept until they are summarized…”
Location: Article · exact quote · [open in article](https://www.postgresql.org/docs/18/wal-configuration.html#:~:text=old%20segments%20are%20kept%20until%20they%20are%20summarized)
Article says:
```text
…old segments are kept until they are summarized…
```
What is true:
PostgreSQL 19 KeepLogSeg lowers the removal boundary when unsummarized WAL requires retention. xlog.c:8157 supports this mechanism at PostgreSQL 19. The citation does not independently verify PostgreSQL 18.
Explanation: Not graded: no reader would act differently on it.
Review: The enabled-summarization condition makes the article's claim appropriately conditional. The implementation citation still covers PostgreSQL 19. We checked the summarization condition and removal boundary. The cited implementation identifies PostgreSQL 19.

Sources:
- [REL_19_STABLE@16dd909023 · src/backend/access/transam/xlog.c:8157-8168](https://github.com/postgres/postgres/blob/16dd90902366c0404616dc43b170c94b064d0caf/src/backend/access/transam/xlog.c#L8157-L8168)
  Excerpt:
  ```text
  XLByteToSeg(keep, unsummarized_segno, wal_segment_size);
		if (unsummarized_segno < segno)
			segno = unsummarized_segno;
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/22d12695-d1a8-477b-82da-76606061cce3#F14

### F18 · Note ·  · Note: “…counted as writes and fsyncs in pg_stat_io for the object wal , respectively…”
Location: Article · exact quote · [open in article](https://www.postgresql.org/docs/18/wal-configuration.html#:~:text=counted%20as%20writes%20and%20fsyncs,the%20object%20wal%20%2C%20respectively)
Article says:
```text
…counted as writes and fsyncs in pg_stat_io for the object wal , respectively…
```
What is true:
PostgreSQL 19 pgstat_io.c:114 updates operation counts outside its timing branch. XLogWrite and issue_xlog_fsync call that accounting function. The cited code confirms timing-independent counts at PostgreSQL 19, without independently verifying PostgreSQL 18.
Explanation: Not graded: no reader would act differently on it.
Review: We checked whether disabling timing also suppresses counts. Counting occurs outside the timing branch, but these citations cover PostgreSQL 19. We checked whether disabling timing also disables counting. Counting occurs outside the timing branch in the cited PostgreSQL 19 implementation.

Sources:
- [REL_19_STABLE@16dd909023 · src/backend/access/transam/xlog.c:2464-2490](https://github.com/postgres/postgres/blob/16dd90902366c0404616dc43b170c94b064d0caf/src/backend/access/transam/xlog.c#L2464-L2490)
  Excerpt:
  ```text
  pgstat_count_io_op_time(IOOBJECT_WAL, IOCONTEXT_NORMAL,
										IOOP_WRITE, start, 1, written);
  ```
- [REL_19_STABLE@16dd909023 · src/backend/access/transam/xlog.c:8920-8991](https://github.com/postgres/postgres/blob/16dd90902366c0404616dc43b170c94b064d0caf/src/backend/access/transam/xlog.c#L8920-L8991)
  Excerpt:
  ```text
  pgstat_count_io_op_time(IOOBJECT_WAL, IOCONTEXT_NORMAL, IOOP_FSYNC,
							start, 1, 0);
  ```
- [REL_19_STABLE@16dd909023 · src/backend/utils/activity/pgstat_io.c:114-155](https://github.com/postgres/postgres/blob/16dd90902366c0404616dc43b170c94b064d0caf/src/backend/utils/activity/pgstat_io.c#L114-L155)
  Excerpt:
  ```text
  }

	pgstat_count_io_op(io_object, io_context, io_op, cnt, bytes);
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/22d12695-d1a8-477b-82da-76606061cce3#F18

### F20 · Note ·  · Note: “…checkpoint_completion_target could be set as high as 1.0…”
Location: excerpt · section “28.5. WAL Configuration \#” · as fetched 2026-10-19 · [open in article](https://www.postgresql.org/docs/18/wal-configuration.html#:~:text=checkpoint_completion_target%20could%20be%20set%20as%20high%20as%201.0)
Article says:
```text
…checkpoint_completion_target could be set as high as 1.0…
```
What is true:
PostgreSQL 19 guc_parameters.dat:410 accepts checkpoint_completion_target from 0.0 through 1.0 and defaults to 0.9. This supports the acceptance claim at PostgreSQL 19. The citation does not independently establish PostgreSQL 18's range.
Explanation: Not graded: no reader would act differently on it.
Review: The article distinguishes accepted values from recommendations. The range declaration supports acceptance at PostgreSQL 19 only. We distinguished an accepted value from a recommended value. The cited parameter definition establishes PostgreSQL 19 acceptance.

Sources:
- [REL_19_STABLE@16dd909023 · src/backend/utils/misc/guc_parameters.dat:410-415](https://github.com/postgres/postgres/blob/16dd90902366c0404616dc43b170c94b064d0caf/src/backend/utils/misc/guc_parameters.dat#L410-L415)
  Qualification: Version note: The article identifies PostgreSQL 18. This source range is from PostgreSQL 19.
  Excerpt:
  ```text
  { name => 'checkpoint_completion_target', type => 'real', context => 'PGC_SIGHUP', group => 'WAL_CHECKPOINTS',
  short_desc => 'Time spent flushing dirty buffers during checkpoint, as fraction of checkpoint interval.',
  variable => 'CheckPointCompletionTarget',
  boot_val => '0.9',
  min => '0.0',
  max => '1.0',
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/22d12695-d1a8-477b-82da-76606061cce3#F20

### F21 · Note ·  · Note: “…the next restartpoint will be scheduled in 15 seconds…”
Location: Article · exact quote · [open in article](https://www.postgresql.org/docs/18/wal-configuration.html#:~:text=the%20next%20restartpoint%20will%20be%20scheduled%20in%2015%20seconds)
Article says:
```text
…the next restartpoint will be scheduled in 15 seconds…
```
What is true:
PostgreSQL 19 checkpointer.c:556 resets the timer so its timeout threshold occurs 15 seconds later. That supports a retry schedule, not guaranteed completion. The cited arithmetic does not independently establish PostgreSQL 18 behavior.
Explanation: Not graded: no reader would act differently on it.
Review: The timer arithmetic gives 15 seconds and promises scheduling, not successful completion. Both implementation citations belong to PostgreSQL 19. The timer arithmetic supports a retry schedule rather than guaranteed completion. The report cites PostgreSQL 19 for PostgreSQL 18 documentation.

Sources:
- [REL_19_STABLE@16dd909023 · src/backend/postmaster/checkpointer.c:556-556](https://github.com/postgres/postgres/blob/16dd90902366c0404616dc43b170c94b064d0caf/src/backend/postmaster/checkpointer.c#L556-L556)
  Qualification: Version note: The article identifies PostgreSQL 18. This source range is from PostgreSQL 19.
  Excerpt:
  ```text
  last_checkpoint_time = now - CheckPointTimeout + 15;
  ```
- [REL_19_STABLE@16dd909023 · src/backend/postmaster/checkpointer.c:410-412](https://github.com/postgres/postgres/blob/16dd90902366c0404616dc43b170c94b064d0caf/src/backend/postmaster/checkpointer.c#L410-L412)
  Qualification: Version note: The article identifies PostgreSQL 18. This source range is from PostgreSQL 19.
  Excerpt:
  ```text
  now = (pg_time_t) time(NULL);
		elapsed_secs = now - last_checkpoint_time;
		if (elapsed_secs >= CheckPointTimeout)
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/22d12695-d1a8-477b-82da-76606061cce3#F21

### F22 · Note ·  · Note: “…wal_keep_size megabytes of WAL files plus one additional WAL file…”
Location: Article · exact quote · [open in article](https://www.postgresql.org/docs/18/wal-configuration.html#:~:text=wal_keep_size%20megabytes%20of%20WAL%20files%20plus%20one%20additional%20WAL%20file)
Article says:
```text
…wal_keep_size megabytes of WAL files plus one additional WAL file…
```
What is true:
PostgreSQL 19 rounds wal_keep_size down to whole segments before calculating its retention boundary. With 17 MiB configured and 16 MiB segments, that rule retains 2 segments totaling 32 MiB. Other requirements can retain more. The cited calculation does not independently verify PostgreSQL 18.
So what:
Use whole WAL segments when calculating the retention contributed by wal_keep_size.
Explanation: Not graded: knowing this would not change what a reader does.
Review: We checked rounding and the removal boundary. The two-segment example follows, but the calculation describes PostgreSQL 19. We checked integer division and the removal boundary. The 32 MiB example follows for ordinary segment numbers. Its citations identify PostgreSQL 19.

Sources:
- [REL_19_STABLE@16dd909023 · src/include/access/xlog_internal.h:122-127](https://github.com/postgres/postgres/blob/16dd90902366c0404616dc43b170c94b064d0caf/src/include/access/xlog_internal.h#L122-L127)
  Qualification: Version note: The article identifies PostgreSQL 18. This source range is from PostgreSQL 19.
  Excerpt:
  ```text
  /*
 * Convert values of GUCs measured in megabytes to equiv. segment count.
 * Rounds down.
 */
#define XLogMBVarToSegs(mbvar, wal_segsz_bytes) \
	((mbvar) / ((wal_segsz_bytes) / (1024 * 1024)))
  ```
- [REL_19_STABLE@16dd909023 · src/backend/access/transam/xlog.c:618-618](https://github.com/postgres/postgres/blob/16dd90902366c0404616dc43b170c94b064d0caf/src/backend/access/transam/xlog.c#L618-L618)
  Qualification: Version note: The article identifies PostgreSQL 18. This source range is from PostgreSQL 19.
  Excerpt:
  ```text
  #define ConvertToXSegs(x, segsize)	XLogMBVarToSegs((x), (segsize))
  ```
- [REL_19_STABLE@16dd909023 · src/backend/access/transam/xlog.c:8176-8184](https://github.com/postgres/postgres/blob/16dd90902366c0404616dc43b170c94b064d0caf/src/backend/access/transam/xlog.c#L8176-L8184)
  Qualification: Version note: The article identifies PostgreSQL 18. This source range is from PostgreSQL 19.
  Excerpt:
  ```text
  keep_segs = ConvertToXSegs(wal_keep_size_mb, wal_segment_size);
		if (currSegNo - segno < keep_segs)
		{
			/* avoid underflow, don't go below 1 */
			if (currSegNo <= keep_segs)
				segno = 1;
			else
				segno = currSegNo - keep_segs;
		}
  ```
- [REL_19_STABLE@16dd909023 · src/backend/access/transam/xlog.c:7500-7502](https://github.com/postgres/postgres/blob/16dd90902366c0404616dc43b170c94b064d0caf/src/backend/access/transam/xlog.c#L7500-L7502)
  Qualification: Version note: The article identifies PostgreSQL 18. This source range is from PostgreSQL 19.
  Excerpt:
  ```text
  _logSegNo--;
	RemoveOldXlogFiles(_logSegNo, RedoRecPtr, recptr,
					   checkPoint.ThisTimeLineID);
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/22d12695-d1a8-477b-82da-76606061cce3#F22

## Withdrawn findings (0)

None.

## Section checks

- Page metadata · A · 3 verified-accurate · 100% of claims (3 of 3)
- Checkpoint scheduling · A · none · 85% of claims (6 of 7)
- Checkpoint warnings · A · none · 83% of claims (5 of 6)
- Checkpoint pacing · A · none · 90% of claims (10 of 11, plus 5 that need data we do not have)
- Checkpoint flushing · A · none · 100% of claims (2 of 2, plus 3 that need data we do not have)
- WAL retention · A · none · 53% of claims (8 of 15) provisional
- Restartpoints · A · none · 88% of claims (15 of 17, plus 1 that need data we do not have)
- WAL buffers · A · none · 83% of claims (10 of 12, plus 2 that need data we do not have)
- Group commit delay · A · none · 100% of claims (9 of 9, plus 2 that need data we do not have)
- WAL I/O statistics · A · none · 87% of claims (14 of 16)
- Recovery prefetch · A · none · 80% of claims (4 of 5, plus 1 that need data we do not have)

## Claim coverage

- Page metadata: 3 of 3 Postgres claims checked; not counted: 4 not a claim
- Checkpoint basics: 9 of 12 Postgres claims checked, plus 2 that need data we do not have; not counted: 2 not a claim; not checked: 3 for other reasons
- Checkpoint scheduling: 6 of 7 Postgres claims checked; not checked: 1 for other reasons
- Checkpoint frequency costs: 4 of 6 Postgres claims checked, plus 3 that need data we do not have; not counted: 2 duplicate; not checked: 2 for other reasons
- Checkpoint warnings: 5 of 6 Postgres claims checked; not checked: 1 for other reasons
- Checkpoint pacing: 10 of 11 Postgres claims checked, plus 5 that need data we do not have; not counted: 1 duplicate; not checked: 1 for other reasons
- Checkpoint flushing: 2 of 2 Postgres claims checked, plus 3 that need data we do not have
- WAL retention: 8 of 15 Postgres claims checked; not counted: 1 duplicate; not checked: 7 for other reasons
- Restartpoints: 15 of 17 Postgres claims checked, plus 1 that need data we do not have; not checked: 2 for other reasons
- Restartpoint monitoring: 2 of 4 Postgres claims checked, plus 1 that need data we do not have; not checked: 2 for other reasons
- WAL buffers: 10 of 12 Postgres claims checked, plus 2 that need data we do not have; not checked: 2 for other reasons
- Group commit delay: 9 of 9 Postgres claims checked, plus 2 that need data we do not have
- Commit delay tuning: 7 of 7 Postgres claims checked, plus 6 that need data we do not have
- Group commit without delay: 3 of 6 Postgres claims checked, plus 3 that need data we do not have; not checked: 3 for other reasons
- WAL synchronization methods: 2 of 3 Postgres claims checked, plus 3 that need data we do not have; not checked: 1 for other reasons
- WAL debugging: 0 of 3 Postgres claims checked; not counted: 1 product or opinion; not checked: 3 for other reasons
- WAL I/O statistics: 14 of 16 Postgres claims checked; not counted: 1 duplicate; not checked: 2 for other reasons
- Recovery prefetch: 4 of 5 Postgres claims checked, plus 1 that need data we do not have; not checked: 1 for other reasons
- Page footer: no checkable claims; not counted: 4 not a claim

## What we did not check

- We did not check every low-level database modification path for the claim that all modifications call XLogInsertRecord.
- We did not verify every claim about checkpoint scheduling, WAL cleanup, restartpoint counters, or wal_debug.
- We did not benchmark the checkpoint, commit_delay, wal_buffers, or recovery_prefetch performance recommendations.
- We did not verify operating-system writeback, sleep timing, or disk-cache durability claims.
- We did not finish checking the pg_stat_io timing claims or recovery_prefetch prerequisites.
- We could not retrieve the community page, account page, or development WAL configuration page.
- We did not verify the one-checkpoint-cycle estimate for WAL growth during recovery.
- We did not verify the 10-millisecond sleep resolution on a specific operating system.
- We did not measure whether half the flush time optimizes commit_delay or whether two clients gain throughput.
- Section “WAL retention”: we checked 8 of 15 checkable claims.
- Section “Restartpoint monitoring”: we checked 2 of 5 checkable claims.
- Section “Group commit without delay”: we checked 3 of 9 checkable claims.
- Section “WAL debugging”: we checked 0 of 3 checkable claims.

## Notes

- A — the findings address the article's main subject. What we did not check is listed below. The findings directly check checkpoint scheduling, WAL retention, buffering, synchronization, and recovery_prefetch, subject to the source-version qualification.
- 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: 4 · result A
- 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_19_STABLE@16dd909023 at commit 16dd90902366c0404616dc43b170c94b064d0caf (pinned target); https://www.postgresql.org/ (fetched 2026-10-19T08:26:35.841483Z); https://www.postgresql.org/about/ (fetched 2026-10-19T08:26:37.256301Z); https://www.postgresql.org/about/donate/ (fetched 2026-10-19T08:26:46.673039Z); https://www.postgresql.org/about/news/postgresql-19-rc-1-released-3409/ (fetched 2026-10-19T08:26:49.121147Z); https://www.postgresql.org/developer/ (fetched 2026-10-19T08:26:43.736088Z); https://www.postgresql.org/docs/ (fetched 2026-10-19T08:26:39.465319Z); https://www.postgresql.org/docs/10/wal-configuration.html (fetched 2026-10-19T08:27:03.295151Z); https://www.postgresql.org/docs/11/wal-configuration.html (fetched 2026-10-19T08:27:01.813691Z); https://www.postgresql.org/docs/12/wal-configuration.html (fetched 2026-10-19T08:27:00.274270Z); https://www.postgresql.org/docs/13/wal-configuration.html (fetched 2026-10-19T08:26:58.766100Z); https://www.postgresql.org/docs/14/wal-configuration.html (fetched 2026-10-19T08:26:55.631847Z); https://www.postgresql.org/docs/15/wal-configuration.html (fetched 2026-10-19T08:26:54.496380Z); https://www.postgresql.org/docs/16/wal-configuration.html (fetched 2026-10-19T08:26:53.416604Z); https://www.postgresql.org/docs/17/wal-configuration.html (fetched 2026-10-19T08:26:52.241843Z); https://www.postgresql.org/docs/18/index.html (fetched 2026-10-19T08:26:50.324312Z); https://www.postgresql.org/docs/19/wal-configuration.html (fetched 2026-10-19T08:26:56.727045Z); https://www.postgresql.org/docs/8.4/wal-configuration.html (fetched 2026-10-19T08:27:13.804649Z); https://www.postgresql.org/docs/9.0/wal-configuration.html (fetched 2026-10-19T08:27:12.223297Z); https://www.postgresql.org/docs/9.1/wal-configuration.html (fetched 2026-10-19T08:27:11.153477Z); https://www.postgresql.org/docs/9.2/wal-configuration.html (fetched 2026-10-19T08:27:10.003997Z); https://www.postgresql.org/docs/9.3/wal-configuration.html (fetched 2026-10-19T08:27:08.890928Z); https://www.postgresql.org/docs/9.4/wal-configuration.html (fetched 2026-10-19T08:27:07.665740Z); https://www.postgresql.org/docs/9.5/wal-configuration.html (fetched 2026-10-19T08:27:06.480557Z); https://www.postgresql.org/docs/9.6/wal-configuration.html (fetched 2026-10-19T08:27:04.822931Z); https://www.postgresql.org/docs/current/wal-configuration.html (fetched 2026-10-19T08:26:51.088523Z); https://www.postgresql.org/download/ (fetched 2026-10-19T08:26:38.404421Z); https://www.postgresql.org/support/ (fetched 2026-10-19T08:26:45.173146Z).
- Article captured 2026-10-19T08:26:24.532091Z · SHA-256 7dfb4b5705a6a2277d612fc20a252ff49df022d0d221e50afec9fe6c9d98401c · Text extracted from the article's HTML.
- Policy SHA-256 7067be230777168e2771cfd69fca8ba08e4f1d49d904623e4e300dd76c058f92 · Grading rules SHA-256 6fb334e79d6b9e7ed81d3238cc10d9de602ff87ed65ff2fa781f53bac5798765.
- The page gives no publication date, so the date field is empty. The October 15, 2026 banner dates a release announcement.
- The article identifies PostgreSQL 18. Most code citations inspect PostgreSQL 19 at commit 16dd90902366c0404616dc43b170c94b064d0caf. Those checks establish behavior at that revision.
- PostgreSQL 18 documentation repeats the checkpoint pacing, warning, and writeback wording discussed here.
- We did not benchmark checkpoint, commit_delay, wal_buffers, or recovery_prefetch performance recommendations.
- We did not verify operating-system sleep resolution or disk-cache durability.
- We did not check every modification path for the claim that all modifications call XLogInsertRecord.
- We did not verify every WAL cleanup claim, restartpoint monitoring claim, or wal_debug behavior.
- We did not verify the one-checkpoint-cycle estimate for WAL growth during recovery.
- We did not finish checking every WAL timing claim.
- We could not retrieve the community page, account page, or development WAL configuration page.
- article target version: bound to the most-cited major; also named 18 (1×)
- review: the findings were written by one model and reviewed independently by a different model.
- 2026-10-27: Regraded under the current grading rules: the letter is the average of the axis letters, with every cap stated under it.
- 5 passages in this edition fell short of our own plain-English rules.
- Built from the article text captured above, one pinned source tree, and 27 fetched pages.
- 4 survived · 17 weakened · 0 withdrawn.

## Revision history

- [Revision 1](https://pgtrue.postgres.ai/shared/brief/22d12695-d1a8-477b-82da-76606061cce3?v=5) · 2026-10-13 19:37 UTC · A · audit version not recorded · regrade version not recorded
  Article as first submitted. 10 accurate · 0 wrong · 2 caveats.
  ElephantSeal: A.
  Changes: First audit. Open: F1 “Checkpoint pacing uses checkpoint_timeout, not the previous checkpoint's duration” (mostly accurate); F2 “If checkpoints happen closer together than checkpoint_warning seconds…” (mostly accurate).
- [Revision 2](https://pgtrue.postgres.ai/shared/brief/22d12695-d1a8-477b-82da-76606061cce3?v=9) · this page · 2026-10-19 08:26 UTC · A · audited with v1.0.14 (approx.) · regraded with v1.1.0 (approx.)
  Article text changed. 3 accurate · 0 wrong · 0 caveats.
  ElephantSeal: A.
  Changes: No longer reported: “Checkpoint pacing uses checkpoint_timeout, not the previous checkpoint's duration”; “If checkpoints happen closer together than checkpoint_warning seconds…”. New: none.

Updated your article? Request a correction. A new edition appears at this address.