From 414c7a537e6c8a7916700dd22ef78e6ffea39e2a Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Tue, 21 Nov 2006 01:23:37 +0000 Subject: Change the default setting for log_min_error_statement to ERROR. Per recent discussion in which majority opinion was that this is a more widely useful setting than the previous default of PANIC. --- doc/src/sgml/config.sgml | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) (limited to 'doc/src') diff --git a/doc/src/sgml/config.sgml b/doc/src/sgml/config.sgml index 162f06b67c6..457d9246f3f 100644 --- a/doc/src/sgml/config.sgml +++ b/doc/src/sgml/config.sgml @@ -1,4 +1,4 @@ - + Server Configuration @@ -2474,20 +2474,19 @@ SELECT * FROM parent WHERE key = 2400; Controls whether or not the SQL statement that causes an error - condition will also be recorded in the server log. All SQL - statements that cause an error of the specified level or - higher are logged. The default is - PANIC (effectively turning this feature - off for normal use). Valid values are DEBUG5, + condition will be recorded in the server log. The current + SQL statement is included in the log entry for any message of + the specified severity or higher. + Valid values are DEBUG5, DEBUG4, DEBUG3, DEBUG2, DEBUG1, INFO, NOTICE, WARNING, ERROR, - FATAL, and PANIC. For - example, if you set this to ERROR then all - SQL statements causing errors, fatal errors, or panics will be - logged. Enabling this parameter can be helpful in tracking down - the source of any errors that appear in the server log. + FATAL, and PANIC. + The default is ERROR, which means statements + causing errors, fatal errors, or panics will be logged. + To effectively turn off logging of failing statements, + set this parameter to PANIC. Only superusers can change this setting. @@ -2898,7 +2897,7 @@ SELECT * FROM parent WHERE key = 2400; query protocol, this setting likewise does not log statements that fail before the Execute phase (i.e., during parse analysis or planning). Set log_min_error_statement to - error to log such statements. + ERROR (or lower) to log such statements. -- cgit v1.2.3