@@ -5821,11 +5821,12 @@ local0.* /var/log/postgresql
58215821 Causes the duration of each completed statement to be logged
58225822 if the statement ran for at least the specified number of
58235823 milliseconds, modulated by <varname>log_statement_sample_rate</varname>.
5824- Setting this to zero prints all statement durations. Minus-one (the default)
5825- disables logging statement durations. For example, if you set it to
5826- <literal>250ms</literal> then all SQL statements that run 250ms or longer
5827- will be logged. Enabling this parameter can be helpful in tracking down
5828- unoptimized queries in your applications.
5824+ Setting this to zero prints all statement durations.
5825+ <literal>-1</literal> (the default) disables logging statements due to
5826+ exceeding duration threshold; for example, if you set it to
5827+ <literal>250ms</literal>, then all SQL statements that run 250ms or
5828+ longer will be logged. Enabling this parameter can be helpful in
5829+ tracking down unoptimized queries in your applications.
58295830 Only superusers can change this setting.
58305831 </para>
58315832
@@ -5859,14 +5860,15 @@ local0.* /var/log/postgresql
58595860 </term>
58605861 <listitem>
58615862 <para>
5862- Determines the fraction of the statements that exceed
5863- <xref linkend="guc-log-min-duration-statement"/> which to log .
5864- The default is <literal>1</literal>, meaning log to all such
5863+ Determines the fraction of statements that exceed
5864+ <xref linkend="guc-log-min-duration-statement"/> to be logged .
5865+ The default is <literal>1</literal>, meaning log all such
58655866 statements.
5866- Setting this to zero disables logging, same as setting
5867- <varname>log_min_duration_statement</varname>
5868- to minus-one. <varname>log_statement_sample_rate</varname>
5869- is helpful when the traffic is too high to log all queries.
5867+ Setting this to zero disables logging by duration, same as setting
5868+ <varname>log_min_duration_statement</varname> to
5869+ <literal>-1</literal>.
5870+ <varname>log_statement_sample_rate</varname> is helpful when the
5871+ traffic is too high to log all queries.
58705872 </para>
58715873 </listitem>
58725874 </varlistentry>
@@ -6144,7 +6146,7 @@ local0.* /var/log/postgresql
61446146
61456147 <note>
61466148 <para>
6147- The difference between setting this option and setting
6149+ The difference between enabling <varname>log_duration</varname> and setting
61486150 <xref linkend="guc-log-min-duration-statement"/> to zero is that
61496151 exceeding <varname>log_min_duration_statement</varname> forces the text of
61506152 the query to be logged, but this option doesn't. Thus, if
0 commit comments