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).