Index: doc/src/sgml/runtime.sgml =================================================================== RCS file: /cvsroot/pgsql-server/doc/src/sgml/runtime.sgml,v retrieving revision 1.141 diff -c -c -r1.141 runtime.sgml *** doc/src/sgml/runtime.sgml 27 Sep 2002 02:04:39 -0000 1.141 --- doc/src/sgml/runtime.sgml 2 Oct 2002 16:05:57 -0000 *************** *** 1036,1050 **** LOG_MIN_ERROR_STATEMENT (string) ! This controls which log messages are accompanied by the original ! query which generated the message. All queries matching the setting ! or which are of a higher severity than the setting are logged. The ! default is ERROR. Valid values are ! DEBUG5, DEBUG4, ! DEBUG3, DEBUG2, DEBUG1, INFO, ! NOTICE, WARNING ! and ERROR. It is recommended you enable LOG_PID as well --- 1036,1050 ---- LOG_MIN_ERROR_STATEMENT (string) ! This controls which message types output the original query to ! the server logs. All queries matching the setting or higher are ! logged. The default is PANIC. Valid values ! are DEBUG5, DEBUG4, ! DEBUG3, DEBUG2, DEBUG1, INFO, ! NOTICE, WARNING, ! ERROR, FATAL, and ! PANIC. It is recommended you enable LOG_PID as well Index: src/backend/utils/misc/guc.c =================================================================== RCS file: /cvsroot/pgsql-server/src/backend/utils/misc/guc.c,v retrieving revision 1.96 diff -c -c -r1.96 guc.c *** src/backend/utils/misc/guc.c 22 Sep 2002 19:52:38 -0000 1.96 --- src/backend/utils/misc/guc.c 2 Oct 2002 16:06:09 -0000 *************** *** 104,110 **** int log_min_error_statement = ERROR; char *log_min_error_statement_str = NULL; ! const char log_min_error_statement_str_default[] = "error"; int server_min_messages = NOTICE; char *server_min_messages_str = NULL; --- 104,110 ---- int log_min_error_statement = ERROR; char *log_min_error_statement_str = NULL; ! const char log_min_error_statement_str_default[] = "panic"; int server_min_messages = NOTICE; char *server_min_messages_str = NULL; *************** *** 2999,3004 **** --- 2999,3015 ---- { if (doit) (*var) = ERROR; + } + /* We allow FATAL/PANIC for client-side messages too. */ + else if (strcasecmp(newval, "fatal") == 0) + { + if (doit) + (*var) = FATAL; + } + else if (strcasecmp(newval, "panic") == 0) + { + if (doit) + (*var) = PANIC; } else return NULL; /* fail */