]> granicus.if.org Git - postgresql/commitdiff
Document auto_explain.log_timing.
authorRobert Haas <rhaas@postgresql.org>
Wed, 29 May 2013 11:11:21 +0000 (07:11 -0400)
committerRobert Haas <rhaas@postgresql.org>
Wed, 29 May 2013 11:12:14 +0000 (07:12 -0400)
Tomas Vondra

doc/src/sgml/auto-explain.sgml

index 8325f0371d1c18f9eb46e84329a243d10b143f8e..03b2309da8f99bf54b2a71af4d3172e14e349f84 100644 (file)
@@ -139,6 +139,27 @@ LOAD 'auto_explain';
     </listitem>
    </varlistentry>
 
+   <varlistentry>
+    <term>
+     <varname>auto_explain.log_timing</varname> (<type>boolean</type>)
+    </term>
+    <indexterm>
+     <primary><varname>auto_explain.log_timing</> configuration parameter</primary>
+    </indexterm>
+    <listitem>
+     <para>
+      <varname>auto_explain.log_timing</varname> causes <command>EXPLAIN
+      (ANALYZE, TIMING off)</> output, rather than just <command>EXPLAIN (ANALYZE)</>
+      output. The overhead of repeatedly reading the system clock can slow down the
+      query significantly on some systems, so it may be useful to set this
+      parameter to <literal>FALSE</literal> when only actual row counts, and not
+      exact times, are needed.
+      This parameter is only effective when <varname>auto_explain.log_analyze</varname>
+      is also enabled.  It defaults to <literal>TRUE</literal>.
+     </para>
+    </listitem>
+   </varlistentry>
+   
    <varlistentry>
     <term>
      <varname>auto_explain.log_nested_statements</varname> (<type>boolean</type>)