From: Bruce Momjian Date: Fri, 1 Jul 2005 13:29:25 +0000 (+0000) Subject: Clarify documentation about log_min_duration_statement. X-Git-Tag: REL8_1_0BETA1~427 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8f6e8e8fed372a592f645d8900b6f456db82cc59;p=postgresql Clarify documentation about log_min_duration_statement. --- diff --git a/doc/src/sgml/runtime.sgml b/doc/src/sgml/runtime.sgml index c0b3e65ba7..4239852986 100644 --- a/doc/src/sgml/runtime.sgml +++ b/doc/src/sgml/runtime.sgml @@ -1,5 +1,5 @@ @@ -2628,16 +2628,17 @@ archive_command = 'copy "%p" /mnt/server/archivedir/"%f"' # Windows - Sets a minimum statement execution time (in milliseconds) - that causes a statement to be logged. All SQL statements - that run for the time specified or longer will be logged with - their duration. Setting this to zero will print - all queries and their durations. Minus-one (the default) - disables the feature. For example, if you set it to - 250 then all SQL statements that run 250ms - or longer will be logged. Enabling this option can be - useful in tracking down unoptimized queries in your applications. - Only superusers can change this setting. + Logs the statement and its duration on a single log line if its + duration is greater than or equal to the specified number of + milliseconds. Setting this to zero will print all statements + and their durations. Minus-one (the default) disables the + feature. For example, if you set it to 250 + then all SQL statements that run 250ms or longer will be + logged. Enabling this option can be useful in tracking down + unoptimized queries in your applications. This setting is + independent of log_statement and + log_duration. Only superusers can change + this setting. diff --git a/src/backend/utils/misc/postgresql.conf.sample b/src/backend/utils/misc/postgresql.conf.sample index 72f447c76b..ac1cc4875a 100644 --- a/src/backend/utils/misc/postgresql.conf.sample +++ b/src/backend/utils/misc/postgresql.conf.sample @@ -227,7 +227,8 @@ # debug5, debug4, debug3, debug2, debug1, # info, notice, warning, error, panic(off) -#log_min_duration_statement = -1 # -1 is disabled, in milliseconds. +#log_min_duration_statement = -1 # -1 is disabled, 0 logs all statements + # and their durations, in milliseconds. #silent_mode = false # DO NOT USE without syslog or redirect_stderr