Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 813135d

Browse files
committed
Move log_error_verbosity GUC setting to "What to log" section, and
document the behavior of terse and verbose output options.
1 parent 70d8a2c commit 813135d

File tree

2 files changed

+24
-23
lines changed

2 files changed

+24
-23
lines changed

doc/src/sgml/config.sgml

Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- $PostgreSQL: pgsql/doc/src/sgml/config.sgml,v 1.250 2010/02/05 23:37:43 momjian Exp $ -->
1+
<!-- $PostgreSQL: pgsql/doc/src/sgml/config.sgml,v 1.251 2010/02/16 21:35:51 momjian Exp $ -->
22

33
<chapter Id="runtime-config">
44
<title>Server Configuration</title>
@@ -2833,26 +2833,6 @@ local0.* /var/log/postgresql
28332833
</listitem>
28342834
</varlistentry>
28352835

2836-
<varlistentry id="guc-log-error-verbosity" xreflabel="log_error_verbosity">
2837-
<term><varname>log_error_verbosity</varname> (<type>enum</type>)</term>
2838-
<indexterm>
2839-
<primary><varname>log_error_verbosity</> configuration parameter</primary>
2840-
</indexterm>
2841-
<listitem>
2842-
<para>
2843-
Controls the amount of detail written in the server log for each
2844-
message that is logged. Valid values are <literal>TERSE</>,
2845-
<literal>DEFAULT</>, and <literal>VERBOSE</>, each adding more
2846-
fields to displayed messages. <literal>VERBOSE</> logging
2847-
output includes the <link
2848-
linkend="errcodes-appendix">SQLSTATE</> error
2849-
code and the source code file name, function name,
2850-
and line number that generated the error.
2851-
Only superusers can change this setting.
2852-
</para>
2853-
</listitem>
2854-
</varlistentry>
2855-
28562836
<varlistentry id="guc-log-min-error-statement" xreflabel="log_min_error_statement">
28572837
<term><varname>log_min_error_statement</varname> (<type>enum</type>)</term>
28582838
<indexterm>
@@ -3172,6 +3152,28 @@ local0.* /var/log/postgresql
31723152
</listitem>
31733153
</varlistentry>
31743154

3155+
<varlistentry id="guc-log-error-verbosity" xreflabel="log_error_verbosity">
3156+
<term><varname>log_error_verbosity</varname> (<type>enum</type>)</term>
3157+
<indexterm>
3158+
<primary><varname>log_error_verbosity</> configuration parameter</primary>
3159+
</indexterm>
3160+
<listitem>
3161+
<para>
3162+
Controls the amount of detail written in the server log for each
3163+
message that is logged. Valid values are <literal>TERSE</>,
3164+
<literal>DEFAULT</>, and <literal>VERBOSE</>, each adding more
3165+
fields to displayed messages. <literal>TERSE</> excludes
3166+
the logging of <literal>DETAIL</>, <literal>HINT</>,
3167+
<literal>QUERY</>, and <literal>CONTEXT</> error information.
3168+
<literal>VERBOSE</> output includes the <link
3169+
linkend="errcodes-appendix">SQLSTATE</> error
3170+
code and the source code file name, function name,
3171+
and line number that generated the error.
3172+
Only superusers can change this setting.
3173+
</para>
3174+
</listitem>
3175+
</varlistentry>
3176+
31753177
<varlistentry id="guc-log-hostname" xreflabel="log_hostname">
31763178
<term><varname>log_hostname</varname> (<type>boolean</type>)</term>
31773179
<indexterm>

src/backend/utils/misc/postgresql.conf.sample

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,8 +311,6 @@
311311
# fatal
312312
# panic
313313

314-
#log_error_verbosity = default # terse, default, or verbose messages
315-
316314
#log_min_error_statement = error # values in order of decreasing detail:
317315
# debug5
318316
# debug4
@@ -343,6 +341,7 @@
343341
#log_connections = off
344342
#log_disconnections = off
345343
#log_duration = off
344+
#log_error_verbosity = default # terse, default, or verbose messages
346345
#log_hostname = off
347346
#log_line_prefix = '' # special values:
348347
# %a = application name

0 commit comments

Comments
 (0)