From b952d61c545e6c5fd827187a3ec6b9871cc0ebed Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Wed, 11 Jun 2003 18:01:14 +0000 Subject: Add log_min_duration_statement. Christopher Kings-Lynne --- doc/src/sgml/runtime.sgml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'doc/src') 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 @@ @@ -1051,6 +1051,23 @@ SET ENABLE_SEQSCAN TO OFF; + + LOG_MIN_DURATION_STATEMENT (integer) + + + 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 0 + (turning this feature off). For example, if you set it + to 250 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. + + + + LOG_MIN_ERROR_STATEMENT (string) -- cgit v1.2.3