postgres.git / summary / log / commit / refs

commit    54bf009052edadf85658a94eeece2ea355480b23
Author:   Fujii Masao <fujii@postgresql.org>
Date:     Thu Jul 16 04:35:36 2026 +0000

    doc: Fix log_parameter_max_length docs to reference log_min_duration_statement
    
    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 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/doc/src/sgml/config.sgml b/doc/src/sgml/config.sgml index 45827687b9c..f0f95d7be03 100644 --- a/doc/src/sgml/config.sgml +++ b/doc/src/sgml/config.sgml @@ -8427,9 +8427,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> [parent: 9171f77db232]