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: Cutting a Production PostgreSQL Database’s WAL Generation by ~25%: A Diagnostic Story
Article title: Cutting a Production PostgreSQL Database’s WAL Generation by ~25%: A Diagnostic Story
Article URL: https://stormatics.tech/blogs/cutting-postgresql-wal-by-25-percent
Report URL: https://pgtrue.postgres.ai/shared/brief/b1a851b2-7f6f-4325-8d97-20b57474b31c
Audited revision: 5 of 5, 2026-10-21 05:01:05 UTC
Overall letter: C+
## Axes
- Factual: B- · 3 wrong · 20 checked · 2 caveats · partly assessed
- Applicable: B+ · 1 wrong · 7 checked · 0 caveats · assessed
- Consistent: A · 0 wrong · 20 checked · 0 caveats · assessed
- Transparent: C · 0 wrong · 9 checked · 1 caveats · assessed
- Safe: D · 2 wrong · 5 checked · 0 caveats · partly assessed
ElephantSeal: C+.
Open conditions: the benchmark cannot yet be rerun from what is published; the production risk is not yet fixed or warned about.
## Report metadata
- Report: Technical fact-check, edition 3
- pgTrue version: audited with v1.0.17 (approx.) · regraded with v1.1.3
- Issued: 2026-10-21
- Edition: Updated after review. Corrections are listed below.
- Submitted: Submitted by the PostgresAI team.
- Author response: No written reply from the author. We re-audited this article 4 times; see Revisions below. Policy: [right-of-reply and corrections policy](/pgtrue/security).
## Findings needing a change (9)
### F5 · Inaccurate · Factual · wal_fpi divided by wal_records is not a percentage of records containing images
Location: excerpt · section “Finding the Root Cause, Not Guessing at It” · as fetched 2026-10-21 · [open in article](https://stormatics.tech/blogs/cutting-postgresql-wal-by-25-percent#:~:text=39%25%20of%20all%20WAL%20records%20were%20full%2Dpage%20images.)
Article says:
```text
…39% of all WAL records were full-page images.
```
What is true:
wal_fpi counts images. One WAL record can contain multiple images. src/backend/access/transam/xloginsert.c:589 loops over registered blocks, and line 704 increments the image count. A quotient of 0.39 means 0.39 images per record. It establishes neither a 39% record share nor a byte share.
So what:
Label wal_fpi / wal_records as images per record. Measure image bytes separately before estimating WAL-byte savings.
Charitable reading:
The displayed quotient may equal 39%. It measures image count divided by record count, not the percentage of records containing images.
Review: We tested a one-image-per-record interpretation. xloginsert.c counts images within a block loop. The quotient cannot establish the claimed record percentage. We checked whether each record necessarily contains one image. The block loop permits multiple images per record. The quotient does not establish the claimed record percentage.
Sources:
- [REL_18_6 · doc/src/sgml/monitoring.sgml:3246-3321](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/monitoring.sgml#L3246-L3321)
Excerpt:
```text
Total number of WAL full page images generated
```
- [REL_18_6 · src/backend/access/transam/xloginsert.c:585-625](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/access/transam/xloginsert.c#L585-L625)
Excerpt:
```text
for (block_id = 0; block_id < max_registered_block_id; block_id++)
```
- [REL_18_6 · src/backend/access/transam/xloginsert.c:703-704](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/access/transam/xloginsert.c#L703-L704)
Excerpt:
```text
/* Report a full page image constructed for the WAL record */
*num_fpi += 1;
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/b1a851b2-7f6f-4325-8d97-20b57474b31c#F5
### F1 · Inaccurate · Safe · The no-op guard compares columns the UPDATE does not assign
Location: excerpt · section “Buffer Pool Diagnostics” · as fetched 2026-10-21 · [open in article](https://stormatics.tech/blogs/cutting-postgresql-wal-by-25-percent#:~:text=A%20no%2Dop%20guard%20added%20to,update%20that%20was%20previously%20unconditional%3A)
Article says:
```text
A no-op guard added to an update that was previously unconditional:…
```
What is true:
The guard tests type, but SET changes username and location. Equal arrays can suppress needed changes to either assigned column. Different arrays can permit unchanged assignments. UPDATE applies only where its condition is true. See doc/src/sgml/ref/update.sgml:192-194.
So what:
Replace the array guard with ROW(username, location) IS DISTINCT FROM ROW($1, $2), alongside the intended row-selection predicate.
Charitable reading:
The type comparison could implement a separate business rule. It cannot establish whether the two assigned values changed.
Review: We tested the business-rule reading. No stated invariant connects type-array equality to changes in username or location. UPDATE semantics support silently skipped changes. We tested the separate-business-rule reading. The displayed guard still cannot establish whether username or location changed. Equal arrays can suppress intended updates.
Sources:
- [REL_18_6 · doc/src/sgml/ref/update.sgml:41-44](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/ref/update.sgml#L41-L44)
Excerpt:
```text
<command>UPDATE</command> changes the values of the specified
columns in all rows that satisfy the condition. Only the columns to
be modified need be mentioned in the <literal>SET</literal> clause;
columns not explicitly modified retain their previous values.
```
- [REL_18_6 · doc/src/sgml/ref/update.sgml:192-194](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/ref/update.sgml#L192-L194)
Excerpt:
```text
An expression that returns a value of type <type>boolean</type>.
Only rows for which this expression returns <literal>true</literal>
will be updated.
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/b1a851b2-7f6f-4325-8d97-20b57474b31c#F1
### F16 · Inaccurate · Safe · The no-op guard compares a column the UPDATE does not assign
Location: excerpt · section “Buffer Pool Diagnostics” · as fetched 2026-10-21 · [open in article](https://stormatics.tech/blogs/cutting-postgresql-wal-by-25-percent#:~:text=array%28SELECT%20unnest%28%22type%22%29%20ORDER%20BY%201%29,array%28SELECT%20unnest%28%244%3A%3Atext%5B%5D%29%20ORDER%20BY%201%29)
Article says:
```text
…array(SELECT unnest("type") ORDER BY 1) IS DISTINCT FROM array(SELECT unnest($4::text[]) ORDER BY 1)…
```
What is true:
Equal type arrays suppress changes to username or location. Different arrays permit unchanged scalar assignments. PostgreSQL 18.6 documents conditional updates in doc/src/sgml/ref/update.sgml:41. The guard can silently skip intended updates.
So what:
Replace the type guard with null-safe comparisons of username against $1 and location against $2.
Charitable reading:
An application invariant could connect type changes to scalar changes. The example states no such invariant.
Review: We tested whether type-array differences necessarily imply scalar changes. The example supplies no such invariant. The charge survives but duplicates F1. We considered an unstated application invariant. The example supplies none. The guard can skip changed scalar assignments. This repeats F1.
Sources:
- [REL_18_6 · doc/src/sgml/ref/update.sgml:37-44](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/ref/update.sgml#L37-L44)
Excerpt:
```text
<command>UPDATE</command> changes the values of the specified
columns in all rows that satisfy the condition.
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/b1a851b2-7f6f-4325-8d97-20b57474b31c#F16
### F3 · Misleading · Applicable · Free page space alone does not permit HOT updates
Location: Article · exact quote · [open in article](https://stormatics.tech/blogs/cutting-postgresql-wal-by-25-percent#:~:text=update%20mechanism%20lets%20a%20row,without%20touching%20a%20single%20index)
Article says:
```text
…update mechanism lets a row be updated in place, without touching a single index…
```
What is true:
HOT creates a new tuple version on the same page. Changes to columns referenced by HOT-blocking indexes prevent it. Summarizing indexes can still require updates. src/backend/access/heap/heapam.c:4116-4135 checks both conditions. Lower fillfactor cannot remove the indexed-column restriction.
So what:
Check which indexed columns the workload changes before lowering fillfactor to improve HOT. Do not expect space alone to enable HOT.
Charitable reading:
Updated in place may mean on the same page. That reading still omits the indexed-column restriction and possible BRIN maintenance.
Review: We read in place as on the same page. heapam.c still requires unchanged HOT-blocking attributes and can request summarizing-index maintenance. We read updated in place as remaining on the same page. The indexed-column restriction still applies. Free space alone does not establish HOT eligibility.
Sources:
- [REL_18_6 · src/backend/access/heap/heapam.c:4116-4135](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/access/heap/heapam.c#L4116-L4135)
Excerpt:
```text
if (newbuf == buffer)
{
/*
* Since the new tuple is going into the same page, we might be able
* to do a HOT update. Check if any of the index columns have been
* changed.
*/
if (!bms_overlap(modified_attrs, hot_attrs))
{
use_hot_update = true;
/*
* If none of the columns that are used in hot-blocking indexes
* were updated, we can apply HOT, but we do still need to check
* if we need to update the summarizing indexes, and update those
* indexes if the columns were updated, or we may fail to detect
* e.g. value bound changes in BRIN minmax indexes.
*/
if (bms_overlap(modified_attrs, sum_attrs))
summarized_update = true;
```
- [REL_18_6 · doc/src/sgml/ref/create_table.sgml:1593-1606](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/ref/create_table.sgml#L1593-L1606)
Excerpt:
```text
The fillfactor for a table is a percentage between 10 and 100.
100 (complete packing) is the default. When a smaller fillfactor
is specified, <command>INSERT</command> operations pack table pages only
to the indicated percentage; the remaining space on each page is
reserved for updating rows on that page. This gives <command>UPDATE</command>
a chance to place the updated copy of a row on the same page as the
original, which is more efficient than placing it on a different
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/b1a851b2-7f6f-4325-8d97-20b57474b31c#F3
### F4 · Misleading · Factual · Default fillfactor does not leave zero opportunity for HOT
Location: Article · exact quote · [open in article](https://stormatics.tech/blogs/cutting-postgresql-wal-by-25-percent#:~:text=leaving%20zero%20room%20for%20this%20optimization.)
Article says:
```text
…leaving zero room for this optimization.
```
What is true:
Fillfactor 100 reserves no insertion space specifically for updates. HOT updates can still use available page space. doc/src/sgml/storage.sgml:1142-1147 explicitly describes HOT occurring without reducing fillfactor. Treating the default as disabling HOT can prompt unnecessary table rewrites.
So what:
Measure the existing HOT ratio before changing fillfactor or rewriting tables. Default fillfactor does not disable HOT.
Charitable reading:
The default reserves no fillfactor space. That does not mean every existing page lacks reusable space.
Review: We distinguished reserved space from available space. The default reserves none, but storage.sgml explicitly permits HOT without reducing fillfactor. We distinguished reserved space from available space. Fillfactor 100 reserves no update space, but the documentation explicitly permits HOT without reducing fillfactor.
Sources:
- [REL_18_6 · doc/src/sgml/storage.sgml:1142-1147](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/storage.sgml#L1142-L1147)
Excerpt:
```text
You can increase the likelihood of sufficient page space for
<acronym>HOT</acronym> updates by decreasing a table's <link
linkend="reloption-fillfactor"><literal>fillfactor</literal></link>. If you
don't, <acronym>HOT</acronym> updates will still happen because new rows
will naturally migrate to new pages and existing pages with sufficient free
space for new row versions. The system view <link
```
- [REL_18_6 · doc/src/sgml/ref/create_table.sgml:1593-1606](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/ref/create_table.sgml#L1593-L1606)
Excerpt:
```text
The fillfactor for a table is a percentage between 10 and 100.
100 (complete packing) is the default. When a smaller fillfactor
is specified, <command>INSERT</command> operations pack table pages only
to the indicated percentage; the remaining space on each page is
reserved for updating rows on that page. This gives <command>UPDATE</command>
a chance to place the updated copy of a row on the same page as the
original, which is more efficient than placing it on a different
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/b1a851b2-7f6f-4325-8d97-20b57474b31c#F4
### F7 · Misleading · Factual · Requested checkpoints are not exclusively volume-triggered checkpoints
Location: excerpt · section “Finding the Root Cause, Not Guessing at It” · as fetched 2026-10-21 · [open in article](https://stormatics.tech/blogs/cutting-postgresql-wal-by-25-percent#:~:text=AS%20pct_volume_based)
Article says:
```text
…AS pct_volume_based…
```
What is true:
The requested counter includes checkpoint requests beyond WAL-volume triggers. SQL CHECKPOINT calls RequestCheckpoint in src/backend/tcop/utility.c:955-956. The checkpointer counts requested checkpoints at src/backend/postmaster/checkpointer.c:438-445. The alias pct_volume_based overstates what this ratio establishes.
So what:
Label this ratio requested-checkpoint share. Check checkpoint logs before attributing every requested checkpoint to max_wal_size.
Charitable reading:
Requested checkpoints may predominantly reflect WAL volume in this workload. The counter alone cannot establish that attribution.
Review: We allowed WAL volume to dominate actual requests. SQL CHECKPOINT still supplies a counterexample to treating every requested checkpoint as volume-triggered. We allowed WAL-volume requests to dominate this workload. SQL CHECKPOINT also requests checkpoints. The counter alone cannot prove exclusive volume attribution.
Sources:
- [REL_18_6 · doc/src/sgml/monitoring.sgml:3126-3144](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/monitoring.sgml#L3126-L3144)
Excerpt:
```text
Number of requested checkpoints
```
- [REL_18_6 · src/backend/postmaster/checkpointer.c:438-445](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/postmaster/checkpointer.c#L438-L445)
Excerpt:
```text
if (chkpt_or_rstpt_requested)
{
chkpt_or_rstpt_requested = false;
if (do_restartpoint)
PendingCheckpointerStats.restartpoints_requested++;
else
PendingCheckpointerStats.num_requested++;
}
```
- [REL_18_6 · src/backend/tcop/utility.c:955-956](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/tcop/utility.c#L955-L956)
Excerpt:
```text
RequestCheckpoint(CHECKPOINT_IMMEDIATE | CHECKPOINT_WAIT |
(RecoveryInProgress() ? 0 : CHECKPOINT_FORCE));
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/b1a851b2-7f6f-4325-8d97-20b57474b31c#F7
### F2 · Imprecise · Factual · Imprecise: “…shifting the checkpoint trigger from a fixed timer to a volume-based one (max_wal_size)…”
Location: Article · exact quote · [open in article](https://stormatics.tech/blogs/cutting-postgresql-wal-by-25-percent#:~:text=shifting%20the%20checkpoint%20trigger%20from,to%20a%20volume%2Dbased%20one%20%28max_wal_size%29)
Article says:
```text
…shifting the checkpoint trigger from a fixed timer to a volume-based one (max_wal_size)…
```
What is true:
The recommendation can mean making WAL volume the dominant checkpoint trigger. It omits checkpoint_timeout, which must also be evaluated. PostgreSQL checks elapsed time independently in src/backend/postmaster/checkpointer.c:390. Increasing max_wal_size alone cannot extend an unchanged five-minute timeout.
So what:
Evaluate checkpoint_timeout together with max_wal_size. Increasing max_wal_size alone cannot extend an unchanged five-minute timeout.
Review: We tested whether shifting the dominant trigger implies increasing checkpoint_timeout. That reading works. The article omits the setting but never instructs readers to change max_wal_size alone. We considered an implied checkpoint_timeout increase. The article omits that setting. The independent timer check supports the narrower charge without disproving the projection.
Sources:
- [REL_18_6 · src/backend/postmaster/checkpointer.c:388-396](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/postmaster/checkpointer.c#L388-L396)
Excerpt:
```text
now = (pg_time_t) time(NULL);
elapsed_secs = now - last_checkpoint_time;
if (elapsed_secs >= CheckPointTimeout)
{
if (!do_checkpoint)
chkpt_or_rstpt_timed = true;
do_checkpoint = true;
flags |= CHECKPOINT_CAUSE_TIME;
}
```
- [REL_18_6 · doc/src/sgml/config.sgml:3698-3703](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/config.sgml#L3698-L3703)
Excerpt:
```text
Maximum time between automatic WAL checkpoints.
If this value is specified without units, it is taken as seconds.
The valid range is between 30 seconds and one day.
The default is five minutes (<literal>5min</literal>).
Increasing this parameter can increase the amount of time needed
for crash recovery.
```
- [REL_18_6 · doc/src/sgml/config.sgml:3795-3800](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/config.sgml#L3795-L3800)
Excerpt:
```text
Maximum size to let the WAL grow during automatic
checkpoints. This is a soft limit; WAL size can exceed
<varname>max_wal_size</varname> under special circumstances, such as
heavy load, a failing <varname>archive_command</varname> or <varname>archive_library</varname>, or a high
<varname>wal_keep_size</varname> setting.
If this value is specified without units, it is taken as megabytes.
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/b1a851b2-7f6f-4325-8d97-20b57474b31c#F2
### F6 · Imprecise · Transparent · The statistics queries require a PostgreSQL version qualifier
Location: excerpt · section “Buffer Pool Diagnostics” · as fetched 2026-10-21 · [open in article](https://stormatics.tech/blogs/cutting-postgresql-wal-by-25-percent#:~:text=SELECT%20buffers_clean%2C%20buffers_backend%2C%20buffers_checkpoint%2C)
Article says:
```text
…SELECT buffers_clean, buffers_backend, buffers_checkpoint,…
```
What is true:
PostgreSQL 16.4 exposes these checkpoint and backend-write counters in pg_stat_bgwriter. PostgreSQL 18.6 does not. Its view has four columns, and checkpoint counts reside in pg_stat_checkpointer. See src/backend/catalog/system_views.sql:1150-1160. Without a version qualifier, copying either diagnostic can produce a missing-column error.
So what:
Check the server version before copying these diagnostics. On PostgreSQL 18.6, use pg_stat_checkpointer for checkpoint counters and inspect the current I/O statistics layout.
Charitable reading:
The production server may use PostgreSQL 16.4, where these columns exist. The article does not identify its server version.
Review: We checked PostgreSQL 16.4 as a possible production version. Its columns exist. The finding correctly limits the defect to missing version guidance. We checked both releases. PostgreSQL 16.4 supports the displayed columns. PostgreSQL 18.6 does not. The finding correctly limits its charge to missing version guidance.
Sources:
- [REL_18_6 · src/backend/catalog/system_views.sql:1150-1170](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/catalog/system_views.sql#L1150-L1170)
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;
CREATE VIEW pg_stat_checkpointer AS
SELECT
pg_stat_get_checkpointer_num_timed() AS num_timed,
pg_stat_get_checkpointer_num_requested() AS num_requested,
```
- [REL_16_4 · src/backend/catalog/system_views.sql:1108-1120](https://github.com/postgres/postgres/blob/2caa85f4aae689e6f6721d7363b4c66a2a6417d6/src/backend/catalog/system_views.sql#L1108-L1120)
Qualification: Version note: Comparison release. The article does not identify its server version.
Excerpt:
```text
CREATE VIEW pg_stat_bgwriter AS
SELECT
pg_stat_get_bgwriter_timed_checkpoints() AS checkpoints_timed,
pg_stat_get_bgwriter_requested_checkpoints() AS checkpoints_req,
pg_stat_get_checkpoint_write_time() AS checkpoint_write_time,
pg_stat_get_checkpoint_sync_time() AS checkpoint_sync_time,
pg_stat_get_bgwriter_buf_written_checkpoints() AS buffers_checkpoint,
pg_stat_get_bgwriter_buf_written_clean() AS buffers_clean,
pg_stat_get_bgwriter_maxwritten_clean() AS maxwritten_clean,
pg_stat_get_buf_written_backend() AS buffers_backend,
pg_stat_get_buf_fsync_backend() AS buffers_backend_fsync,
pg_stat_get_buf_alloc() AS buffers_alloc,
pg_stat_get_bgwriter_stat_reset_time() AS stats_reset;
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/b1a851b2-7f6f-4325-8d97-20b57474b31c#F6
### F17 · Imprecise · Factual · Imprecise: “…checkpoints would fire based on how much data had genuinely changed, not on a clock…”
Location: Article · exact quote · [open in article](https://stormatics.tech/blogs/cutting-postgresql-wal-by-25-percent#:~:text=checkpoints%20would%20fire%20based%20on,changed%2C%20not%20on%20a%20clock)
Article says:
```text
…checkpoints would fire based on how much data had genuinely changed, not on a clock…
```
What is true:
Volume-triggered checkpoints can dominate while the timer remains active. The article omits the checkpoint_timeout setting needed to explain longer timer intervals. src/backend/postmaster/checkpointer.c:390 checks elapsed time independently. Changing max_wal_size alone leaves an unchanged five-minute timeout in force.
So what:
Set checkpoint_timeout explicitly alongside max_wal_size, then verify the resulting checkpoint intervals.
Review: We tested the dominant-trigger reading. It permits both triggers to remain active. The supported defect is omission of checkpoint_timeout, not proof of a false tuning plan. We considered volume-trigger dominance rather than removal of the timer. The article still omits checkpoint_timeout. The source retains its independent timeout check. This repeats F2.
Sources:
- [REL_18_6 · src/backend/postmaster/checkpointer.c:380-396](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/postmaster/checkpointer.c#L380-L396)
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/b1a851b2-7f6f-4325-8d97-20b57474b31c#F17
## Verified accurate claims (11)
### F8 · Accurate · Factual · bgwriter_lru_maxpages caps background-writer writes per round
Location: Article · exact quote · [open in article](https://stormatics.tech/blogs/cutting-postgresql-wal-by-25-percent#:~:text=bgwriter_lru_maxpages%20%2C%20the%20setting%20controlling,writer%20can%20clean%20per%20cycle)
Article says:
```text
…bgwriter_lru_maxpages , the setting controlling how many pages the background writer can clean per cycle…
```
What is true:
The parameter caps buffers written during each background-writer round. Its default is 100 buffers. It does not control checkpoint writes. src/backend/storage/buffer/bufmgr.c:3878-3882 stops the scan when the write count reaches the cap.
Charitable reading:
Clean per cycle means buffers written during one background-writer round.
Review: We checked whether the setting guarantees throughput or controls checkpoint writes. The finding correctly describes only the per-round background-writer maximum. We checked whether the setting guarantees throughput or controls checkpoints. It caps background-writer writes per round. The finding excludes the unverified production recommendation.
Sources:
- [REL_18_6 · doc/src/sgml/config.sgml:2565-2582](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/config.sgml#L2565-L2582)
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_6 · src/backend/storage/buffer/bufmgr.c:3878-3882](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/storage/buffer/bufmgr.c#L3878-L3882)
Excerpt:
```text
if (++num_written >= bgwriter_lru_maxpages)
{
PendingBgWriterStats.maxwritten_clean++;
break;
}
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/b1a851b2-7f6f-4325-8d97-20b57474b31c#F8
### F9 · Accurate · Factual · Reducing the vacuum scale factor lowers the size-dependent threshold
Location: Article · exact quote · [open in article](https://stormatics.tech/blogs/cutting-postgresql-wal-by-25-percent#:~:text=We%20tightened%20the%20autovacuum_vacuum_scale_factor%20on%20both)
Article says:
```text
We tightened the autovacuum_vacuum_scale_factor on both…
```
What is true:
autovacuum_vacuum_scale_factor contributes table size multiplied by the scale factor to the vacuum threshold. Reducing it can trigger vacuum sooner. src/backend/postmaster/autovacuum.c:3100-3142 computes that threshold and applies its maximum. This mechanism does not independently verify the reported improvement.
Charitable reading:
Tightened means reduced the per-table scale factor.
Review: We checked the maximum-threshold exception. The finding acknowledges the maximum and says vacuum can start sooner. It does not certify production results. We checked the maximum-threshold exception. The finding includes it and says a smaller scale factor can trigger vacuum sooner. It does not certify measured improvements.
Sources:
- [REL_18_6 · doc/src/sgml/config.sgml:9122-9141](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/config.sgml#L9122-L9141)
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_6 · src/backend/postmaster/autovacuum.c:3100-3142](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/postmaster/autovacuum.c#L3100-L3142)
Excerpt:
```text
vacthresh = (float4) vac_base_thresh + vac_scale_factor * reltuples;
if (vac_max_thresh >= 0 && vacthresh > (float4) vac_max_thresh)
vacthresh = (float4) vac_max_thresh;
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/b1a851b2-7f6f-4325-8d97-20b57474b31c#F9
### F10 · Accurate · Factual · The table-statistics formulas use the expected counters
Location: Article · exact quote · [open in article](https://stormatics.tech/blogs/cutting-postgresql-wal-by-25-percent#:~:text=HOT%2Dupdate%20ratio%2C%20checked%20before%20and%20after%20applying%20fillfactor%3A)
Article says:
```text
HOT-update ratio, checked before and after applying fillfactor:…
```
What is true:
pg_stat_user_tables exposes HOT-update, total-update, live-tuple and dead-tuple statistics. The HOT formula divides HOT updates by total updates. The dead-tuple formula divides dead tuples by live plus dead tuples. src/backend/catalog/system_views.sql:692-697 defines those columns. NULLIF handles zero denominators.
Charitable reading:
The query measures the cumulative HOT fraction in the displayed counters.
Review: We distinguished correct formulas from successful table selection and before-and-after measurement. The finding validates only the formulas and exposed counters. We checked the counter definitions and NULLIF behavior. The formulas match their stated ratios. The finding does not validate selected tables or before-and-after measurements.
Sources:
- [REL_18_6 · src/backend/catalog/system_views.sql:692-697](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/catalog/system_views.sql#L692-L697)
Excerpt:
```text
pg_stat_get_tuples_updated(C.oid) AS n_tup_upd,
pg_stat_get_tuples_deleted(C.oid) AS n_tup_del,
pg_stat_get_tuples_hot_updated(C.oid) AS n_tup_hot_upd,
pg_stat_get_tuples_newpage_updated(C.oid) AS n_tup_newpage_upd,
pg_stat_get_live_tuples(C.oid) AS n_live_tup,
pg_stat_get_dead_tuples(C.oid) AS n_dead_tup,
```
- [REL_18_6 · src/backend/catalog/system_views.sql:749-752](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/catalog/system_views.sql#L749-L752)
Excerpt:
```text
CREATE VIEW pg_stat_user_tables AS
SELECT * FROM pg_stat_all_tables
WHERE schemaname NOT IN ('pg_catalog', 'information_schema') AND
schemaname !~ '^pg_toast';
```
- [REL_18_6 · doc/src/sgml/func.sgml:20211-20218](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/func.sgml#L20211-L20218)
Excerpt:
```text
The <function>NULLIF</function> function returns a null value if
<replaceable>value1</replaceable> equals <replaceable>value2</replaceable>;
otherwise it returns <replaceable>value1</replaceable>.
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/b1a851b2-7f6f-4325-8d97-20b57474b31c#F10
### F11 · Accurate · Factual · The index-size expression measures and formats the main fork
Location: Article · exact quote · [open in article](https://stormatics.tech/blogs/cutting-postgresql-wal-by-25-percent#:~:text=pg_size_pretty%28pg_relation_size%28indexrelid%29%29%20AS%20index_size)
Article says:
```text
…pg_size_pretty(pg_relation_size(indexrelid)) AS index_size…
```
What is true:
pg_relation_size(indexrelid) returns the index's main-fork size in bytes. pg_size_pretty formats that count with binary-based units. doc/src/sgml/func.sgml:30146-30190 and 30209-30227 define both operations.
Charitable reading:
Index size means the main data fork measured by the one-argument function.
Review: We checked auxiliary forks and decimal units. The finding expressly limits size to the main fork and correctly identifies binary-based formatting. We checked main-fork scope and binary units. Both match the finding. It does not certify the reported 140 GB index size.
Sources:
- [REL_18_6 · doc/src/sgml/func.sgml:30209-30227](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/func.sgml#L30209-L30227)
Excerpt:
```text
Converts a size in bytes into a more easily human-readable format with
size units (bytes, kB, MB, GB, TB, or PB as appropriate). Note that the
units are powers of 2 rather than powers of 10, so 1kB is 1024 bytes,
```
- [REL_18_6 · doc/src/sgml/func.sgml:30146-30190](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/func.sgml#L30146-L30190)
Excerpt:
```text
forks.) With one argument, this returns the size of the main data
fork of the relation. The second argument can be provided to specify
which fork to examine:
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/b1a851b2-7f6f-4325-8d97-20b57474b31c#F11
### F12 · Accurate · Factual · pg_stat_user_indexes supplies the displayed index identities and scan counts
Location: Article · exact quote · [open in article](https://stormatics.tech/blogs/cutting-postgresql-wal-by-25-percent#:~:text=FROM%20pg_stat_user_indexes)
Article says:
```text
…FROM pg_stat_user_indexes…
```
What is true:
pg_stat_user_indexes selects user-index rows from pg_stat_all_indexes. indexrelid identifies the index, indexrelname names it, and idx_scan reports recorded scans. src/backend/catalog/system_views.sql:803-810 defines these fields. The query supports investigation without establishing that removal is safe.
Charitable reading:
The scan query identifies a candidate for investigation. The article explicitly defers dropping it.
Review: We tested whether scan counts prove safe removal. The finding rejects that inference and accurately identifies the view's fields. We checked whether the finding endorses dropping the index. It verifies only the view fields and preserves the article's decision to investigate further.
Sources:
- [REL_18_6 · src/backend/catalog/system_views.sql:803-828](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/catalog/system_views.sql#L803-L828)
Excerpt:
```text
CREATE VIEW pg_stat_all_indexes AS
SELECT
C.oid AS relid,
I.oid AS indexrelid,
N.nspname AS schemaname,
C.relname AS relname,
I.relname AS indexrelname,
pg_stat_get_numscans(I.oid) AS idx_scan,
```
- [REL_18_6 · src/backend/catalog/system_views.sql:825-828](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/catalog/system_views.sql#L825-L828)
Excerpt:
```text
CREATE VIEW pg_stat_user_indexes AS
SELECT * FROM pg_stat_all_indexes
WHERE schemaname NOT IN ('pg_catalog', 'information_schema') AND
schemaname !~ '^pg_toast';
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/b1a851b2-7f6f-4325-8d97-20b57474b31c#F12
### F13 · Accurate · Factual · pg_stat_replication lists directly connected WAL senders
Location: Article · exact quote · [open in article](https://stormatics.tech/blogs/cutting-postgresql-wal-by-25-percent#:~:text=SELECT%20client_addr%2C%20application_name%2C%20state%2C%20sync_state%20FROM%20pg_stat_replication%3B)
Article says:
```text
…SELECT client_addr, application_name, state, sync_state FROM pg_stat_replication;…
```
What is true:
pg_stat_replication exposes one row per WAL sender and includes the selected connection fields. application_name labels the connection. doc/src/sgml/monitoring.sgml:1175-1254 limits this view to directly connected standbys. It does not list downstream standbys.
Charitable reading:
The query inspects current direct replication connections. The article keeps the usage discrepancy unresolved.
Review: We checked downstream and disconnected replicas as counterexamples. The finding limits visibility to current direct WAL-sender connections. We checked downstream-standby visibility and the selected fields. The finding states the direct-connection limit and does not claim this query establishes complete topology.
Sources:
- [REL_18_6 · doc/src/sgml/monitoring.sgml:1175-1254](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/monitoring.sgml#L1175-L1254)
Excerpt:
```text
The <structname>pg_stat_replication</structname> view will contain one row
per WAL sender process, showing statistics about replication to that
sender's connected standby server. Only directly connected standbys are
listed; no information is available about downstream standby servers.
```
- [REL_18_6 · src/backend/catalog/system_views.sql:906-930](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/catalog/system_views.sql#L906-L930)
Excerpt:
```text
S.application_name,
S.client_addr,
S.client_hostname,
S.client_port,
S.backend_start,
S.backend_xmin,
W.state,
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/b1a851b2-7f6f-4325-8d97-20b57474b31c#F13
### F14 · Accurate · Factual · Checkpoint intervals affect repeated full-page-image generation
Location: excerpt · section “Finding the Root Cause, Not Guessing at It” · as fetched 2026-10-21 · [open in article](https://stormatics.tech/blogs/cutting-postgresql-wal-by-25-percent#:~:text=Every%20checkpoint%20reset%20that%20%E2%80%9Cinsurance%20copy%E2%80%9D%20mechanism)
Article says:
```text
Every checkpoint reset that “insurance copy” mechanism…
```
What is true:
With full_page_writes enabled, PostgreSQL logs a page image on its first modification after a checkpoint. doc/src/sgml/config.sgml:3386-3408 documents this rule. Longer checkpoint intervals can reduce repeated images of busy pages. The mechanism does not establish a particular percentage saving.
Charitable reading:
The statement describes ordinary logged modifications with full_page_writes enabled.
Review: We tested read-only page access and disabled full_page_writes. The finding states the enabled-setting condition and refers to modifications. We read touched as modified and checked the full_page_writes condition. The finding states that condition and avoids validating a particular savings percentage.
Sources:
- [REL_18_6 · doc/src/sgml/config.sgml:3386-3408](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/config.sgml#L3386-L3408)
Excerpt:
```text
When this parameter is on, the <productname>PostgreSQL</productname> server
writes the entire content of each disk page to WAL during the
first modification of that page after a checkpoint.
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/b1a851b2-7f6f-4325-8d97-20b57474b31c#F14
### F15 · Accurate · Factual · The default table fillfactor is 100
Location: Article · exact quote · [open in article](https://stormatics.tech/blogs/cutting-postgresql-wal-by-25-percent#:~:text=By%20default%2C%20PostgreSQL%20packs%20pages%20completely%20full)
Article says:
```text
By default, PostgreSQL packs pages completely full…
```
What is true:
Table fillfactor defaults to 100. Lower values reserve part of each page during insertion for future updated row versions. doc/src/sgml/ref/create_table.sgml:1593-1606 documents this behavior.
Charitable reading:
Complete packing describes the insertion target rather than a guarantee that every page has zero free bytes.
Review: We tested whether complete packing guarantees zero free bytes. The finding instead validates the documented default and insertion reservation behavior. We distinguished insertion packing from permanent page occupancy. The finding accurately verifies the default value and reserved-space behavior.
Sources:
- [REL_18_6 · doc/src/sgml/ref/create_table.sgml:1593-1606](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/ref/create_table.sgml#L1593-L1606)
Excerpt:
```text
The fillfactor for a table is a percentage between 10 and 100.
100 (complete packing) is the default. When a smaller fillfactor
is specified, <command>INSERT</command> operations pack table pages only
to the indicated percentage; the remaining space on each page is
reserved for updating rows on that page. This gives <command>UPDATE</command>
a chance to place the updated copy of a row on the same page as the
original, which is more efficient than placing it on a different
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/b1a851b2-7f6f-4325-8d97-20b57474b31c#F15
### F19 · Accurate · Factual · Longer checkpoint intervals can increase crash-recovery work
Location: Article · exact quote · [open in article](https://stormatics.tech/blogs/cutting-postgresql-wal-by-25-percent#:~:text=longer%20checkpoint%20intervals%20mean%20more,if%20the%20database%20ever%20crashes)
Article says:
```text
…longer checkpoint intervals mean more WAL to replay if the database ever crashes…
```
What is true:
More frequent checkpoints reduce work required after a crash. PostgreSQL 18.6 documents this tradeoff in doc/src/sgml/wal.sgml:536. Extending intervals can increase recovery work.
Charitable reading:
The statement describes potential crash-recovery work, rather than a fixed recovery-time increase.
Review: We tested whether every longer interval guarantees more recovery work. The finding uses can and matches the documented tradeoff. We checked whether the finding promises a fixed recovery-time increase. It states only that longer intervals can increase recovery work, consistent with the documentation.
Sources:
- [REL_18_6 · doc/src/sgml/wal.sgml:536-545](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/wal.sgml#L536-L545)
Excerpt:
```text
Reducing <varname>checkpoint_timeout</varname> and/or
<varname>max_wal_size</varname> causes checkpoints to occur
more often. This allows faster after-crash recovery, since less work
will need to be redone.
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/b1a851b2-7f6f-4325-8d97-20b57474b31c#F19
### F20 · Accurate · Factual · bgwriter_lru_maxpages limits buffers written per round
Location: Article · exact quote · [open in article](https://stormatics.tech/blogs/cutting-postgresql-wal-by-25-percent#:~:text=the%20setting%20controlling%20how%20many,writer%20can%20clean%20per%20cycle)
Article says:
```text
…the setting controlling how many pages the background writer can clean per cycle…
```
What is true:
bgwriter_lru_maxpages sets the background writer's maximum buffers per round. PostgreSQL 18.6 documents that limit in doc/src/sgml/config.sgml:2573.
Charitable reading:
The sentence describes a per-cycle maximum, rather than guaranteed cleaning throughput.
Review: We tested guaranteed cleaning throughput as an alternative interpretation. The finding correctly validates only the maximum buffers written per round. We checked maximum versus guaranteed writes. The finding accurately states a per-round maximum. It repeats the definition verified in F8.
Sources:
- [REL_18_6 · doc/src/sgml/config.sgml:2572-2578](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/config.sgml#L2572-L2578)
Excerpt:
```text
In each round, no more than this many buffers will be written
by the background writer.
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/b1a851b2-7f6f-4325-8d97-20b57474b31c#F20
### F21 · Accurate · Factual · Full-page images protect data-page consistency
Location: excerpt · section “Finding the Root Cause, Not Guessing at It” · as fetched 2026-10-21 · [open in article](https://stormatics.tech/blogs/cutting-postgresql-wal-by-25-percent#:~:text=This%20is%20normal%2C%20necessary%20behavior.)
Article says:
```text
This is normal, necessary behavior.
```
What is true:
With full_page_writes enabled, PostgreSQL logs the first page modification after each checkpoint as a full-page image. PostgreSQL 18.6 documents its consistency purpose in doc/src/sgml/wal.sgml:541.
Charitable reading:
The statement describes the active full-page-write configuration, rather than every possible PostgreSQL configuration.
Review: We tested configurations without full-page writes. The finding states the enabled-setting condition and limits verification to the consistency mechanism. We checked whether the finding universalizes an optional configuration. It explicitly conditions the mechanism on full_page_writes. The consistency explanation matches the documentation.
Sources:
- [REL_18_6 · doc/src/sgml/wal.sgml:536-545](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/wal.sgml#L536-L545)
Excerpt:
```text
<xref linkend="guc-full-page-writes"/> is set (as is the default), there is
another factor to consider. To ensure data page consistency,
the first modification of a data page after each checkpoint results in
logging the entire page content.
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/b1a851b2-7f6f-4325-8d97-20b57474b31c#F21
## Notes (not graded) (3)
### F22 · Note · · Note: “…"username" = $1, "location" = $2…”
Location: excerpt · section “Buffer Pool Diagnostics” · as fetched 2026-10-21 · [open in article](https://stormatics.tech/blogs/cutting-postgresql-wal-by-25-percent#:~:text=%22username%22%20%3D%20%241%2C%20%22location%22%20%3D%20%242)
Article says:
```text
…"username" = $1, "location" = $2…
```
What is true:
The example assigns username and location while filtering on type. PostgreSQL permits that conditional UPDATE. The two SQL fragments contain no arithmetic contradiction. Their mismatch with the stated no-op purpose repeats F1 and F16. See doc/src/sgml/ref/update.sgml:41-44.
So what:
Replace the type-array predicate with distinctness checks for username against $1 and location against $2, joined with OR.
Explanation: Not graded: no reader would act differently on it.
Review: The SQL fragments do not contradict each other. UPDATE permits predicates on unassigned columns. The misleading no-op explanation survives under F1 and F16, not as an independent arithmetic charge. We compared the assignment and predicate directly and checked UPDATE semantics. The mismatch survives, but repeats F1 and F16.
Sources:
- [REL_18_6 · doc/src/sgml/ref/update.sgml:37-44](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/ref/update.sgml#L37-L44)
Excerpt:
```text
<command>UPDATE</command> changes the values of the specified
columns in all rows that satisfy the condition.
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/b1a851b2-7f6f-4325-8d97-20b57474b31c#F22
### F23 · Note · · Note: “…double digit percentages of live rows…”
Location: Article · exact quote · [open in article](https://stormatics.tech/blogs/cutting-postgresql-wal-by-25-percent#:~:text=double%20digit%20percentages%20of%20live%20rows)
Article says:
```text
…double digit percentages of live rows…
```
What is true:
The prose uses live tuples as its denominator. The SQL uses live plus dead tuples. Both ratios can be double digits for the same table. With 10 dead tuples and 100 live tuples, the ratios are 10% and 9.09%. No supplied tuple counts establish an incorrect reported result.
So what:
Use dead tuples divided by live plus dead tuples consistently when comparing the reported dead_pct measurements.
Explanation: Not graded: no reader would act differently on it.
Explanation: Checked for internal consistency: the evidence is the article itself.
Review: We tested whether both percentages could be double digits. They can. Different definitions establish neither contradictory measurements nor the claimed wasted-work consequence. We checked whether both percentages can describe the same table. They can. The denominator distinction is real, but no counts establish an inconsistent comparison or wasted work.
Finding URL: https://pgtrue.postgres.ai/shared/brief/b1a851b2-7f6f-4325-8d97-20b57474b31c#F23
### F24 · Note · · The FPI query calculates an image-to-record count ratio
Location: excerpt · section “Finding the Root Cause, Not Guessing at It” · as fetched 2026-10-21 · [open in article](https://stormatics.tech/blogs/cutting-postgresql-wal-by-25-percent#:~:text=Full%2Dpage%20image%20share%20of%20total%20WAL%3A)
Article says:
```text
…Full-page image share of total WAL:…
```
What is true:
The query divides wal_fpi by wal_records. REL_18_6 monitoring.sgml:3275–3296 defines those fields as image and record counts. It defines wal_bytes separately. A reported ratio of 39% means 39 images per 100 records, not a measured FPI byte share.
Charitable reading:
The SQL alias identifies records, and the following prose also refers to records. We do not charge a false byte-percentage claim.
Explanation: Not graded: no reader would act differently on it.
Review: We checked the nearby record-based alias before interpreting the heading as a byte claim. The note correctly distinguishes counts from bytes without charging that stronger claim. We checked the following prose for an explicit byte-percentage claim. It refers to records. The note correctly distinguishes count ratios from byte shares without adding that charge.
Sources:
- [REL_18_6 · doc/src/sgml/monitoring.sgml:3275-3296](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/monitoring.sgml#L3275-L3296)
Excerpt:
```text
<structfield>wal_records</structfield> <type>bigint</type>
</para>
<para>
Total number of WAL records generated
</para></entry>
</row>
<row>
<entry role="catalog_table_entry"><para role="column_definition">
<structfield>wal_fpi</structfield> <type>bigint</type>
</para>
<para>
Total number of WAL full page images generated
</para></entry>
</row>
<row>
<entry role="catalog_table_entry"><para role="column_definition">
<structfield>wal_bytes</structfield> <type>numeric</type>
</para>
<para>
Total amount of WAL generated in bytes
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/b1a851b2-7f6f-4325-8d97-20b57474b31c#F24
## Withdrawn findings (0)
None.
## Section checks
- WAL and checkpoints · B · 1 inaccuracy · 1 misleading · 3 imprecise · 3 verified-accurate · 100% of claims (18 of 18, plus 6 that need data we do not have)
- Autovacuum · A · 1 verified-accurate · 100% of claims (9 of 9, plus 2 that need data we do not have)
- Fillfactor and HOT · B+ · 2 misleading · 2 verified-accurate · 100% of claims (8 of 8, plus 3 that need data we do not have)
- Background writer · A · 2 verified-accurate · 100% of claims (6 of 6, plus 3 that need data we do not have)
- Application updates · D · 2 dangerous-recipe · 100% of claims (11 of 11, plus 6 that need data we do not have)
- Index investigation · A · 3 verified-accurate · 100% of claims (8 of 8, plus 7 that need data we do not have)
## Claim coverage
- Introduction: 12 claims are the author's own account; nothing checkable; not counted: 2 product or opinion, 2 not a claim
- Starting point: 4 claims are the author's own account; nothing checkable; not counted: 6 product or opinion, 1 duplicate, 5 not a claim
- WAL and checkpoints: 18 of 18 Postgres claims checked, plus 6 that need data we do not have; not counted: 2 product or opinion, 2 duplicate, 1 not a claim
- Other interventions: no checkable claims; not counted: 2 product or opinion, 1 not a claim
- Autovacuum: 9 of 9 Postgres claims checked, plus 2 that need data we do not have; not counted: 1 product or opinion, 1 duplicate, 1 not a claim
- Fillfactor and HOT: 8 of 8 Postgres claims checked, plus 3 that need data we do not have; not counted: 3 duplicate, 1 not a claim
- Background writer: 6 of 6 Postgres claims checked, plus 3 that need data we do not have; not counted: 2 duplicate, 3 not a claim
- Application updates: 11 of 11 Postgres claims checked, plus 6 that need data we do not have; not counted: 1 product or opinion, 2 not a claim
- Index investigation: 8 of 8 Postgres claims checked, plus 7 that need data we do not have; not counted: 4 product or opinion, 1 not a claim
- CDC correction: 3 claims are the author's own account; nothing checkable; not counted: 4 product or opinion, 1 not a claim
- Conclusion: no checkable claims; not counted: 3 product or opinion, 4 duplicate, 2 not a claim
## What we did not check
- We did not verify the 25.25% WAL projection, the 61% backend-write measurement, or the reported HOT and dead-tuple improvements.
- We did not inspect the customer's query logs, index dependencies, or replication topology.
- We did not reproduce the measurements the article displays.
- We did not verify the 25.25% projection, production measurements, or application query logs.
- We did not verify the 140 GB index's usage, the customer's replication topology, or the CDC records.
- We did not establish which PostgreSQL version the production instance ran.
- We did not check release changes between August 14 and October 21, 2026.
- We did not verify the 25.25% projection without its workload-normalized comparison data.
- We could not recalculate the reported percentages, daily WAL volume, or index measurements because the SQL examples contain no result rows.
- We did not reproduce the measurements the article describes.
- Factual: we did not complete every applicable check.
- Safe: we did not complete every applicable check.
- We could not decide whether readers can obtain the benchmark environment.
- We could not decide whether the published benchmark details are complete.
- We could not decide whether the article depends on finding F5.
## Notes
- C+ — the findings address the article's main subject. What we did not check is listed below. We checked the checkpoint controls, HOT conditions, vacuum threshold, and application SQL that underpin the article’s WAL recommendations.
- We did not check everything in this article. What we did not check is listed below, in the words we recorded at the time. None of it moved the letter. We never charge our own limits to the article.
- Average of 5 axes: 2.6 · benchmark not reproducible, one step off (no hardware) · result C+
- 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_6 at commit 724edf9bde9d356724ad384a2e196edc3c9f80f7 (pinned target); github.com/cloudnative-pg/cloudnative-pg v1.30.0 at commit 4b5e244a7d031f67e025c83c1555e7726ecbbfa1 (pinned target); https://resources.stormatics.tech/benchmark-study-on-replication-lag-in-postgresql (fetched 2026-10-21T05:01:30.792466Z); https://stormatics.tech/ (fetched 2026-10-21T05:01:31.927096Z); https://stormatics.tech/author/uche-nnodim (fetched 2026-10-21T05:01:26.035329Z); https://stormatics.tech/blogs/choosing-the-right-postgresql-partition-key (fetched 2026-10-21T05:01:34.837797Z); https://stormatics.tech/blogs/run-postgresql-on-kubernetes-with-cloudnativepg (fetched 2026-10-21T05:01:37.879872Z); https://stormatics.tech/category/blogs (fetched 2026-10-21T05:01:27.005218Z); https://stormatics.tech/category/uches-planet-postgresql (fetched 2026-10-21T05:01:29.963447Z).
- Article captured 2026-10-21T05:01:05.539949Z · SHA-256 d2e1129f8bc8f076da2fb774d80529582fc1aacfd960198ecbef17ba9d1a382d · Text extracted from the article's HTML.
- Policy SHA-256 65f2655fb589baee3fbf04c0db39a760699f4c5c4472c10e9dc913894d7339a1 · Grading rules SHA-256 6fb334e79d6b9e7ed81d3238cc10d9de602ff87ed65ff2fa781f53bac5798765.
- We did not verify the projected 25.25% WAL reduction or the reported backend-write, HOT-update, and dead-tuple improvements.
- We did not reproduce the measurements the article describes. The SQL examples contain no result rows for recalculating those measurements.
- We did not inspect the customer’s query logs, index dependencies, replication topology, or change-data-capture records.
- We checked PostgreSQL 18.6 and compared the statistics-view definitions with PostgreSQL 16.4. The article does not identify its production server version.
- We did not check release changes between August 14 and October 21, 2026.
- The article gives August 14, 2026 without a publication time. We list that date at midnight UTC.
- source: the article names no postgres release, so it was read at REL_18_6, the latest release when it was published
- source: the article names no cloudnative-pg release, so it was read at v1.30.0, the latest release when it was published
- 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.
- 2 passages in this edition fell short of our own plain-English rules.
- Built from the article text captured above, 2 pinned source trees, and 7 fetched pages.
- 20 survived · 4 weakened · 0 withdrawn.
## Revision history
- [Revision 1](https://pgtrue.postgres.ai/shared/brief/b1a851b2-7f6f-4325-8d97-20b57474b31c?v=20) · 2026-09-27 04:20 UTC · D · audit version not recorded · regrade version not recorded
Article as first submitted. 3 accurate · 5 wrong · 2 caveats.
ElephantSeal: D.
Changes: First audit. Open: F3 “The WAL ratio counts images per record, not records containing images” (false); F8 “The no-op guard tests type instead of the updated columns” (false); F1 “The no-op guard compares columns the UPDATE does not change” (dangerous); F2 “Free page space alone does not permit HOT updates” (misleading); F4 “Requested checkpoints are not exclusively volume-triggered checkpoints” (misleading); F7 “The checkpoint query omits its PostgreSQL version restriction” (mostly accurate); F9 “…dead-tuple accumulation had crept into double digit percentages of live rows…” (mostly accurate).
- [Revision 2](https://pgtrue.postgres.ai/shared/brief/b1a851b2-7f6f-4325-8d97-20b57474b31c?v=24) · 2026-10-19 06:48 UTC · C · audited with v1.0.14 (approx.)
Same article text, re-audited. 5 accurate · 9 wrong · 1 caveat.
ElephantSeal: C.
Changes: No longer reported: “The WAL ratio counts images per record, not records containing images”; “The no-op guard tests type instead of the updated columns”; “The no-op guard compares columns the UPDATE does not change”; “Requested checkpoints are not exclusively volume-triggered checkpoints”; “The checkpoint query omits its PostgreSQL version restriction”; “…dead-tuple accumulation had crept into double digit percentages of live rows…”. New: F5 “Default fillfactor does not prevent HOT updates” (false); F1 “The no-op guard can skip legitimate updates” (dangerous); F16 “The no-op guard compares columns the UPDATE does not assign” (dangerous); F2 “max_wal_size does not replace the checkpoint timer” (misleading); F3 “The FPI ratio is not a percentage of WAL records” (misleading); F7 “Requested checkpoints are not exclusively volume-triggered” (misleading); F8 “The backend-write counter does not isolate live application queries” (misleading); F12 “The background-writer query omits its PostgreSQL 16 ceiling” (misleading); F17 “The HOT diagnostic filters different tables from the reported results” (mostly accurate).
- [Revision 3](https://pgtrue.postgres.ai/shared/brief/b1a851b2-7f6f-4325-8d97-20b57474b31c?v=25) · 2026-10-19 06:48 UTC · C+ · audited with v1.0.14 (approx.)
Same article text, re-audited. 5 accurate · 9 wrong · 1 caveat.
ElephantSeal: C+.
Changes: No change in findings.
- [Revision 4](https://pgtrue.postgres.ai/shared/brief/b1a851b2-7f6f-4325-8d97-20b57474b31c?v=27) · 2026-10-19 21:30 UTC · C+ · audited with v1.0.16 (approx.)
Same article text, re-audited. 7 accurate · 6 wrong · 2 caveats.
ElephantSeal: C+.
Changes: No longer reported: “Default fillfactor does not prevent HOT updates”; “The no-op guard compares columns the UPDATE does not assign”; “max_wal_size does not replace the checkpoint timer”; “Requested checkpoints are not exclusively volume-triggered”; “The backend-write counter does not isolate live application queries”; “The background-writer query omits its PostgreSQL 16 ceiling”; “The HOT diagnostic filters different tables from the reported results”. New: F4 “buffers_backend does not isolate live application queries” (misleading); F7 “The printed table filters miss ordinary relation names” (misleading); F8 “Requested checkpoints are not exclusively volume-triggered checkpoints” (misleading); F2 “…so checkpoints would fire based on how much data had genuinely changed, not on a clock.” (mostly accurate); F6 “…leaving zero room for this optimization.” (mostly accurate).
- [Revision 5](https://pgtrue.postgres.ai/shared/brief/b1a851b2-7f6f-4325-8d97-20b57474b31c?v=30) · this page · 2026-10-21 05:01 UTC · C+ · audited with v1.0.17 (approx.) · regraded with v1.1.3
Same article text, re-audited. 11 accurate · 6 wrong · 3 caveats.
ElephantSeal: C+. Open: the benchmark cannot yet be rerun from what is published; the production risk is not yet fixed or warned about.
Changes: No longer reported: “The no-op guard can suppress valid updates”; “wal_fpi counts images rather than records containing images”; “buffers_backend does not isolate live application queries”; “Free page space alone does not enable HOT”; “The printed table filters miss ordinary relation names”; “…so checkpoints would fire based on how much data had genuinely changed, not on a clock.”; “…leaving zero room for this optimization.”. New: F5 “wal_fpi divided by wal_records is not a percentage of records containing images” (false); F1 “The no-op guard compares columns the UPDATE does not assign” (dangerous); F16 “The no-op guard compares a column the UPDATE does not assign” (dangerous); F3 “Free page space alone does not permit HOT updates” (misleading); F4 “Default fillfactor does not leave zero opportunity for HOT” (misleading); F2 “…shifting the checkpoint trigger from a fixed timer to a volume-based one (max_wal_size)…” (mostly accurate); F6 “The statistics queries require a PostgreSQL version qualifier” (mostly accurate); F17 “…checkpoints would fire based on how much data had genuinely changed, not on a clock…” (mostly accurate).