|
1 | | -<!-- $PostgreSQL: pgsql/doc/src/sgml/config.sgml,v 1.95 2006/11/12 05:12:42 neilc Exp $ --> |
| 1 | +<!-- $PostgreSQL: pgsql/doc/src/sgml/config.sgml,v 1.96 2006/11/21 01:23:37 tgl Exp $ --> |
2 | 2 |
|
3 | 3 | <chapter Id="runtime-config"> |
4 | 4 | <title>Server Configuration</title> |
@@ -2474,20 +2474,19 @@ SELECT * FROM parent WHERE key = 2400; |
2474 | 2474 | <listitem> |
2475 | 2475 | <para> |
2476 | 2476 | Controls whether or not the SQL statement that causes an error |
2477 | | - condition will also be recorded in the server log. All SQL |
2478 | | - statements that cause an error of the specified level or |
2479 | | - higher are logged. The default is |
2480 | | - <literal>PANIC</literal> (effectively turning this feature |
2481 | | - off for normal use). Valid values are <literal>DEBUG5</literal>, |
| 2477 | + condition will be recorded in the server log. The current |
| 2478 | + SQL statement is included in the log entry for any message of |
| 2479 | + the specified severity or higher. |
| 2480 | + Valid values are <literal>DEBUG5</literal>, |
2482 | 2481 | <literal>DEBUG4</literal>, <literal>DEBUG3</literal>, |
2483 | 2482 | <literal>DEBUG2</literal>, <literal>DEBUG1</literal>, |
2484 | 2483 | <literal>INFO</literal>, <literal>NOTICE</literal>, |
2485 | 2484 | <literal>WARNING</literal>, <literal>ERROR</literal>, |
2486 | | - <literal>FATAL</literal>, and <literal>PANIC</literal>. For |
2487 | | -example, if you set this to<literal>ERROR</literal> then all |
2488 | | -SQL statementscausing errors, fatal errors, or panics will be |
2489 | | -logged. Enabling this parameter can be helpful in tracking down |
2490 | | -the source of any errors that appear in the server log. |
| 2485 | + <literal>FATAL</literal>, and <literal>PANIC</literal>. |
| 2486 | +The default is<literal>ERROR</literal>, which means statements |
| 2487 | + causing errors, fatal errors, or panics will be logged. |
| 2488 | +To effectively turn off logging of failing statements, |
| 2489 | +set this parameter to <literal>PANIC</literal>. |
2491 | 2490 | Only superusers can change this setting. |
2492 | 2491 | </para> |
2493 | 2492 | </listitem> |
@@ -2898,7 +2897,7 @@ SELECT * FROM parent WHERE key = 2400; |
2898 | 2897 | query protocol, this setting likewise does not log statements that |
2899 | 2898 | fail before the Execute phase (i.e., during parse analysis or |
2900 | 2899 | planning). Set <varname>log_min_error_statement</> to |
2901 | | - <literal>error</> to log such statements. |
| 2900 | + <literal>ERROR</> (or lower) to log such statements. |
2902 | 2901 | </para> |
2903 | 2902 | </note> |
2904 | 2903 | </listitem> |
|