]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
doc: Fix log_parameter_max_length docs to reference log_min_duration_statement
authorFujii Masao <fujii@postgresql.org>
Thu, 16 Jul 2026 04:35:36 +0000 (13:35 +0900)
committerFujii Masao <fujii@postgresql.org>
Thu, 16 Jul 2026 04:36:51 +0000 (13:36 +0900)
The documentation for log_parameter_max_length said it affects messages
generated by log_duration. However, log_duration alone does not log bind
parameter values, so this is misleading.

This commit updates the documentation to reference log_min_duration_statement,
which can log bind parameters, to better reflect actual behavior.

Backpatch to all supported versions.

Author: Fujii Masao <masao.fujii@gmail.com>
Reviewed-by: Surya Poondla <suryapoondla4@gmail.com>
Discussion: https://postgr.es/m/CAHGQGwGnCVMVz8-LU9F8Sh57bkQX3jMZzx7age7M0LFEz5=Fog@mail.gmail.com
Backpatch-through: 14

doc/src/sgml/config.sgml

index ba51ac2cecfc3fd34f376984cc0c70ff02a2353b..3f8cd96d9a13886ef5eb919f5a22f1b7ac258eb4 100644 (file)
@@ -7578,9 +7578,10 @@ log_line_prefix = '%m [%p] %q%u@%d/%a '
        <para>
         This setting only affects log messages printed as a result of
         <xref linkend="guc-log-statement"/>,
-        <xref linkend="guc-log-duration"/>, and related settings.  Non-zero
-        values of this setting add some overhead, particularly if parameters
-        are sent in binary form, since then conversion to text is required.
+        <xref linkend="guc-log-min-duration-statement"/>, and related settings.
+        Non-zero values of this setting add some overhead, particularly
+        if parameters are sent in binary form, since then conversion to
+        text is required.
        </para>
       </listitem>
      </varlistentry>