-
+
Server Configuration
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.
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.
* Written by Peter Eisentraut
.
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.358 2006/11/05 22:42:09 tgl Exp $
+ * $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.359 2006/11/21 01:23:37 tgl Exp $
*
*--------------------------------------------------------------------
*/
bool Password_encryption = true;
-int log_min_error_statement = PANIC;
+int log_min_error_statement = ERROR;
int log_min_messages = NOTICE;
int client_min_messages = NOTICE;
int log_min_duration_statement = -1;
"specified level or a higher level are logged.")
},
&log_min_error_statement_str,
- "panic", assign_min_error_statement, NULL
+ "error", assign_min_error_statement, NULL
},
{
#log_error_verbosity = default # terse, default, or verbose messages
-#log_min_error_statement = panic # Values in order of increasing severity:
+#log_min_error_statement = error # Values in order of increasing severity:
# debug5
# debug4
# debug3
# notice
# warning
# error
- # panic(off)
+ # fatal
+ # panic (effectively off)
#log_min_duration_statement = -1 # -1 is disabled, 0 logs all statements
# and their durations.