From 103906b15aff89c367abfbfb35863bc6df23f307 Mon Sep 17 00:00:00 2001
From: Tomas Vondra <tomas@vondra.me>
Date: Sat, 21 Nov 2026 17:02:23 +0100
Subject: [PATCH v6 1/2] Mention checkpoints in online data checksums docs

Mention checkpoints in the docs discussion impact of online data
checksums changes on the system. Checkpoints (especially fast ones) are
a major source of write activity, and can be rather disruptive.

Author: Tomas Vondra <tomas@vondra.me>
Discussion: https://postgr.es/m/37745926-4213-49a3-b628-4136e9e49f9b@vondra.me
---
 doc/src/sgml/wal.sgml | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/doc/src/sgml/wal.sgml b/doc/src/sgml/wal.sgml
index 1adafaf6176..9af09d06a86 100644
--- a/doc/src/sgml/wal.sgml
+++ b/doc/src/sgml/wal.sgml
@@ -399,12 +399,19 @@
      parameters of the <function>pg_enable_data_checksums()</function> function.
     </para>
 
+    <para>
+      Checkpoints have to be performed at certain points - both when enabling
+      and disabling data checksums, which may generate of lot of writes due to
+      flushing dirty pages.
+    </para>
+
     <para>
      <itemizedlist>
       <listitem><para>
        I/O: all pages need to have data checksums calculated and written which
        will generate a lot of dirty pages that will need to be flushed to disk,
-       as well as WAL-logged.
+       as well as WAL logged. Both enabling and disabling data checksums requires
+       performing checkpoints, which may generate a lot of writes.
       </para></listitem>
       <listitem><para>
        Replication: When the standby receives the data checksum state change
-- 
2.56.1

