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 BLimited coverageOpen: the production risk is not yet fixed or warned about

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/edad7c8b-c114-46fa-9239-a236f691c491.svg?v=13&theme=light)](https://pgtrue.postgres.ai/shared/brief/edad7c8b-c114-46fa-9239-a236f691c491)
<a href="https://pgtrue.postgres.ai/shared/brief/edad7c8b-c114-46fa-9239-a236f691c491"><img src="https://pgtrue.postgres.ai/badge/edad7c8b-c114-46fa-9239-a236f691c491.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/edad7c8b-c114-46fa-9239-a236f691c491.svg?v=13&theme=light
.. image:: https://pgtrue.postgres.ai/badge/edad7c8b-c114-46fa-9239-a236f691c491.svg?v=13&theme=light
   :target: https://pgtrue.postgres.ai/shared/brief/edad7c8b-c114-46fa-9239-a236f691c491
   :alt: pgTrue fact-check
   :width: 90
   :height: 20
[![pgTrue fact-check](https://pgtrue.postgres.ai/badge/edad7c8b-c114-46fa-9239-a236f691c491.svg?v=13&theme=dark)](https://pgtrue.postgres.ai/shared/brief/edad7c8b-c114-46fa-9239-a236f691c491)
<a href="https://pgtrue.postgres.ai/shared/brief/edad7c8b-c114-46fa-9239-a236f691c491"><img src="https://pgtrue.postgres.ai/badge/edad7c8b-c114-46fa-9239-a236f691c491.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/edad7c8b-c114-46fa-9239-a236f691c491.svg?v=13&theme=dark
.. image:: https://pgtrue.postgres.ai/badge/edad7c8b-c114-46fa-9239-a236f691c491.svg?v=13&theme=dark
   :target: https://pgtrue.postgres.ai/shared/brief/edad7c8b-c114-46fa-9239-a236f691c491
   :alt: pgTrue fact-check
   :width: 90
   :height: 20
[![pgTrue fact-check](https://pgtrue.postgres.ai/badge/edad7c8b-c114-46fa-9239-a236f691c491.svg?v=13)](https://pgtrue.postgres.ai/shared/brief/edad7c8b-c114-46fa-9239-a236f691c491)
<a href="https://pgtrue.postgres.ai/shared/brief/edad7c8b-c114-46fa-9239-a236f691c491"><img src="https://pgtrue.postgres.ai/badge/edad7c8b-c114-46fa-9239-a236f691c491.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/edad7c8b-c114-46fa-9239-a236f691c491.svg?v=13
.. image:: https://pgtrue.postgres.ai/badge/edad7c8b-c114-46fa-9239-a236f691c491.svg?v=13
   :target: https://pgtrue.postgres.ai/shared/brief/edad7c8b-c114-46fa-9239-a236f691c491
   :alt: pgTrue fact-check
   :width: 90
   :height: 20
[![pgTrue fact-check](https://pgtrue.postgres.ai/badge/edad7c8b-c114-46fa-9239-a236f691c491/radar.svg?v=13&theme=light)](https://pgtrue.postgres.ai/shared/brief/edad7c8b-c114-46fa-9239-a236f691c491)
<a href="https://pgtrue.postgres.ai/shared/brief/edad7c8b-c114-46fa-9239-a236f691c491"><img src="https://pgtrue.postgres.ai/badge/edad7c8b-c114-46fa-9239-a236f691c491/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/edad7c8b-c114-46fa-9239-a236f691c491/radar.svg?v=13&theme=light
.. image:: https://pgtrue.postgres.ai/badge/edad7c8b-c114-46fa-9239-a236f691c491/radar.svg?v=13&theme=light
   :target: https://pgtrue.postgres.ai/shared/brief/edad7c8b-c114-46fa-9239-a236f691c491
   :alt: pgTrue fact-check
   :width: 240
   :height: 240
[![pgTrue fact-check](https://pgtrue.postgres.ai/badge/edad7c8b-c114-46fa-9239-a236f691c491/radar.svg?v=13&theme=dark)](https://pgtrue.postgres.ai/shared/brief/edad7c8b-c114-46fa-9239-a236f691c491)
<a href="https://pgtrue.postgres.ai/shared/brief/edad7c8b-c114-46fa-9239-a236f691c491"><img src="https://pgtrue.postgres.ai/badge/edad7c8b-c114-46fa-9239-a236f691c491/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/edad7c8b-c114-46fa-9239-a236f691c491/radar.svg?v=13&theme=dark
.. image:: https://pgtrue.postgres.ai/badge/edad7c8b-c114-46fa-9239-a236f691c491/radar.svg?v=13&theme=dark
   :target: https://pgtrue.postgres.ai/shared/brief/edad7c8b-c114-46fa-9239-a236f691c491
   :alt: pgTrue fact-check
   :width: 240
   :height: 240
[![pgTrue fact-check](https://pgtrue.postgres.ai/badge/edad7c8b-c114-46fa-9239-a236f691c491/radar.svg?v=13)](https://pgtrue.postgres.ai/shared/brief/edad7c8b-c114-46fa-9239-a236f691c491)
<a href="https://pgtrue.postgres.ai/shared/brief/edad7c8b-c114-46fa-9239-a236f691c491"><img src="https://pgtrue.postgres.ai/badge/edad7c8b-c114-46fa-9239-a236f691c491/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/edad7c8b-c114-46fa-9239-a236f691c491/radar.svg?v=13
.. image:: https://pgtrue.postgres.ai/badge/edad7c8b-c114-46fa-9239-a236f691c491/radar.svg?v=13
   :target: https://pgtrue.postgres.ai/shared/brief/edad7c8b-c114-46fa-9239-a236f691c491
   :alt: pgTrue fact-check
   :width: 240
   :height: 240
[![pgTrue fact-check](https://pgtrue.postgres.ai/badge/edad7c8b-c114-46fa-9239-a236f691c491/wide.svg?v=13&theme=light)](https://pgtrue.postgres.ai/shared/brief/edad7c8b-c114-46fa-9239-a236f691c491)
<a href="https://pgtrue.postgres.ai/shared/brief/edad7c8b-c114-46fa-9239-a236f691c491"><img src="https://pgtrue.postgres.ai/badge/edad7c8b-c114-46fa-9239-a236f691c491/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/edad7c8b-c114-46fa-9239-a236f691c491/wide.svg?v=13&theme=light
.. image:: https://pgtrue.postgres.ai/badge/edad7c8b-c114-46fa-9239-a236f691c491/wide.svg?v=13&theme=light
   :target: https://pgtrue.postgres.ai/shared/brief/edad7c8b-c114-46fa-9239-a236f691c491
   :alt: pgTrue fact-check
   :width: 480
   :height: 240
[![pgTrue fact-check](https://pgtrue.postgres.ai/badge/edad7c8b-c114-46fa-9239-a236f691c491/wide.svg?v=13&theme=dark)](https://pgtrue.postgres.ai/shared/brief/edad7c8b-c114-46fa-9239-a236f691c491)
<a href="https://pgtrue.postgres.ai/shared/brief/edad7c8b-c114-46fa-9239-a236f691c491"><img src="https://pgtrue.postgres.ai/badge/edad7c8b-c114-46fa-9239-a236f691c491/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/edad7c8b-c114-46fa-9239-a236f691c491/wide.svg?v=13&theme=dark
.. image:: https://pgtrue.postgres.ai/badge/edad7c8b-c114-46fa-9239-a236f691c491/wide.svg?v=13&theme=dark
   :target: https://pgtrue.postgres.ai/shared/brief/edad7c8b-c114-46fa-9239-a236f691c491
   :alt: pgTrue fact-check
   :width: 480
   :height: 240
[![pgTrue fact-check](https://pgtrue.postgres.ai/badge/edad7c8b-c114-46fa-9239-a236f691c491/wide.svg?v=13)](https://pgtrue.postgres.ai/shared/brief/edad7c8b-c114-46fa-9239-a236f691c491)
<a href="https://pgtrue.postgres.ai/shared/brief/edad7c8b-c114-46fa-9239-a236f691c491"><img src="https://pgtrue.postgres.ai/badge/edad7c8b-c114-46fa-9239-a236f691c491/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/edad7c8b-c114-46fa-9239-a236f691c491/wide.svg?v=13
.. image:: https://pgtrue.postgres.ai/badge/edad7c8b-c114-46fa-9239-a236f691c491/wide.svg?v=13
   :target: https://pgtrue.postgres.ai/shared/brief/edad7c8b-c114-46fa-9239-a236f691c491
   :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

What Are “Dirty Pages” in PostgreSQL? (opens in new tab)

stormatics.tech
Check before you follow it: 4 claims are wrong.
1
inaccuracy
0
dangerous-recipe
3
misleading
0
imprecise
0
transcription
0
aged
0
withdrawn
9
verified-accurate

Factual B− · Applicable B+ · Consistent A · Transparent — · Safe B+

ReportTechnical fact-check, edition 3 pgTrue versionaudited with v1.0.14 (approx.) · regraded with v1.1.3 Issued EditionUpdated after review. Corrections are listed below. SubmittedSubmitted by the PostgresAI team. Author responseNo written reply from the author. We re-audited this article 1 time; see Revisions below. Policy: right-of-reply and corrections policy.

Inaccuracies

F1

pg_stat_bgwriter lacks buffers_checkpoint and buffers_backend in PostgreSQL 18

INACCURATEFactual · holds up after review

Claim ledger

Article says
…Use pg_stat_bgwriter to monitor: buffers_checkpoint (dirty pages written during checkpoints). buffers_clean (BGWriter writes). buffers_backend (back‐end writes).
What is true
PostgreSQL 18 exposes neither recommended counter in pg_stat_bgwriter. src/backend/catalog/system_views.sql:1150-1155 defines four columns, including buffers_clean. Queries selecting buffers_checkpoint or buffers_backend from this view fail.
So what
On PostgreSQL 18, inspect pg_stat_bgwriter's columns before building monitoring queries. Use pg_stat_io for backend-write monitoring.
Charitable reading
The recipe matches older monitoring layouts. The article gives no older-version restriction and mentions PostgreSQL 17+.

Source

Source · REL_18_0 · src/backend/catalog/system_views.sql:1150-1155CREATE VIEW pg_stat_bgwriter AS SELECT pg_stat_get_bgwriter_buf_written_clean() AS buffers_clean, pg_stat_get_bgwriter_maxwritten_clean() AS maxwritten_clean, pg_stat_get_buf_alloc() AS buffers_alloc, pg_stat_get_bgwriter_stat_reset_time() AS stats_reset;
In the article · section “How to Tune for Maximum Performance”

In the article

excerpt · section “How to Tune for Maximum Performance” · as fetched 2026-10-19 · open in article ↗ (opens in new tab)

How to Tune for Maximum Performance

1. Measure first: Use pg_stat_bgwriter to monitor:

buffers_checkpoint (dirty pages written during checkpoints).

buffers_clean (BGWriter writes).

buffers_backend (back‐end writes).

All sources and excerpts · 2
EvidenceCREATE VIEW pg_stat_bgwriter AS SELECT pg_stat_get_bgwriter_buf_written_clean() AS buffers_clean, pg_stat_get_bgwriter_maxwritten_clean() AS maxwritten_clean, pg_stat_get_buf_alloc() AS buffers_alloc, pg_stat_get_bgwriter_stat_reset_time() AS stats_reset;

Version note: PostgreSQL 18.0.

Evidence <structfield>buffers_clean</structfield> <type>bigint</type> </para> <para> Number of buffers written by the background writer </para></entry>

Version note: PostgreSQL 18.0 documentation.

How the review tested this

Review: We tested the older-release interpretation against the article's unrestricted advice. PostgreSQL 18's complete view definition excludes both named counters. Selecting either column fails; wasted work is justified. We tested the older-release reading. The article gives no release restriction. The recorded PostgreSQL 18 view definition excludes both columns.

Dangerous or recipe bugsNone in this edition.

Misleading / imprecise

F2

Setting checkpoint_completion_target to 0.7 lowers the default and concentrates writes

MISLEADINGFactual · holds up after review

Claim ledger

Article says
Raise checkpoint_completion_target to 0.7–0.9 so checkpoints spread writes evenly.
What is true
PostgreSQL 18 defaults checkpoint_completion_target to 0.9. src/backend/utils/misc/guc_tables.c:4114-4121 defines that default. doc/src/sgml/config.sgml:3655-3662 warns that reducing it increases checkpoint I/O intensity. Following the suggested 0.7 endpoint can reverse the intended pacing change.
So what
Run SHOW checkpoint_completion_target. Keep the default 0.9 instead of lowering it to 0.7 to spread checkpoint writes.
Charitable reading
Raising a previously lowered setting toward 0.9 can help. The article does not state that prerequisite.

Source

Source · REL_18_0 · doc/src/sgml/config.sgml:3655-3660Specifies the target of checkpoint completion, as a fraction of total time between checkpoints. The default is 0.9, which spreads the checkpoint across almost all of the available interval, providing fairly consistent I/O load while also leaving some time for checkpoint completion overhead. Reducing this parameter is not recommended because it causes the checkpoint to complete faster. This results in a higher
In the article · section “How to Tune for Maximum Performance”

In the article

excerpt · section “How to Tune for Maximum Performance” · as fetched 2026-10-19 · open in article ↗ (opens in new tab)

How to Tune for Maximum Performance

Raise checkpoint_completion_target to 0.7–0.9 so checkpoints spread writes evenly.

All sources and excerpts · 2
Evidence Specifies the target of checkpoint completion, as a fraction of total time between checkpoints. The default is 0.9, which spreads the checkpoint across almost all of the available interval, providing fairly consistent I/O load while also leaving some time for checkpoint completion overhead. Reducing this parameter is not recommended because it causes the checkpoint to complete faster. This results in a higher

Version note: PostgreSQL 18.0 documentation.

Evidence {"checkpoint_completion_target", PGC_SIGHUP, WAL_CHECKPOINTS, gettext_noop("Time spent flushing dirty buffers during checkpoint, as fraction of checkpoint interval."), NULL }, &CheckPointCompletionTarget, 0.9, 0.0, 1.0, NULL, assign_checkpoint_completion_target, NULL },

Version note: PostgreSQL 18.0.

How the review tested this

Review: We considered an existing setting below 0.7. Raising that value remains valid, as the finding acknowledges. The default is 0.9, and choosing 0.7 reduces the available checkpoint interval. We tested raising an existing value below 0.7. The finding preserves that exception and limits its charge to lowering the default.

F10

PostgreSQL 18 pg_stat_bgwriter lacks the requested backend-write counters

MISLEADINGFactual · holds up after review

Claim ledger

Article says
…back‐end processes are writing pages (visible in pg_stat_bgwriter )…
What is true
PostgreSQL 18 pg_stat_bgwriter has four columns and no buffers_backend or buffers_checkpoint. src/backend/catalog/system_views.sql:1150 defines the complete view. Queries using those names fail. pg_stat_io exposes writes and backend_type.
So what
Use pg_stat_io.writes grouped by backend_type to monitor backend writes on PostgreSQL 18.
Charitable reading
Older PostgreSQL releases exposed backend-write counters in this view. The article gives no older-release restriction.

Source

Source · REL_18_0 · src/backend/catalog/system_views.sql:1150-1155CREATE VIEW pg_stat_bgwriter AS SELECT pg_stat_get_bgwriter_buf_written_clean() AS buffers_clean, pg_stat_get_bgwriter_maxwritten_clean() AS maxwritten_clean, pg_stat_get_buf_alloc() AS buffers_alloc, pg_stat_get_bgwriter_stat_reset_time() AS stats_reset;
In the article · section “Background Writer (BGWriter)”

In the article

excerpt · section “Background Writer (BGWriter)” · as fetched 2026-10-19 · open in article ↗ (opens in new tab)

Background Writer (BGWriter)

Tuning strategy: Increase bgwriter_lru_maxpages and bgwriter_lru_multiplier if you notice back‐end processes are writing pages (visible in pg_stat_bgwriter ). Decrease them if BGWriter causes too much I/O. Adjust bgwriter_delay to balance write frequency and CPU usage.

All sources and excerpts · 2
EvidenceCREATE VIEW pg_stat_bgwriter AS SELECT pg_stat_get_bgwriter_buf_written_clean() AS buffers_clean, pg_stat_get_bgwriter_maxwritten_clean() AS maxwritten_clean, pg_stat_get_buf_alloc() AS buffers_alloc, pg_stat_get_bgwriter_stat_reset_time() AS stats_reset;
EvidenceCREATE VIEW pg_stat_io AS SELECT b.backend_type, b.object, b.context, b.reads, b.read_bytes, b.read_time, b.writes,
How the review tested this

Review: We checked both view definitions. pg_stat_bgwriter lacks backend-write counters, while pg_stat_io exposes writes and backend_type. The correction stands but overlaps F1. We checked the suggested replacement view. E-39 exposes writes and backend_type. E-29 excludes the obsolete counters.

F11

The proposed checkpoint range can lower the PostgreSQL 18 default

MISLEADINGApplicable · holds up after review

Claim ledger

Article says
Raise checkpoint_completion_target to 0.7–0.9…
What is true
PostgreSQL 18 defaults checkpoint_completion_target to 0.9. doc/src/sgml/config.sgml:3647 warns against reducing it because checkpoints finish faster. Choosing 0.7 from the proposed range concentrates checkpoint writes instead of spreading them further.
So what
Keep checkpoint_completion_target at 0.9 unless measurements justify changing it. Check its current value before applying the range.
Charitable reading
Raising an existing value below 0.7 can spread writes. The instruction does not specify that starting condition.

Source

Source · REL_18_0 · doc/src/sgml/config.sgml:3647-3667total time between checkpoints. The default is 0.9, which spreads the checkpoint across almost all of the available interval, providing fairly consistent I/O load while also leaving some time for checkpoint completion overhead. Reducing this parameter is not recommended because
In the article · section “How to Tune for Maximum Performance”

In the article

excerpt · section “How to Tune for Maximum Performance” · as fetched 2026-10-19 · open in article ↗ (opens in new tab)

How to Tune for Maximum Performance

Raise checkpoint_completion_target to 0.7–0.9 so checkpoints spread writes evenly.

All sources and excerpts · 2
Evidence total time between checkpoints. The default is 0.9, which spreads the checkpoint across almost all of the available interval, providing fairly consistent I/O load while also leaving some time for checkpoint completion overhead. Reducing this parameter is not recommended because
Evidence total time between checkpoints. The default is 0.9, which spreads the checkpoint across almost all of the available interval, providing fairly consistent I/O load while also leaving some time for checkpoint completion overhead. Reducing this parameter is not recommended because it causes the checkpoint to complete faster.
How the review tested this

Review: We considered raising a previously lowered value. F11 acknowledges that valid case. The documentation supports its warning about reducing the default from 0.9 to 0.7. This overlaps F2. We tested a previously lowered setting. The finding acknowledges that raising it remains valid. Its default-value caveat matches E-40.

Verified accurate

F4

A 25% shared_buffers starting point matches PostgreSQL documentation

ACCURATEFactual · holds up after review

Claim ledger

Article says
…Start with 25 % of RAM…
What is true
doc/src/sgml/config.sgml:1731-1733 recommends 25% of RAM initially on dedicated servers with at least 1GB. src/backend/utils/misc/guc_tables.c:2369-2377 defines shared_buffers as the shared buffer count. The article's starting-point recommendation agrees.
Charitable reading
The surrounding section addresses dedicated database servers and calls for workload adjustments.

Source

Source · REL_18_0 · doc/src/sgml/config.sgml:1731-1733If you have a dedicated database server with 1GB or more of RAM, a reasonable starting value for <varname>shared_buffers</varname> is 25% of the memory in your system. There are some workloads where even
In the article · section “How to Tune for Maximum Performance”

In the article

excerpt · section “How to Tune for Maximum Performance” · as fetched 2026-10-19 · open in article ↗ (opens in new tab)

How to Tune for Maximum Performance

2. Size shared buffers appropriately: Start with 25 % of RAM; adjust based on workload. Use bigger shared buffers if your working set is mostly read‐heavy; reduce if write workloads cause huge checkpoint spikes.

All sources and excerpts · 3
Evidence If you have a dedicated database server with 1GB or more of RAM, a reasonable starting value for <varname>shared_buffers</varname> is 25% of the memory in your system. There are some workloads where even

Version note: PostgreSQL 18.0 documentation.

Evidence {"shared_buffers", PGC_POSTMASTER, RESOURCES_MEM, gettext_noop("Sets the number of shared memory buffers used by the server."), NULL, GUC_UNIT_BLOCKS }, &NBuffers, 16384, 16, INT_MAX / 2, NULL, NULL, NULL },

Version note: PostgreSQL 18.0.

Evidence If you have a dedicated database server with 1GB or more of RAM, a reasonable starting value for <varname>shared_buffers</varname> is 25% of the memory in your system.
How the review tested this

Review: We checked the dedicated-server and 1GB qualifications. F4 preserves both and treats 25% as a starting point, not a measured optimum. We checked the dedicated-server qualification. The finding includes the documentation's 1 GB minimum and treats 25% as a starting value.

F5

100ms shortens the background writer's active-cycle sleep

ACCURATEFactual · holds up after review · also flagged 1 more time

Claim ledger

Article says
…Lower bgwriter_delay (e.g., 100 ms) to wake BGWriter more often.
What is true
bgwriter_delay defaults to 200ms in src/backend/utils/misc/guc_tables.c:3208-3216. Setting 100ms shortens the configured sleep between active rounds. doc/src/sgml/config.sgml:2485-2489 describes this cycle. The setting does not guarantee a particular number of writes.
Charitable reading
The recommendation concerns active background writing. Idle hibernation can extend sleep beyond bgwriter_delay.

Source

Source · REL_18_0 · src/backend/utils/misc/guc_tables.c:3208-3216 {"bgwriter_delay", PGC_SIGHUP, RESOURCES_BGWRITER, gettext_noop("Background writer sleep time between rounds."), NULL, GUC_UNIT_MS }, &BgWriterDelay, 200, 10, 10000, NULL, NULL, NULL },
In the article · section “How to Tune for Maximum Performance”

In the article

excerpt · section “How to Tune for Maximum Performance” · as fetched 2026-10-19 · open in article ↗ (opens in new tab)

How to Tune for Maximum Performance

Lower bgwriter_delay (e.g., 100 ms) to wake BGWriter more often.

All sources and excerpts · 2
Evidence {"bgwriter_delay", PGC_SIGHUP, RESOURCES_BGWRITER, gettext_noop("Background writer sleep time between rounds."), NULL, GUC_UNIT_MS }, &BgWriterDelay, 200, 10, 10000, NULL, NULL, NULL },

Version note: PostgreSQL 18.0.

Evidence Specifies the delay between activity rounds for the background writer. In each round the writer issues writes for some number of dirty buffers (controllable by the following parameters). It then sleeps for the length of <varname>bgwriter_delay</varname>, and repeats.

Version note: PostgreSQL 18.0 documentation.

How the review tested this

Review: We checked whether F5 promises a fixed wake frequency or performance gain. It only establishes that 100ms shortens the configured active-cycle sleep from 200ms. We tested whether the finding promises wake frequency or performance. It limits its conclusion to configured sleep between active rounds.

F6

The two LRU controls can increase background cleaning

ACCURATEFactual · holds up after review

Claim ledger

Article says
Increase bgwriter_lru_maxpages (e.g., 200–1000) and bgwriter_lru_multiplier (e.g., 3–4)…
What is true
bgwriter_lru_maxpages limits buffer writes per round. doc/src/sgml/config.sgml:2513-2517 sets its default at 100 buffers. src/backend/storage/buffer/bufmgr.c:3754-3833 multiplies estimated allocation demand by bgwriter_lru_multiplier. Increasing these settings permits more cleaning without guaranteeing additional writes.
Charitable reading
The article recommends greater cleaning capacity under high write load. It does not promise every cycle reaches the ceiling.

Source

Source · REL_18_0 · doc/src/sgml/config.sgml:2513-2517In each round, no more than this many buffers will be written by the background writer. Setting this to zero disables background writing. (Note that checkpoints, which are managed by a separate, dedicated auxiliary process, are unaffected.) The default value is 100 buffers.
In the article · section “How to Tune for Maximum Performance”

In the article

excerpt · section “How to Tune for Maximum Performance” · as fetched 2026-10-19 · open in article ↗ (opens in new tab)

How to Tune for Maximum Performance

Increase bgwriter_lru_maxpages (e.g., 200–1000) and bgwriter_lru_multiplier (e.g., 3–4) to handle more dirty pages per cycle if you have a high write workload.

All sources and excerpts · 2
Evidence In each round, no more than this many buffers will be written by the background writer. Setting this to zero disables background writing. (Note that checkpoints, which are managed by a separate, dedicated auxiliary process, are unaffected.) The default value is 100 buffers.

Version note: PostgreSQL 18.0 documentation.

Evidence upcoming_alloc_est = (int) (smoothed_alloc * bgwriter_lru_multiplier);

Version note: PostgreSQL 18.0.

How the review tested this

Review: We tested the distinction between permitted cleaning and actual writes. F6 preserves that distinction. The source confirms the per-round ceiling and allocation-demand multiplier. We tested whether higher limits guarantee additional writes. The finding states capacity and estimated demand, with no guaranteed increase.

F8

Increasing max_wal_size increases the WAL checkpoint distance

ACCURATEFactual · holds up after review

Claim ledger

Article says
Increase max_wal_size so checkpoints aren’t triggered too often.
What is true
src/backend/access/transam/xlog.c:2167-2198 calculates checkpoint distance from max_wal_size and checkpoint_completion_target. Raising max_wal_size increases that distance with other settings unchanged. src/backend/utils/misc/guc_tables.c:2961-2970 identifies its checkpoint-trigger role.
Charitable reading
The recommendation targets excessive WAL-triggered checkpoints. It does not eliminate time-triggered checkpoints.

Source

Source · REL_18_0 · src/backend/utils/misc/guc_tables.c:2961-2970gettext_noop("Sets the WAL size that triggers a checkpoint."),
In the article · section “How to Tune for Maximum Performance”

In the article

excerpt · section “How to Tune for Maximum Performance” · as fetched 2026-10-19 · open in article ↗ (opens in new tab)

How to Tune for Maximum Performance

Increase max_wal_size so checkpoints aren’t triggered too often.

All sources and excerpts · 2
Evidence gettext_noop("Sets the WAL size that triggers a checkpoint."),

Version note: PostgreSQL 18.0.

Evidence target = (double) ConvertToXSegs(max_wal_size_mb, wal_segment_size) / (1.0 + CheckPointCompletionTarget);

Version note: PostgreSQL 18.0.

How the review tested this

Review: We checked whether F8 confuses WAL-triggered and timed checkpoints. Its claim concerns the calculated WAL distance with other settings unchanged. The formula supports that tuning direction. We checked whether the conclusion incorrectly includes time-triggered checkpoints. It addresses WAL checkpoint distance with other settings unchanged.

F9

Autovacuum cost and scale settings control different tuning dimensions

ACCURATEFactual · holds up after review

Claim ledger

Article says
Adjust autovacuum_vacuum_cost_limit and autovacuum_vacuum_scale_factor based on workload.
What is true
autovacuum_vacuum_scale_factor contributes to vacuum eligibility in doc/src/sgml/config.sgml:9010-9013. autovacuum_vacuum_cost_limit controls vacuum's cost allowance. src/backend/postmaster/autovacuum.c:1714-1758 distributes that allowance among participating workers. The workload-based adjustment advice agrees with these roles.
Charitable reading
The article recommends workload-based adjustments without claiming both parameters control the same mechanism.

Source

Source · REL_18_0 · doc/src/sgml/config.sgml:9010-9013Specifies a fraction of the table size to add to <varname>autovacuum_vacuum_threshold</varname> when deciding whether to trigger a <command>VACUUM</command>. The default is <literal>0.2</literal> (20% of table size).
In the article · section “Autovacuum and Vacuum Freeze”

In the article

excerpt · section “Autovacuum and Vacuum Freeze” · as fetched 2026-10-19 · open in article ↗ (opens in new tab)

Autovacuum and Vacuum Freeze

Autovacuum can generate dirty pages when it updates visibility information or freezes tuples. Ensure that autovacuum runs frequently enough to prevent table bloat but not too aggressively to avoid unnecessary writes. Adjust autovacuum_vacuum_cost_limit and autovacuum_vacuum_scale_factor based on workload. On SSDs, more aggressive autovacuum can be beneficial.

All sources and excerpts · 2
Evidence Specifies a fraction of the table size to add to <varname>autovacuum_vacuum_threshold</varname> when deciding whether to trigger a <command>VACUUM</command>. The default is <literal>0.2</literal> (20% of table size).

Version note: PostgreSQL 18.0 documentation.

Evidence vacuum_cost_limit = Max(vacuum_cost_limit / nworkers_for_balance, 1);

Version note: PostgreSQL 18.0.

How the review tested this

Review: We checked worker balancing and table-specific overrides. F9 correctly limits balancing to participating workers and distinguishes vacuum eligibility from the cost allowance. We tested whether the finding conflates eligibility with vacuum cost. It distinguishes both roles and claims no measured tuning benefit.

F13

checkpoint_timeout can trigger a checkpoint

ACCURATEFactual · holds up after review

Claim ledger

Article says
…checkpoint_timeout interval…
What is true
The checkpointer compares elapsed_secs with CheckPointTimeout. src/backend/postmaster/checkpointer.c:350 sets do_checkpoint and CHECKPOINT_CAUSE_TIME when the interval expires.
Charitable reading
The article describes a checkpoint trigger, rather than promising table writes at every timeout.

Source

Source · REL_18_0 · src/backend/postmaster/checkpointer.c:350-429if (elapsed_secs >= CheckPointTimeout) { if (!do_checkpoint) chkpt_or_rstpt_timed = true; do_checkpoint = true; flags |= CHECKPOINT_CAUSE_TIME; }
In the article

In the article

Article · exact quote · open in article ↗ (opens in new tab)…checkpoint_timeout interval…
All sources and excerpts · 1
Evidence if (elapsed_secs >= CheckPointTimeout) { if (!do_checkpoint) chkpt_or_rstpt_timed = true; do_checkpoint = true; flags |= CHECKPOINT_CAUSE_TIME; }
How the review tested this

Review: We checked whether F13 guarantees dirty-page writes at every timeout. It only describes the elapsed-time trigger. The code sets do_checkpoint and CHECKPOINT_CAUSE_TIME. We checked whether the finding promises writes at every timeout. It claims only that elapsed time can trigger a checkpoint.

F14

Higher background-writer limits permit more cleaning per round

ACCURATEFactual · holds up after review

Claim ledger

Article says
…to handle more dirty pages per cycle if you have a high write workload…
What is true
bgwriter_lru_multiplier scales estimated allocation demand. bgwriter_lru_maxpages caps successful writes per round. src/backend/storage/buffer/bufmgr.c:3777 implements both controls. Increasing them can permit more dirty-buffer writes when sufficient demand exists.
Charitable reading
The settings permit more cleaning when demand and dirty reusable buffers justify it. They do not guarantee more writes.

Source

Source · REL_18_0 · src/backend/storage/buffer/bufmgr.c:3754-3833upcoming_alloc_est = (int) (smoothed_alloc * bgwriter_lru_multiplier);
In the article · section “How to Tune for Maximum Performance”

In the article

excerpt · section “How to Tune for Maximum Performance” · as fetched 2026-10-19 · open in article ↗ (opens in new tab)

How to Tune for Maximum Performance

Increase bgwriter_lru_maxpages (e.g., 200–1000) and bgwriter_lru_multiplier (e.g., 3–4) to handle more dirty pages per cycle if you have a high write workload.

All sources and excerpts · 2
Evidence upcoming_alloc_est = (int) (smoothed_alloc * bgwriter_lru_multiplier);
Evidence if (sync_state & BUF_WRITTEN) { reusable_buffers++; if (++num_written >= bgwriter_lru_maxpages)
How the review tested this

Review: We inspected the allocation estimate and successful-write counter. Both support increased permitted cleaning, without guaranteeing additional writes. F14 preserves this qualification and overlaps F6. We tested demand-independent interpretation. The finding conditions additional writes on demand and distinguishes the multiplier from the write cap.

F16

200–1000 buffers increases the default per-round limit

ACCURATEFactual · holds up after review

Claim ledger

Article says
Increase bgwriter_lru_maxpages (e.g., 200–1000)…
What is true
REL_18_0 src/backend/utils/misc/guc_tables.c:3219–3226 defaults bgwriter_lru_maxpages to 100 buffers per round. The article’s 200–1000 range raises that limit.
Charitable reading
The 200–1000 range increases the permitted writes per round. It does not promise that every round writes that many.

Source

Source · REL_18_0 · src/backend/utils/misc/guc_tables.c:3219-3226&bgwriter_lru_maxpages, 100, 0, INT_MAX / 2, /* Same upper limit as shared_buffers */
In the article · section “How to Tune for Maximum Performance”

In the article

excerpt · section “How to Tune for Maximum Performance” · as fetched 2026-10-19 · open in article ↗ (opens in new tab)

How to Tune for Maximum Performance

Increase bgwriter_lru_maxpages (e.g., 200–1000) and bgwriter_lru_multiplier (e.g., 3–4) to handle more dirty pages per cycle if you have a high write workload.

All sources and excerpts · 1
Evidence &bgwriter_lru_maxpages, 100, 0, INT_MAX / 2, /* Same upper limit as shared_buffers */
How the review tested this

Review: We checked whether the numeric comparison implies guaranteed writes. F16 only compares limits. The suggested 200–1000 buffers exceed the default 100 buffers per round. We checked the range against the default. Both 200 buffers and 1,000 buffers exceed the recorded 100-buffer limit.

F17

A multiplier of 3–4 exceeds the default of 2

ACCURATEFactual · holds up after review

Claim ledger

Article says
…bgwriter_lru_multiplier (e.g., 3–4)…
What is true
REL_18_0 src/backend/utils/misc/guc_tables.c:4041–4048 defaults bgwriter_lru_multiplier to 2.0. Both suggested values increase that multiplier.
Charitable reading
The multiplier changes the estimated clean-buffer requirement. It does not multiply every write count directly.

Source

Source · REL_18_0 · src/backend/utils/misc/guc_tables.c:4041-4048&bgwriter_lru_multiplier, 2.0, 0.0, 10.0,
In the article · section “How to Tune for Maximum Performance”

In the article

excerpt · section “How to Tune for Maximum Performance” · as fetched 2026-10-19 · open in article ↗ (opens in new tab)

How to Tune for Maximum Performance

Increase bgwriter_lru_maxpages (e.g., 200–1000) and bgwriter_lru_multiplier (e.g., 3–4) to handle more dirty pages per cycle if you have a high write workload.

All sources and excerpts · 1
Evidence &bgwriter_lru_multiplier, 2.0, 0.0, 10.0,
How the review tested this

Review: We checked the default and accepted range. Values 3 and 4 exceed the default 2.0 and remain within 0–10. F17 makes no throughput claim. We checked the arithmetic and supported range. Multipliers 3 and 4 exceed default 2 and remain within 0–10.

Notes

2 not graded: findings no reader would act on differently
F3

Note: “Set bgwriter_flush_after to a value that matches your storage system’s optimal write size.”

NOTEpartly holds after review

Claim ledger

Article says
Set bgwriter_flush_after to a value that matches your storage system’s optimal write size.
What is true
bgwriter_flush_after controls accumulated background-writer output before an OS writeback request. doc/src/sgml/config.sgml:2560–2563 describes that threshold. It does not set individual write size. These sources do not establish whether matching the threshold to storage write size helps or harms performance.
So what
Choose bgwriter_flush_after by measuring writeback behavior and transaction latency. Do not derive it solely from device write size.

Source

Source · REL_18_0 · doc/src/sgml/config.sgml:2560-2563Whenever more than this amount of data has been written by the background writer, attempt to force the OS to issue these writes to the underlying storage. Doing so will limit the amount of dirty data in the kernel's page cache, reducing the likelihood of

Not graded: no reader would act differently on it.

In the article · section “How to Tune for Maximum Performance”

In the article

excerpt · section “How to Tune for Maximum Performance” · as fetched 2026-10-19 · open in article ↗ (opens in new tab)

How to Tune for Maximum Performance

Set bgwriter_flush_after to a value that matches your storage system’s optimal write size. For SSDs, 512 kB–1 MB works well.

All sources and excerpts · 2
Evidence Whenever more than this amount of data has been written by the background writer, attempt to force the OS to issue these writes to the underlying storage. Doing so will limit the amount of dirty data in the kernel's page cache, reducing the likelihood of

Version note: PostgreSQL 18.0 documentation.

Evidence {"bgwriter_flush_after", PGC_SIGHUP, RESOURCES_BGWRITER, gettext_noop("Number of pages after which previously performed writes are flushed to disk."), gettext_noop("0 disables forced writeback."), GUC_UNIT_BLOCKS }, &bgwriter_flush_after, DEFAULT_BGWRITER_FLUSH_AFTER, 0, WRITEBACK_MAX_PENDING_FLUSHES, NULL, NULL, NULL },

Version note: PostgreSQL 18.0.

How the review tested this

Review: E-7 recommends a tuning criterion. It does not say the parameter sets individual write size. Threshold semantics alone establish no wasted work. We considered storage characteristics as legitimate tuning inputs. The finding limits its correction to threshold semantics and avoids claiming that matching write size always harms performance.

F12

Note: “…matches your storage system’s optimal write size…”

NOTEpartly holds after review

Claim ledger

Article says
…matches your storage system’s optimal write size…
What is true
bgwriter_flush_after requests OS writeback after accumulated background-writer output exceeds a threshold. doc/src/sgml/config.sgml:2552–2582 describes that mechanism. It does not set individual write size. The source does not establish whether the article's storage-size heuristic improves or worsens performance.
So what
Choose bgwriter_flush_after by measuring writeback stalls and transaction latency, rather than copying the device's optimal write size.

Source

Source · REL_18_0 · doc/src/sgml/config.sgml:2552-2582Whenever more than this amount of data has been written by the background writer, attempt to force the OS to issue these writes to the underlying storage.

Not graded: no reader would act differently on it.

In the article · section “How to Tune for Maximum Performance”

In the article

excerpt · section “How to Tune for Maximum Performance” · as fetched 2026-10-19 · open in article ↗ (opens in new tab)

How to Tune for Maximum Performance

Set bgwriter_flush_after to a value that matches your storage system’s optimal write size. For SSDs, 512 kB–1 MB works well.

All sources and excerpts · 1
Evidence Whenever more than this amount of data has been written by the background writer, attempt to force the OS to issue these writes to the underlying storage.
How the review tested this

Review: E-33 defines the threshold. It does not establish that storage write size is a wrong tuning criterion or causes wasted work. E-33 establishes accumulated-writeback semantics. It does not establish that device write size is categorically the wrong tuning criterion. The article recommends matching values without explicitly claiming control over each write.

More in this report

Section checks · 7 sections

Section checks

AspectGradeFindingsCoverage
Dirty pagesA1 verified-accurate80% of claims (4 of 5, plus 13 that need data we do not have)
Background writerB+1 misleading100% of claims (5 of 5, plus 4 that need data we do not have)
AutovacuumA1 verified-accurate100% of claims (1 of 1, plus 5 that need data we do not have)
MeasurementB+1 inaccuracy100% of claims (3 of 3, plus 3 that need data we do not have)
Buffer sizingA1 verified-accurate100% of claims (1 of 1, plus 2 that need data we do not have)
Background-writer tuningA5 verified-accurate100% of claims (5 of 5, plus 1 that need data we do not have)
Checkpoint tuningB+2 misleading · 1 verified-accurate100% of claims (3 of 3)
Coverage and assessment · Checked 40 of 41 Postgres claims across 15 sections

B — the findings address the article's main subject. What we did not check is listed below. We checked PostgreSQL 18.0 monitoring columns, background-writer controls, buffer-sizing guidance, and checkpoint settings against source and documentation.

We did not check everything in this article. What we did not check is listed below, in the words we recorded at the time. None of it moved the letter. We never charge our own limits to the article.

We held back some findings this audit's coverage rested on, because we could not stand behind their sources. The letter rests on the findings that remain.

What we did not check

  • We did not check the article's WAL durability explanation or all checkpoint and backend-flushing paths.
  • We did not verify the workload-specific performance benefits of the recommended tuning values.
  • We did not check Linux dirty-page settings or huge-page recommendations.
  • We did not check pg_stat_io at the article's stated PostgreSQL 17 minimum.
  • We did not check the article's vacuum visibility and tuple-freezing mechanisms.
  • We did not check backend write paths or the WAL settings required for durability.
  • We did not verify the workload claims about SSDs, query stalls, or buffer sizing.
  • We did not check pg_stat_io in PostgreSQL 17 or establish its introduction release.
  • We did not establish which recommendations changed after PostgreSQL 18.0.
  • We did not compare the article's images and embedded content with the live page.
  • We did not verify whether the three listed processes cover every dirty-page write path.
  • We did not measure performance with the article’s suggested memory allocations and write settings.
  • Safe: we did not complete every applicable check.
  • We could not decide whether the article contains a material benchmark.
Checked 40 of 41 Postgres claims across 15 sections
  • Dirty pages: 4 of 5 Postgres claims checked, plus 13 that need data we do not have; not counted: 1 product or opinion, 3 not a claim; not checked: 1 for other reasons
  • Performance effects: 9 of 9 Postgres claims checked, plus 7 that need data we do not have; not counted: 1 product or opinion, 3 duplicate, 1 not a claim
  • Background writer: 5 of 5 Postgres claims checked, plus 4 that need data we do not have; not counted: 2 duplicate, 3 not a claim
  • Checkpointer: 2 of 2 Postgres claims checked, plus 1 that need data we do not have; not counted: 2 duplicate, 1 not a claim
  • Shared buffers: 3 of 3 Postgres claims checked, plus 6 that need data we do not have; not counted: 1 not a claim
  • Autovacuum: 1 of 1 Postgres claims checked, plus 5 that need data we do not have; not counted: 1 not a claim
  • Measurement: 3 of 3 Postgres claims checked, plus 3 that need data we do not have; not counted: 1 product or opinion, 1 not a claim
  • Buffer sizing: 1 of 1 Postgres claims checked, plus 2 that need data we do not have; not counted: 1 not a claim
  • Background-writer tuning: 5 of 5 Postgres claims checked, plus 1 that need data we do not have; not counted: 1 not a claim
  • Checkpoint tuning: 3 of 3 Postgres claims checked; not counted: 1 not a claim
  • Backend writes: 4 claims are the author's own account; nothing checkable
  • OS tuning: 3 claims are the author's own account; nothing checkable; not counted: 4 product or opinion
  • Performance review: 2 of 2 Postgres claims checked, plus 2 that need data we do not have; not counted: 3 product or opinion
  • Conclusion: 2 of 2 Postgres claims checked, plus 3 that need data we do not have; not counted: 2 duplicate, 1 not a claim
  • Navigation: no checkable claims; not counted: 2 not a claim

Average of 4 axes: 3.33 · worst of factual, consistent: B− · result B

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 B. Factual B- · 3 wrong of 13 checked · 0 caveats. Applicable B+ · 1 wrong of 9 checked · 0 caveats. Consistent A · 0 wrong of 13 checked · 0 caveats. Transparent 1 checked, too few for a letter. Safe B+ · 0 wrong of 19 checked · 0 caveats · 2 unwarned risks. B- 3 wrong of 13 checked · 0 caveatsFactual B-3 wrong of 130 caveats B+ 1 wrong of 9 checked · 0 caveatsApplicable B+1 wrong of 90 caveats A 0 wrong of 13 checked · 0 caveatsConsistent A0 wrong of 130 caveats 1 checked, too few for a letterTransparent n/a0 wrong of 10 caveats B+ 0 wrong of 19 checked · 0 caveats 2 unwarned risksSafe B+0 wrong of 190 caveats2 unwarned risks B

By topic: Dirty pages — 1 finding, 0 wrong · Background writer — 1 finding, 1 wrong · Autovacuum — 1 finding, 0 wrong · Measurement — 1 finding, 1 wrong · Buffer sizing — 1 finding, 0 wrong · Background-writer tuning — 5 findings, 0 wrong · Checkpoint tuning — 3 findings, 2 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 13 claims.

AxisLetterWrongCaveatsCheckedCoverage
FactualB-3013assessed: B- · 3 wrong of 13 checked · 0 caveats
ApplicableB+109assessed: B+ · 1 wrong of 9 checked · 0 caveats
ConsistentA0013assessed: A · 0 wrong of 13 checked · 0 caveats
Transparent—001assessed: 0 wrong · 0 caveats · 1 checked
SafeB+0019partly assessed: B+ · 0 wrong of 19 checked · 0 caveats · 2 unwarned risks · partly assessed

Safe. Recommended for production with no warning about data loss, downtime or a missing prerequisite: “You can also reduce checkpoint‑induced back‑end writes by increasing checkpoint_timeout , raising checkpoint_completion_target , and max_wal_size , which spreads write‑load over longer intervals and prevents sudden bursts of flush activity.” · “Disable transparent huge pages and enable huge pages (static huge pages) for better performance if your server has a lot of RAM.”

Topics · 7 topics

Topics

TopicFactualApplicableConsistentTransparentSafe
Dirty pages0 issues 1 checked F130 issues 1 checked0 issues 1 checked
Background writer1 issue 1 checked F100 issues 1 checked
Autovacuum0 issues 1 checked F90 issues 1 checked
Measurement1 issue 1 checked F10 issues 1 checked0 issues 1 checked
Buffer sizing0 issues 1 checked F40 issues 1 checked0 issues 1 checked
Background-writer tuning0 issues 5 checked F5 F6 F14 F16 F170 issues 5 checked0 issues 5 checked
Checkpoint tuning1 issue 3 checked F2 F81 issue 1 checked F110 issues 3 checked0 issues 1 checked

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

Revisions: 2 · C -> B

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-09-13 08:32 UTC · C · audit version not recorded · regrade version not recorded

    Article as first submitted. 4 accurate · 2 wrong · 3 caveats.

    ElephantSeal: C.

    Changes: First audit. Open: F1 “The monitoring recipe names a column absent from PostgreSQL 17 and 18” (false); F6 “The monitoring recipe references a column removed in PostgreSQL 17” (false); F2 “Set bgwriter_flush_after to a value that matches your storage system’s optimal write size.” (mostly accurate); F3 “Ordinary checkpoints spread writes across time” (mostly accurate); F7 “Raise checkpoint_completion_target to 0.7–0.9…” (mostly accurate).

  2. Revision 2 · this page · 2026-10-19 06:48 UTC · B · audited with v1.0.14 (approx.) · regraded with v1.1.3

    Same article text, re-audited. 9 accurate · 4 wrong · 0 caveats.

    ElephantSeal: B. Open: the production risk is not yet fixed or warned about.

    Changes: No longer reported: “The monitoring recipe names a column absent from PostgreSQL 17 and 18”; “The monitoring recipe references a column removed in PostgreSQL 17”; “Set bgwriter_flush_after to a value that matches your storage system’s optimal write size.”; “Ordinary checkpoints spread writes across time”; “Raise checkpoint_completion_target to 0.7–0.9…”. New: F1 “pg_stat_bgwriter lacks buffers_checkpoint and buffers_backend in PostgreSQL 18” (false); F2 “Setting checkpoint_completion_target to 0.7 lowers the default and concentrates writes” (misleading); F10 “PostgreSQL 18 pg_stat_bgwriter lacks the requested backend-write counters” (misleading); F11 “The proposed checkpoint range can lower the PostgreSQL 18 default” (misleading).

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: What Are “Dirty Pages” in PostgreSQL?

Article title: What Are “Dirty Pages” in PostgreSQL?
Article URL: https://stormatics.tech/blogs/what-are-dirty-pages-in-postgresql
Report URL: https://pgtrue.postgres.ai/shared/brief/edad7c8b-c114-46fa-9239-a236f691c491
Audited revision: 2 of 2, 2026-10-19 06:48:42 UTC
Overall letter: B

## Axes

- Factual: B- · 3 wrong · 13 checked · 0 caveats · assessed
- Applicable: B+ · 1 wrong · 9 checked · 0 caveats · assessed
- Consistent: A · 0 wrong · 13 checked · 0 caveats · assessed
- Transparent: — · 0 wrong · 1 checked · 0 caveats · assessed
- Safe: B+ · 0 wrong · 19 checked · 0 caveats · partly assessed

ElephantSeal: B.
Open conditions: the production risk is not yet fixed or warned about.

## Report metadata

- Report: Technical fact-check, edition 3
- pgTrue version: audited with v1.0.14 (approx.) · regraded with v1.1.3
- Issued: 2026-10-19
- Edition: Updated after review. Corrections are listed below.
- Submitted: Submitted by the PostgresAI team.
- Author response: No written reply from the author. We re-audited this article 1 time; see Revisions below. Policy: [right-of-reply and corrections policy](/pgtrue/security).

## Findings needing a change (4)

### F1 · Inaccurate · Factual · pg_stat_bgwriter lacks buffers_checkpoint and buffers_backend in PostgreSQL 18
Location: excerpt · section “How to Tune for Maximum Performance” · as fetched 2026-10-19 · [open in article](https://stormatics.tech/blogs/what-are-dirty-pages-in-postgresql#:~:text=Use%20pg_stat_bgwriter%20to%20monitor%3A%20buffers_checkpoint,%28BGWriter%20writes%29.%20buffers_backend%20%28back%E2%80%90end%20writes%29.)
Article says:
```text
…Use pg_stat_bgwriter to monitor: buffers_checkpoint (dirty pages written during checkpoints). buffers_clean (BGWriter writes). buffers_backend (back‐end writes).
```
What is true:
PostgreSQL 18 exposes neither recommended counter in pg_stat_bgwriter. src/backend/catalog/system_views.sql:1150-1155 defines four columns, including buffers_clean. Queries selecting buffers_checkpoint or buffers_backend from this view fail.
So what:
On PostgreSQL 18, inspect pg_stat_bgwriter's columns before building monitoring queries. Use pg_stat_io for backend-write monitoring.
Charitable reading:
The recipe matches older monitoring layouts. The article gives no older-version restriction and mentions PostgreSQL 17+.
Review: We tested the older-release interpretation against the article's unrestricted advice. PostgreSQL 18's complete view definition excludes both named counters. Selecting either column fails; wasted work is justified. We tested the older-release reading. The article gives no release restriction. The recorded PostgreSQL 18 view definition excludes both columns.

Sources:
- [REL_18_0 · src/backend/catalog/system_views.sql:1150-1155](https://github.com/postgres/postgres/blob/3d6a828938a5fa0444275d3d2f67b64ec3199eb7/src/backend/catalog/system_views.sql#L1150-L1155)
  Qualification: Version note: PostgreSQL 18.0.
  Excerpt:
  ```text
  CREATE VIEW pg_stat_bgwriter AS
    SELECT
        pg_stat_get_bgwriter_buf_written_clean() AS buffers_clean,
        pg_stat_get_bgwriter_maxwritten_clean() AS maxwritten_clean,
        pg_stat_get_buf_alloc() AS buffers_alloc,
        pg_stat_get_bgwriter_stat_reset_time() AS stats_reset;
  ```
- [REL_18_0 · doc/src/sgml/monitoring.sgml:3059-3063](https://github.com/postgres/postgres/blob/3d6a828938a5fa0444275d3d2f67b64ec3199eb7/doc/src/sgml/monitoring.sgml#L3059-L3063)
  Qualification: Version note: PostgreSQL 18.0 documentation.
  Excerpt:
  ```text
  <structfield>buffers_clean</structfield> <type>bigint</type>
      </para>
      <para>
       Number of buffers written by the background writer
      </para></entry>
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/edad7c8b-c114-46fa-9239-a236f691c491#F1

### F2 · Misleading · Factual · Setting checkpoint_completion_target to 0.7 lowers the default and concentrates writes
Location: excerpt · section “How to Tune for Maximum Performance” · as fetched 2026-10-19 · [open in article](https://stormatics.tech/blogs/what-are-dirty-pages-in-postgresql#:~:text=Raise%20checkpoint_completion_target%20to%200.7%E2%80%930.9%20so%20checkpoints%20spread%20writes%20evenly.)
Article says:
```text
Raise checkpoint_completion_target to 0.7–0.9 so checkpoints spread writes evenly.
```
What is true:
PostgreSQL 18 defaults checkpoint_completion_target to 0.9. src/backend/utils/misc/guc_tables.c:4114-4121 defines that default. doc/src/sgml/config.sgml:3655-3662 warns that reducing it increases checkpoint I/O intensity. Following the suggested 0.7 endpoint can reverse the intended pacing change.
So what:
Run SHOW checkpoint_completion_target. Keep the default 0.9 instead of lowering it to 0.7 to spread checkpoint writes.
Charitable reading:
Raising a previously lowered setting toward 0.9 can help. The article does not state that prerequisite.
Review: We considered an existing setting below 0.7. Raising that value remains valid, as the finding acknowledges. The default is 0.9, and choosing 0.7 reduces the available checkpoint interval. We tested raising an existing value below 0.7. The finding preserves that exception and limits its charge to lowering the default.

Sources:
- [REL_18_0 · doc/src/sgml/config.sgml:3655-3660](https://github.com/postgres/postgres/blob/3d6a828938a5fa0444275d3d2f67b64ec3199eb7/doc/src/sgml/config.sgml#L3655-L3660)
  Qualification: Version note: PostgreSQL 18.0 documentation.
  Excerpt:
  ```text
  Specifies the target of checkpoint completion, as a fraction of
        total time between checkpoints. The default is 0.9, which spreads the
        checkpoint across almost all of the available interval, providing fairly
        consistent I/O load while also leaving some time for checkpoint
        completion overhead.  Reducing this parameter is not recommended because
        it causes the checkpoint to complete faster.  This results in a higher
  ```
- [REL_18_0 · src/backend/utils/misc/guc_tables.c:4114-4121](https://github.com/postgres/postgres/blob/3d6a828938a5fa0444275d3d2f67b64ec3199eb7/src/backend/utils/misc/guc_tables.c#L4114-L4121)
  Qualification: Version note: PostgreSQL 18.0.
  Excerpt:
  ```text
  {"checkpoint_completion_target", PGC_SIGHUP, WAL_CHECKPOINTS,
			gettext_noop("Time spent flushing dirty buffers during checkpoint, as fraction of checkpoint interval."),
			NULL
		},
		&CheckPointCompletionTarget,
		0.9, 0.0, 1.0,
		NULL, assign_checkpoint_completion_target, NULL
	},
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/edad7c8b-c114-46fa-9239-a236f691c491#F2

### F10 · Misleading · Factual · PostgreSQL 18 pg_stat_bgwriter lacks the requested backend-write counters
Location: excerpt · section “Background Writer (BGWriter)” · as fetched 2026-10-19 · [open in article](https://stormatics.tech/blogs/what-are-dirty-pages-in-postgresql#:~:text=back%E2%80%90end%20processes%20are%20writing%20pages%20%28visible%20in%20pg_stat_bgwriter%20%29)
Article says:
```text
…back‐end processes are writing pages (visible in pg_stat_bgwriter )…
```
What is true:
PostgreSQL 18 pg_stat_bgwriter has four columns and no buffers_backend or buffers_checkpoint. src/backend/catalog/system_views.sql:1150 defines the complete view. Queries using those names fail. pg_stat_io exposes writes and backend_type.
So what:
Use pg_stat_io.writes grouped by backend_type to monitor backend writes on PostgreSQL 18.
Charitable reading:
Older PostgreSQL releases exposed backend-write counters in this view. The article gives no older-release restriction.
Review: We checked both view definitions. pg_stat_bgwriter lacks backend-write counters, while pg_stat_io exposes writes and backend_type. The correction stands but overlaps F1. We checked the suggested replacement view. E-39 exposes writes and backend_type. E-29 excludes the obsolete counters.

Sources:
- [REL_18_0 · src/backend/catalog/system_views.sql:1150-1155](https://github.com/postgres/postgres/blob/3d6a828938a5fa0444275d3d2f67b64ec3199eb7/src/backend/catalog/system_views.sql#L1150-L1155)
  Excerpt:
  ```text
  CREATE VIEW pg_stat_bgwriter AS
    SELECT
        pg_stat_get_bgwriter_buf_written_clean() AS buffers_clean,
        pg_stat_get_bgwriter_maxwritten_clean() AS maxwritten_clean,
        pg_stat_get_buf_alloc() AS buffers_alloc,
        pg_stat_get_bgwriter_stat_reset_time() AS stats_reset;
  ```
- [REL_18_0 · src/backend/catalog/system_views.sql:1171-1193](https://github.com/postgres/postgres/blob/3d6a828938a5fa0444275d3d2f67b64ec3199eb7/src/backend/catalog/system_views.sql#L1171-L1193)
  Excerpt:
  ```text
  CREATE VIEW pg_stat_io AS
SELECT
       b.backend_type,
       b.object,
       b.context,
       b.reads,
       b.read_bytes,
       b.read_time,
       b.writes,
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/edad7c8b-c114-46fa-9239-a236f691c491#F10

### F11 · Misleading · Applicable · The proposed checkpoint range can lower the PostgreSQL 18 default
Location: excerpt · section “How to Tune for Maximum Performance” · as fetched 2026-10-19 · [open in article](https://stormatics.tech/blogs/what-are-dirty-pages-in-postgresql#:~:text=Raise%20checkpoint_completion_target%20to%200.7%E2%80%930.9)
Article says:
```text
Raise checkpoint_completion_target to 0.7–0.9…
```
What is true:
PostgreSQL 18 defaults checkpoint_completion_target to 0.9. doc/src/sgml/config.sgml:3647 warns against reducing it because checkpoints finish faster. Choosing 0.7 from the proposed range concentrates checkpoint writes instead of spreading them further.
So what:
Keep checkpoint_completion_target at 0.9 unless measurements justify changing it. Check its current value before applying the range.
Charitable reading:
Raising an existing value below 0.7 can spread writes. The instruction does not specify that starting condition.
Review: We considered raising a previously lowered value. F11 acknowledges that valid case. The documentation supports its warning about reducing the default from 0.9 to 0.7. This overlaps F2. We tested a previously lowered setting. The finding acknowledges that raising it remains valid. Its default-value caveat matches E-40.

Sources:
- [REL_18_0 · doc/src/sgml/config.sgml:3647-3667](https://github.com/postgres/postgres/blob/3d6a828938a5fa0444275d3d2f67b64ec3199eb7/doc/src/sgml/config.sgml#L3647-L3667)
  Excerpt:
  ```text
  total time between checkpoints. The default is 0.9, which spreads the
        checkpoint across almost all of the available interval, providing fairly
        consistent I/O load while also leaving some time for checkpoint
        completion overhead.  Reducing this parameter is not recommended because
  ```
- [REL_18_0 · doc/src/sgml/config.sgml:3647-3667](https://github.com/postgres/postgres/blob/3d6a828938a5fa0444275d3d2f67b64ec3199eb7/doc/src/sgml/config.sgml#L3647-L3667)
  Excerpt:
  ```text
  total time between checkpoints. The default is 0.9, which spreads the
        checkpoint across almost all of the available interval, providing fairly
        consistent I/O load while also leaving some time for checkpoint
        completion overhead.  Reducing this parameter is not recommended because
        it causes the checkpoint to complete faster.
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/edad7c8b-c114-46fa-9239-a236f691c491#F11

## Verified accurate claims (9)

### F4 · Accurate · Factual · A 25% shared_buffers starting point matches PostgreSQL documentation
Location: excerpt · section “How to Tune for Maximum Performance” · as fetched 2026-10-19 · [open in article](https://stormatics.tech/blogs/what-are-dirty-pages-in-postgresql#:~:text=Start%20with%2025%20%25%20of%20RAM)
Article says:
```text
…Start with 25 % of RAM…
```
What is true:
doc/src/sgml/config.sgml:1731-1733 recommends 25% of RAM initially on dedicated servers with at least 1GB. src/backend/utils/misc/guc_tables.c:2369-2377 defines shared_buffers as the shared buffer count. The article's starting-point recommendation agrees.
Charitable reading:
The surrounding section addresses dedicated database servers and calls for workload adjustments.
Review: We checked the dedicated-server and 1GB qualifications. F4 preserves both and treats 25% as a starting point, not a measured optimum. We checked the dedicated-server qualification. The finding includes the documentation's 1 GB minimum and treats 25% as a starting value.

Sources:
- [REL_18_0 · doc/src/sgml/config.sgml:1731-1733](https://github.com/postgres/postgres/blob/3d6a828938a5fa0444275d3d2f67b64ec3199eb7/doc/src/sgml/config.sgml#L1731-L1733)
  Qualification: Version note: PostgreSQL 18.0 documentation.
  Excerpt:
  ```text
  If you have a dedicated database server with 1GB or more of RAM, a
        reasonable starting value for <varname>shared_buffers</varname> is 25%
        of the memory in your system.  There are some workloads where even
  ```
- [REL_18_0 · src/backend/utils/misc/guc_tables.c:2369-2377](https://github.com/postgres/postgres/blob/3d6a828938a5fa0444275d3d2f67b64ec3199eb7/src/backend/utils/misc/guc_tables.c#L2369-L2377)
  Qualification: Version note: PostgreSQL 18.0.
  Excerpt:
  ```text
  {"shared_buffers", PGC_POSTMASTER, RESOURCES_MEM,
			gettext_noop("Sets the number of shared memory buffers used by the server."),
			NULL,
			GUC_UNIT_BLOCKS
		},
		&NBuffers,
		16384, 16, INT_MAX / 2,
		NULL, NULL, NULL
	},
  ```
- [REL_18_0 · doc/src/sgml/config.sgml:1708-1751](https://github.com/postgres/postgres/blob/3d6a828938a5fa0444275d3d2f67b64ec3199eb7/doc/src/sgml/config.sgml#L1708-L1751)
  Excerpt:
  ```text
  If you have a dedicated database server with 1GB or more of RAM, a
        reasonable starting value for <varname>shared_buffers</varname> is 25%
        of the memory in your system.
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/edad7c8b-c114-46fa-9239-a236f691c491#F4

### F5 · Accurate · Factual · 100ms shortens the background writer's active-cycle sleep
Location: excerpt · section “How to Tune for Maximum Performance” · as fetched 2026-10-19 · [open in article](https://stormatics.tech/blogs/what-are-dirty-pages-in-postgresql#:~:text=Lower%20bgwriter_delay%20%28e.g.%2C%20100%20ms%29%20to%20wake%20BGWriter%20more%20often.)
Article says:
```text
…Lower bgwriter_delay (e.g., 100 ms) to wake BGWriter more often.
```
What is true:
bgwriter_delay defaults to 200ms in src/backend/utils/misc/guc_tables.c:3208-3216. Setting 100ms shortens the configured sleep between active rounds. doc/src/sgml/config.sgml:2485-2489 describes this cycle. The setting does not guarantee a particular number of writes.
Charitable reading:
The recommendation concerns active background writing. Idle hibernation can extend sleep beyond bgwriter_delay.
Review: We checked whether F5 promises a fixed wake frequency or performance gain. It only establishes that 100ms shortens the configured active-cycle sleep from 200ms. We tested whether the finding promises wake frequency or performance. It limits its conclusion to configured sleep between active rounds.

Sources:
- [REL_18_0 · src/backend/utils/misc/guc_tables.c:3208-3216](https://github.com/postgres/postgres/blob/3d6a828938a5fa0444275d3d2f67b64ec3199eb7/src/backend/utils/misc/guc_tables.c#L3208-L3216)
  Qualification: Version note: PostgreSQL 18.0.
  Excerpt:
  ```text
  {"bgwriter_delay", PGC_SIGHUP, RESOURCES_BGWRITER,
			gettext_noop("Background writer sleep time between rounds."),
			NULL,
			GUC_UNIT_MS
		},
		&BgWriterDelay,
		200, 10, 10000,
		NULL, NULL, NULL
	},
  ```
- [REL_18_0 · doc/src/sgml/config.sgml:2485-2489](https://github.com/postgres/postgres/blob/3d6a828938a5fa0444275d3d2f67b64ec3199eb7/doc/src/sgml/config.sgml#L2485-L2489)
  Qualification: Version note: PostgreSQL 18.0 documentation.
  Excerpt:
  ```text
  Specifies the delay between activity rounds for the
         background writer.  In each round the writer issues writes
         for some number of dirty buffers (controllable by the
         following parameters).  It then sleeps for
         the length of <varname>bgwriter_delay</varname>, and repeats.
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/edad7c8b-c114-46fa-9239-a236f691c491#F5

### F6 · Accurate · Factual · The two LRU controls can increase background cleaning
Location: excerpt · section “How to Tune for Maximum Performance” · as fetched 2026-10-19 · [open in article](https://stormatics.tech/blogs/what-are-dirty-pages-in-postgresql#:~:text=Increase%20bgwriter_lru_maxpages%20%28e.g.%2C%20200%E2%80%931000%29%20and%20bgwriter_lru_multiplier%20%28e.g.%2C%203%E2%80%934%29)
Article says:
```text
Increase bgwriter_lru_maxpages (e.g., 200–1000) and bgwriter_lru_multiplier (e.g., 3–4)…
```
What is true:
bgwriter_lru_maxpages limits buffer writes per round. doc/src/sgml/config.sgml:2513-2517 sets its default at 100 buffers. src/backend/storage/buffer/bufmgr.c:3754-3833 multiplies estimated allocation demand by bgwriter_lru_multiplier. Increasing these settings permits more cleaning without guaranteeing additional writes.
Charitable reading:
The article recommends greater cleaning capacity under high write load. It does not promise every cycle reaches the ceiling.
Review: We tested the distinction between permitted cleaning and actual writes. F6 preserves that distinction. The source confirms the per-round ceiling and allocation-demand multiplier. We tested whether higher limits guarantee additional writes. The finding states capacity and estimated demand, with no guaranteed increase.

Sources:
- [REL_18_0 · doc/src/sgml/config.sgml:2513-2517](https://github.com/postgres/postgres/blob/3d6a828938a5fa0444275d3d2f67b64ec3199eb7/doc/src/sgml/config.sgml#L2513-L2517)
  Qualification: Version note: PostgreSQL 18.0 documentation.
  Excerpt:
  ```text
  In each round, no more than this many buffers will be written
         by the background writer.  Setting this to zero disables
         background writing.  (Note that checkpoints, which are managed by
         a separate, dedicated auxiliary process, are unaffected.)
         The default value is 100 buffers.
  ```
- [REL_18_0 · src/backend/storage/buffer/bufmgr.c:3754-3833](https://github.com/postgres/postgres/blob/3d6a828938a5fa0444275d3d2f67b64ec3199eb7/src/backend/storage/buffer/bufmgr.c#L3754-L3833)
  Qualification: Version note: PostgreSQL 18.0.
  Excerpt:
  ```text
  upcoming_alloc_est = (int) (smoothed_alloc * bgwriter_lru_multiplier);
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/edad7c8b-c114-46fa-9239-a236f691c491#F6

### F8 · Accurate · Factual · Increasing max_wal_size increases the WAL checkpoint distance
Location: excerpt · section “How to Tune for Maximum Performance” · as fetched 2026-10-19 · [open in article](https://stormatics.tech/blogs/what-are-dirty-pages-in-postgresql#:~:text=Increase%20max_wal_size%20so%20checkpoints%20aren%E2%80%99t%20triggered%20too%20often.)
Article says:
```text
Increase max_wal_size so checkpoints aren’t triggered too often.
```
What is true:
src/backend/access/transam/xlog.c:2167-2198 calculates checkpoint distance from max_wal_size and checkpoint_completion_target. Raising max_wal_size increases that distance with other settings unchanged. src/backend/utils/misc/guc_tables.c:2961-2970 identifies its checkpoint-trigger role.
Charitable reading:
The recommendation targets excessive WAL-triggered checkpoints. It does not eliminate time-triggered checkpoints.
Review: We checked whether F8 confuses WAL-triggered and timed checkpoints. Its claim concerns the calculated WAL distance with other settings unchanged. The formula supports that tuning direction. We checked whether the conclusion incorrectly includes time-triggered checkpoints. It addresses WAL checkpoint distance with other settings unchanged.

Sources:
- [REL_18_0 · src/backend/utils/misc/guc_tables.c:2961-2970](https://github.com/postgres/postgres/blob/3d6a828938a5fa0444275d3d2f67b64ec3199eb7/src/backend/utils/misc/guc_tables.c#L2961-L2970)
  Qualification: Version note: PostgreSQL 18.0.
  Excerpt:
  ```text
  gettext_noop("Sets the WAL size that triggers a checkpoint."),
  ```
- [REL_18_0 · src/backend/access/transam/xlog.c:2167-2198](https://github.com/postgres/postgres/blob/3d6a828938a5fa0444275d3d2f67b64ec3199eb7/src/backend/access/transam/xlog.c#L2167-L2198)
  Qualification: Version note: PostgreSQL 18.0.
  Excerpt:
  ```text
  target = (double) ConvertToXSegs(max_wal_size_mb, wal_segment_size) /
		(1.0 + CheckPointCompletionTarget);
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/edad7c8b-c114-46fa-9239-a236f691c491#F8

### F9 · Accurate · Factual · Autovacuum cost and scale settings control different tuning dimensions
Location: excerpt · section “Autovacuum and Vacuum Freeze” · as fetched 2026-10-19 · [open in article](https://stormatics.tech/blogs/what-are-dirty-pages-in-postgresql#:~:text=Adjust%20autovacuum_vacuum_cost_limit%20and%20autovacuum_vacuum_scale_factor%20based%20on%20workload.)
Article says:
```text
Adjust autovacuum_vacuum_cost_limit and autovacuum_vacuum_scale_factor based on workload.
```
What is true:
autovacuum_vacuum_scale_factor contributes to vacuum eligibility in doc/src/sgml/config.sgml:9010-9013. autovacuum_vacuum_cost_limit controls vacuum's cost allowance. src/backend/postmaster/autovacuum.c:1714-1758 distributes that allowance among participating workers. The workload-based adjustment advice agrees with these roles.
Charitable reading:
The article recommends workload-based adjustments without claiming both parameters control the same mechanism.
Review: We checked worker balancing and table-specific overrides. F9 correctly limits balancing to participating workers and distinguishes vacuum eligibility from the cost allowance. We tested whether the finding conflates eligibility with vacuum cost. It distinguishes both roles and claims no measured tuning benefit.

Sources:
- [REL_18_0 · doc/src/sgml/config.sgml:9010-9013](https://github.com/postgres/postgres/blob/3d6a828938a5fa0444275d3d2f67b64ec3199eb7/doc/src/sgml/config.sgml#L9010-L9013)
  Qualification: Version note: PostgreSQL 18.0 documentation.
  Excerpt:
  ```text
  Specifies a fraction of the table size to add to
         <varname>autovacuum_vacuum_threshold</varname>
         when deciding whether to trigger a <command>VACUUM</command>.
         The default is <literal>0.2</literal> (20% of table size).
  ```
- [REL_18_0 · src/backend/postmaster/autovacuum.c:1714-1758](https://github.com/postgres/postgres/blob/3d6a828938a5fa0444275d3d2f67b64ec3199eb7/src/backend/postmaster/autovacuum.c#L1714-L1758)
  Qualification: Version note: PostgreSQL 18.0.
  Excerpt:
  ```text
  vacuum_cost_limit = Max(vacuum_cost_limit / nworkers_for_balance, 1);
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/edad7c8b-c114-46fa-9239-a236f691c491#F9

### F13 · Accurate · Factual · checkpoint_timeout can trigger a checkpoint
Location: Article · exact quote · [open in article](https://stormatics.tech/blogs/what-are-dirty-pages-in-postgresql#:~:text=checkpoint_timeout%20interval)
Article says:
```text
…checkpoint_timeout interval…
```
What is true:
The checkpointer compares elapsed_secs with CheckPointTimeout. src/backend/postmaster/checkpointer.c:350 sets do_checkpoint and CHECKPOINT_CAUSE_TIME when the interval expires.
Charitable reading:
The article describes a checkpoint trigger, rather than promising table writes at every timeout.
Review: We checked whether F13 guarantees dirty-page writes at every timeout. It only describes the elapsed-time trigger. The code sets do_checkpoint and CHECKPOINT_CAUSE_TIME. We checked whether the finding promises writes at every timeout. It claims only that elapsed time can trigger a checkpoint.

Sources:
- [REL_18_0 · src/backend/postmaster/checkpointer.c:350-429](https://github.com/postgres/postgres/blob/3d6a828938a5fa0444275d3d2f67b64ec3199eb7/src/backend/postmaster/checkpointer.c#L350-L429)
  Excerpt:
  ```text
  if (elapsed_secs >= CheckPointTimeout)
		{
			if (!do_checkpoint)
				chkpt_or_rstpt_timed = true;
			do_checkpoint = true;
			flags |= CHECKPOINT_CAUSE_TIME;
		}
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/edad7c8b-c114-46fa-9239-a236f691c491#F13

### F14 · Accurate · Factual · Higher background-writer limits permit more cleaning per round
Location: excerpt · section “How to Tune for Maximum Performance” · as fetched 2026-10-19 · [open in article](https://stormatics.tech/blogs/what-are-dirty-pages-in-postgresql#:~:text=to%20handle%20more%20dirty%20pages,have%20a%20high%20write%20workload)
Article says:
```text
…to handle more dirty pages per cycle if you have a high write workload…
```
What is true:
bgwriter_lru_multiplier scales estimated allocation demand. bgwriter_lru_maxpages caps successful writes per round. src/backend/storage/buffer/bufmgr.c:3777 implements both controls. Increasing them can permit more dirty-buffer writes when sufficient demand exists.
Charitable reading:
The settings permit more cleaning when demand and dirty reusable buffers justify it. They do not guarantee more writes.
Review: We inspected the allocation estimate and successful-write counter. Both support increased permitted cleaning, without guaranteeing additional writes. F14 preserves this qualification and overlaps F6. We tested demand-independent interpretation. The finding conditions additional writes on demand and distinguishes the multiplier from the write cap.

Sources:
- [REL_18_0 · src/backend/storage/buffer/bufmgr.c:3754-3833](https://github.com/postgres/postgres/blob/3d6a828938a5fa0444275d3d2f67b64ec3199eb7/src/backend/storage/buffer/bufmgr.c#L3754-L3833)
  Excerpt:
  ```text
  upcoming_alloc_est = (int) (smoothed_alloc * bgwriter_lru_multiplier);
  ```
- [REL_18_0 · src/backend/storage/buffer/bufmgr.c:3777-3856](https://github.com/postgres/postgres/blob/3d6a828938a5fa0444275d3d2f67b64ec3199eb7/src/backend/storage/buffer/bufmgr.c#L3777-L3856)
  Excerpt:
  ```text
  if (sync_state & BUF_WRITTEN)
		{
			reusable_buffers++;
			if (++num_written >= bgwriter_lru_maxpages)
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/edad7c8b-c114-46fa-9239-a236f691c491#F14

### F16 · Accurate · Factual · 200–1000 buffers increases the default per-round limit
Location: excerpt · section “How to Tune for Maximum Performance” · as fetched 2026-10-19 · [open in article](https://stormatics.tech/blogs/what-are-dirty-pages-in-postgresql#:~:text=Increase%20bgwriter_lru_maxpages%20%28e.g.%2C%20200%E2%80%931000%29)
Article says:
```text
Increase bgwriter_lru_maxpages (e.g., 200–1000)…
```
What is true:
REL_18_0 src/backend/utils/misc/guc_tables.c:3219–3226 defaults bgwriter_lru_maxpages to 100 buffers per round. The article’s 200–1000 range raises that limit.
Charitable reading:
The 200–1000 range increases the permitted writes per round. It does not promise that every round writes that many.
Review: We checked whether the numeric comparison implies guaranteed writes. F16 only compares limits. The suggested 200–1000 buffers exceed the default 100 buffers per round. We checked the range against the default. Both 200 buffers and 1,000 buffers exceed the recorded 100-buffer limit.

Sources:
- [REL_18_0 · src/backend/utils/misc/guc_tables.c:3219-3226](https://github.com/postgres/postgres/blob/3d6a828938a5fa0444275d3d2f67b64ec3199eb7/src/backend/utils/misc/guc_tables.c#L3219-L3226)
  Excerpt:
  ```text
  &bgwriter_lru_maxpages,
		100, 0, INT_MAX / 2,	/* Same upper limit as shared_buffers */
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/edad7c8b-c114-46fa-9239-a236f691c491#F16

### F17 · Accurate · Factual · A multiplier of 3–4 exceeds the default of 2
Location: excerpt · section “How to Tune for Maximum Performance” · as fetched 2026-10-19 · [open in article](https://stormatics.tech/blogs/what-are-dirty-pages-in-postgresql#:~:text=bgwriter_lru_multiplier%20%28e.g.%2C%203%E2%80%934%29)
Article says:
```text
…bgwriter_lru_multiplier (e.g., 3–4)…
```
What is true:
REL_18_0 src/backend/utils/misc/guc_tables.c:4041–4048 defaults bgwriter_lru_multiplier to 2.0. Both suggested values increase that multiplier.
Charitable reading:
The multiplier changes the estimated clean-buffer requirement. It does not multiply every write count directly.
Review: We checked the default and accepted range. Values 3 and 4 exceed the default 2.0 and remain within 0–10. F17 makes no throughput claim. We checked the arithmetic and supported range. Multipliers 3 and 4 exceed default 2 and remain within 0–10.

Sources:
- [REL_18_0 · src/backend/utils/misc/guc_tables.c:4041-4048](https://github.com/postgres/postgres/blob/3d6a828938a5fa0444275d3d2f67b64ec3199eb7/src/backend/utils/misc/guc_tables.c#L4041-L4048)
  Excerpt:
  ```text
  &bgwriter_lru_multiplier,
		2.0, 0.0, 10.0,
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/edad7c8b-c114-46fa-9239-a236f691c491#F17

## Notes (not graded) (2)

### F3 · Note ·  · Note: “Set bgwriter_flush_after to a value that matches your storage system’s optimal write size.”
Location: excerpt · section “How to Tune for Maximum Performance” · as fetched 2026-10-19 · [open in article](https://stormatics.tech/blogs/what-are-dirty-pages-in-postgresql#:~:text=Set%20bgwriter_flush_after%20to%20a%20value,storage%20system%E2%80%99s%20optimal%20write%20size.)
Article says:
```text
Set bgwriter_flush_after to a value that matches your storage system’s optimal write size.
```
What is true:
bgwriter_flush_after controls accumulated background-writer output before an OS writeback request. doc/src/sgml/config.sgml:2560–2563 describes that threshold. It does not set individual write size. These sources do not establish whether matching the threshold to storage write size helps or harms performance.
So what:
Choose bgwriter_flush_after by measuring writeback behavior and transaction latency. Do not derive it solely from device write size.
Explanation: Not graded: no reader would act differently on it.
Review: E-7 recommends a tuning criterion. It does not say the parameter sets individual write size. Threshold semantics alone establish no wasted work. We considered storage characteristics as legitimate tuning inputs. The finding limits its correction to threshold semantics and avoids claiming that matching write size always harms performance.

Sources:
- [REL_18_0 · doc/src/sgml/config.sgml:2560-2563](https://github.com/postgres/postgres/blob/3d6a828938a5fa0444275d3d2f67b64ec3199eb7/doc/src/sgml/config.sgml#L2560-L2563)
  Qualification: Version note: PostgreSQL 18.0 documentation.
  Excerpt:
  ```text
  Whenever more than this amount of data has
         been written by the background writer, attempt to force the OS to issue these
         writes to the underlying storage.  Doing so will limit the amount of
         dirty data in the kernel's page cache, reducing the likelihood of
  ```
- [REL_18_0 · src/backend/utils/misc/guc_tables.c:3229-3237](https://github.com/postgres/postgres/blob/3d6a828938a5fa0444275d3d2f67b64ec3199eb7/src/backend/utils/misc/guc_tables.c#L3229-L3237)
  Qualification: Version note: PostgreSQL 18.0.
  Excerpt:
  ```text
  {"bgwriter_flush_after", PGC_SIGHUP, RESOURCES_BGWRITER,
			gettext_noop("Number of pages after which previously performed writes are flushed to disk."),
			gettext_noop("0 disables forced writeback."),
			GUC_UNIT_BLOCKS
		},
		&bgwriter_flush_after,
		DEFAULT_BGWRITER_FLUSH_AFTER, 0, WRITEBACK_MAX_PENDING_FLUSHES,
		NULL, NULL, NULL
	},
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/edad7c8b-c114-46fa-9239-a236f691c491#F3

### F12 · Note ·  · Note: “…matches your storage system’s optimal write size…”
Location: excerpt · section “How to Tune for Maximum Performance” · as fetched 2026-10-19 · [open in article](https://stormatics.tech/blogs/what-are-dirty-pages-in-postgresql#:~:text=matches%20your%20storage%20system%E2%80%99s%20optimal%20write%20size)
Article says:
```text
…matches your storage system’s optimal write size…
```
What is true:
bgwriter_flush_after requests OS writeback after accumulated background-writer output exceeds a threshold. doc/src/sgml/config.sgml:2552–2582 describes that mechanism. It does not set individual write size. The source does not establish whether the article's storage-size heuristic improves or worsens performance.
So what:
Choose bgwriter_flush_after by measuring writeback stalls and transaction latency, rather than copying the device's optimal write size.
Explanation: Not graded: no reader would act differently on it.
Review: E-33 defines the threshold. It does not establish that storage write size is a wrong tuning criterion or causes wasted work. E-33 establishes accumulated-writeback semantics. It does not establish that device write size is categorically the wrong tuning criterion. The article recommends matching values without explicitly claiming control over each write.

Sources:
- [REL_18_0 · doc/src/sgml/config.sgml:2552-2582](https://github.com/postgres/postgres/blob/3d6a828938a5fa0444275d3d2f67b64ec3199eb7/doc/src/sgml/config.sgml#L2552-L2582)
  Excerpt:
  ```text
  Whenever more than this amount of data has
         been written by the background writer, attempt to force the OS to issue these
         writes to the underlying storage.
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/edad7c8b-c114-46fa-9239-a236f691c491#F12

## Withdrawn findings (0)

None.

## Section checks

- Dirty pages · A · 1 verified-accurate · 80% of claims (4 of 5, plus 13 that need data we do not have)
- Background writer · B+ · 1 misleading · 100% of claims (5 of 5, plus 4 that need data we do not have)
- Autovacuum · A · 1 verified-accurate · 100% of claims (1 of 1, plus 5 that need data we do not have)
- Measurement · B+ · 1 inaccuracy · 100% of claims (3 of 3, plus 3 that need data we do not have)
- Buffer sizing · A · 1 verified-accurate · 100% of claims (1 of 1, plus 2 that need data we do not have)
- Background-writer tuning · A · 5 verified-accurate · 100% of claims (5 of 5, plus 1 that need data we do not have)
- Checkpoint tuning · B+ · 2 misleading · 1 verified-accurate · 100% of claims (3 of 3)

## Claim coverage

- Dirty pages: 4 of 5 Postgres claims checked, plus 13 that need data we do not have; not counted: 1 product or opinion, 3 not a claim; not checked: 1 for other reasons
- Performance effects: 9 of 9 Postgres claims checked, plus 7 that need data we do not have; not counted: 1 product or opinion, 3 duplicate, 1 not a claim
- Background writer: 5 of 5 Postgres claims checked, plus 4 that need data we do not have; not counted: 2 duplicate, 3 not a claim
- Checkpointer: 2 of 2 Postgres claims checked, plus 1 that need data we do not have; not counted: 2 duplicate, 1 not a claim
- Shared buffers: 3 of 3 Postgres claims checked, plus 6 that need data we do not have; not counted: 1 not a claim
- Autovacuum: 1 of 1 Postgres claims checked, plus 5 that need data we do not have; not counted: 1 not a claim
- Measurement: 3 of 3 Postgres claims checked, plus 3 that need data we do not have; not counted: 1 product or opinion, 1 not a claim
- Buffer sizing: 1 of 1 Postgres claims checked, plus 2 that need data we do not have; not counted: 1 not a claim
- Background-writer tuning: 5 of 5 Postgres claims checked, plus 1 that need data we do not have; not counted: 1 not a claim
- Checkpoint tuning: 3 of 3 Postgres claims checked; not counted: 1 not a claim
- Backend writes: 4 claims are the author's own account; nothing checkable
- OS tuning: 3 claims are the author's own account; nothing checkable; not counted: 4 product or opinion
- Performance review: 2 of 2 Postgres claims checked, plus 2 that need data we do not have; not counted: 3 product or opinion
- Conclusion: 2 of 2 Postgres claims checked, plus 3 that need data we do not have; not counted: 2 duplicate, 1 not a claim
- Navigation: no checkable claims; not counted: 2 not a claim

## What we did not check

- We did not check the article's WAL durability explanation or all checkpoint and backend-flushing paths.
- We did not verify the workload-specific performance benefits of the recommended tuning values.
- We did not check Linux dirty-page settings or huge-page recommendations.
- We did not check pg_stat_io at the article's stated PostgreSQL 17 minimum.
- We did not check the article's vacuum visibility and tuple-freezing mechanisms.
- We did not check backend write paths or the WAL settings required for durability.
- We did not verify the workload claims about SSDs, query stalls, or buffer sizing.
- We did not check pg_stat_io in PostgreSQL 17 or establish its introduction release.
- We did not establish which recommendations changed after PostgreSQL 18.0.
- We did not compare the article's images and embedded content with the live page.
- We did not verify whether the three listed processes cover every dirty-page write path.
- We did not measure performance with the article’s suggested memory allocations and write settings.
- Safe: we did not complete every applicable check.
- We could not decide whether the article contains a material benchmark.

## Notes

- B — the findings address the article's main subject. What we did not check is listed below. We checked PostgreSQL 18.0 monitoring columns, background-writer controls, buffer-sizing guidance, and checkpoint settings against source and documentation.
- We did not check everything in this article. What we did not check is listed below, in the words we recorded at the time. None of it moved the letter. We never charge our own limits to the article.
- We held back some findings this audit's coverage rested on, because we could not stand behind their sources. The letter rests on the findings that remain.
- Average of 4 axes: 3.33 · worst of factual, consistent: B− · result B
- Some explanatory text is not shown in this edition; the grade and findings are complete.
- Some checks did not happen for this edition, and each one we know of is listed above.
- Checked against: github.com/postgres/postgres REL_18_0 at commit 3d6a828938a5fa0444275d3d2f67b64ec3199eb7 (pinned target); https://stormatics.tech/author/umair (fetched 2026-10-19T06:48:52.726250Z); https://stormatics.tech/blogs/introduction-to-numa (fetched 2026-10-19T06:48:58.508244Z); https://stormatics.tech/blogs/numa-linux-and-postgresql-before-libnuma-support (fetched 2026-10-19T06:48:59.671913Z); https://stormatics.tech/category/blogs (fetched 2026-10-19T06:48:53.955800Z); https://stormatics.tech/category/service-performance-optimization (fetched 2026-10-19T06:48:55.212479Z); https://stormatics.tech/category/umairs-planet-postgresql (fetched 2026-10-19T06:48:56.352151Z); https://stormatics.tech/service/postgresql-health-check (fetched 2026-10-19T06:48:57.415034Z).
- Article captured 2026-10-19T06:48:42.106385Z · SHA-256 51ecf67b042ee2bb4da40a1f75440120eea92c44deadbdb0af9494fabdf8efeb · Text extracted from the article's HTML.
- Policy SHA-256 615f0a41c4de4da29604604ee96635c5f38cf53e80213ef2707546d195dd5fa9 · Grading rules SHA-256 6fb334e79d6b9e7ed81d3238cc10d9de602ff87ed65ff2fa781f53bac5798765.
- We checked PostgreSQL 18.0, the release current when the article appeared.
- We did not check WAL durability prerequisites or every checkpoint and backend-write path.
- We did not measure performance with the suggested memory allocations, SSD thresholds, or write settings.
- We did not check Linux dirty-page settings, huge-page recommendations, or vacuum visibility and tuple-freezing mechanisms.
- We did not establish pg_stat_io's introduction release or check its PostgreSQL 17 behavior.
- We did not compare the article's images and embedded content with the live page.
- We did not establish which recommendations changed after PostgreSQL 18.0.
- The article gives October 31, 2025 without a time. We list that date at midnight UTC.
- source: the article names no postgres release, so it was read at REL_18_0, the latest release when it was published
- withheld: F7 — this finding failed a check this edition requires.
- review: the findings were written by one model and reviewed independently by a different model.
- 2026-10-30: Regraded under the current grading rules: the letter is the average of the axis letters, with every cap stated under it.
- 1 passage in this edition fell short of our own plain-English rules.
- Built from the article text captured above, one pinned source tree, and 7 fetched pages.
- 14 survived · 2 weakened · 0 withdrawn.

## Revision history

- [Revision 1](https://pgtrue.postgres.ai/shared/brief/edad7c8b-c114-46fa-9239-a236f691c491?v=42) · 2026-09-13 08:32 UTC · C · audit version not recorded · regrade version not recorded
  Article as first submitted. 4 accurate · 2 wrong · 3 caveats.
  ElephantSeal: C.
  Changes: First audit. Open: F1 “The monitoring recipe names a column absent from PostgreSQL 17 and 18” (false); F6 “The monitoring recipe references a column removed in PostgreSQL 17” (false); F2 “Set bgwriter_flush_after to a value that matches your storage system’s optimal write size.” (mostly accurate); F3 “Ordinary checkpoints spread writes across time” (mostly accurate); F7 “Raise checkpoint_completion_target to 0.7–0.9…” (mostly accurate).
- [Revision 2](https://pgtrue.postgres.ai/shared/brief/edad7c8b-c114-46fa-9239-a236f691c491?v=48) · this page · 2026-10-19 06:48 UTC · B · audited with v1.0.14 (approx.) · regraded with v1.1.3
  Same article text, re-audited. 9 accurate · 4 wrong · 0 caveats.
  ElephantSeal: B. Open: the production risk is not yet fixed or warned about.
  Changes: No longer reported: “The monitoring recipe names a column absent from PostgreSQL 17 and 18”; “The monitoring recipe references a column removed in PostgreSQL 17”; “Set bgwriter_flush_after to a value that matches your storage system’s optimal write size.”; “Ordinary checkpoints spread writes across time”; “Raise checkpoint_completion_target to 0.7–0.9…”. New: F1 “pg_stat_bgwriter lacks buffers_checkpoint and buffers_backend in PostgreSQL 18” (false); F2 “Setting checkpoint_completion_target to 0.7 lowers the default and concentrates writes” (misleading); F10 “PostgreSQL 18 pg_stat_bgwriter lacks the requested backend-write counters” (misleading); F11 “The proposed checkpoint range can lower the PostgreSQL 18 default” (misleading).

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