Hi, When I read the document for wal_log_hints, I see:
<para> If data checksums are enabled, hint bit updates are always WAL-logged and this setting is ignored. You can use this setting to test how much extra WAL-logging would occur if your database had data checksums enabled. </para> I think if it should be changed to ".. if your database had data checksums *disabled*". Per my check, wal_log_hints is not used except the case: #define XLogHintBitIsNeeded() (DataChecksumsEnabled() || wal_log_hints) So if data checksums is enabled, nothing can be tested when turning wal_log_hints on/off. -- Best Regards Andy Fan
>From f9925545a752475fce61caea942a0057106636e4 Mon Sep 17 00:00:00 2001 From: Andy Fan <zhihuifan1...@163.com> Date: Tue, 19 Nov 2024 08:58:22 +0800 Subject: [PATCH v1 1/1] doc: correct the method to test the impact of wal_log_hints. --- doc/src/sgml/config.sgml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/src/sgml/config.sgml b/doc/src/sgml/config.sgml index a84e60c09b..4fcd495e7b 100644 --- a/doc/src/sgml/config.sgml +++ b/doc/src/sgml/config.sgml @@ -3319,7 +3319,7 @@ include_dir 'conf.d' If data checksums are enabled, hint bit updates are always WAL-logged and this setting is ignored. You can use this setting to test how much extra WAL-logging would occur if your database had data checksums - enabled. + disabled. </para> <para> -- 2.45.1