diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2006-09-08 15:55:53 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2006-09-08 15:55:53 +0000 |
commit | b59d31c21571995ca717c29eabd4022f35c35169 (patch) | |
tree | 7d38bffd57599c60e2855fcaaf0d6128a8c242b9 /doc/src | |
parent | 0b33c562970e4f23d2fa06b05a6e30254daef3aa (diff) |
Tweak the behavior of log_duration as proposed by Guillaume Smet: rather
than being equivalent to setting log_min_duration_statement to zero, this
option now forces logging of all query durations, but doesn't force logging
of query text. Also, add duration logging coverage for fastpath function
calls.
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/sgml/config.sgml | 29 |
1 files changed, 14 insertions, 15 deletions
diff --git a/doc/src/sgml/config.sgml b/doc/src/sgml/config.sgml index 669110a5fda..2dcde4c14d1 100644 --- a/doc/src/sgml/config.sgml +++ b/doc/src/sgml/config.sgml @@ -1,4 +1,4 @@ -<!-- $PostgreSQL: pgsql/doc/src/sgml/config.sgml,v 1.84 2006/09/07 22:51:59 tgl Exp $ --> +<!-- $PostgreSQL: pgsql/doc/src/sgml/config.sgml,v 1.85 2006/09/08 15:55:52 tgl Exp $ --> <chapter Id="runtime-config"> <title>Server Configuration</title> @@ -2718,23 +2718,22 @@ SELECT * FROM parent WHERE key = 2400; Only superusers can change this setting. </para> - <para> - For clients using extended query protocol, durations of the Parse, - Bind, and Execute steps are logged independently. - </para> + <para> + For clients using extended query protocol, durations of the Parse, + Bind, and Execute steps are logged independently. + </para> <note> <para> - When using this option together with - <xref linkend="guc-log-statement">, - the text of statements that are logged because of - <varname>log_statement</> will not be repeated in the - duration log message. - If you are not using <application>syslog</>, it is recommended - that you log the PID or session ID using - <xref linkend="guc-log-line-prefix"> - so that you can link the statement message to the later - duration message using the process ID or session ID. + The difference between setting this option and setting + <xref linkend="guc-log-min-duration-statement"> to zero is that + exceeding <varname>log_min_duration_statement</> forces the text of + the query to be logged, but this option doesn't. Thus, if + <varname>log_duration</> is <literal>on</> and + <varname>log_min_duration_statement</> has a positive value, all + durations are logged but the query text is included only for + statements exceeding the threshold. This behavior can be useful for + gathering statistics in high-load installations. </para> </note> </listitem> |