diff options
author | Bruce Momjian | 2003-06-11 18:01:14 +0000 |
---|---|---|
committer | Bruce Momjian | 2003-06-11 18:01:14 +0000 |
commit | b952d61c545e6c5fd827187a3ec6b9871cc0ebed (patch) | |
tree | 76abb87b20311471c937ee6b57eccc719b373166 /doc/src | |
parent | 8bfe93c5c8b10c9a824fd07138c55d3a857f4e98 (diff) |
Add log_min_duration_statement.
Christopher Kings-Lynne
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/sgml/runtime.sgml | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/doc/src/sgml/runtime.sgml b/doc/src/sgml/runtime.sgml index b59cda7e35f..f90800ab5e1 100644 --- a/doc/src/sgml/runtime.sgml +++ b/doc/src/sgml/runtime.sgml @@ -1,5 +1,5 @@ <!-- -$Header: /cvsroot/pgsql/doc/src/sgml/runtime.sgml,v 1.182 2003/05/27 17:49:45 momjian Exp $ +$Header: /cvsroot/pgsql/doc/src/sgml/runtime.sgml,v 1.183 2003/06/11 18:01:13 momjian Exp $ --> <Chapter Id="runtime"> @@ -1052,6 +1052,23 @@ SET ENABLE_SEQSCAN TO OFF; </varlistentry> <varlistentry> + <term><varname>LOG_MIN_DURATION_STATEMENT</varname> (<type>integer</type>)</term> + <listitem> + <para> + Sets a minimum statement execution time (in milliseconds) + above which a statement will be logged. All SQL statements + that run longer than the time specified will be logged together + with the duration, in seconds. The default is <literal>0</literal> + (turning this feature off). For example, if you set it + to <literal>250</literal> then all SQL statements that run longer + than 250ms will be logged along with the duration. Enabling this + option can be useful in tracking down unoptimized queries in + your applications. + </para> + </listitem> + </varlistentry> + + <varlistentry> <term><varname>LOG_MIN_ERROR_STATEMENT</varname> (<type>string</type>)</term> <listitem> <para> |