of log_ settings.
<!--
-$Header: /cvsroot/pgsql/doc/src/sgml/plpgsql.sgml,v 1.9 2002/11/10 00:35:58 momjian Exp $
+$Header: /cvsroot/pgsql/doc/src/sgml/plpgsql.sgml,v 1.10 2002/11/14 23:53:26 momjian Exp $
-->
<chapter id="plpgsql">
(raise an error and abort the current transaction). Whether error
messages of a particular priority are reported to the client,
written to the server log, or both is controlled by the
- <option>SERVER_MIN_MESSAGES</option> and
+ <option>LOG_MIN_MESSAGES</option> and
<option>CLIENT_MIN_MESSAGES</option> configuration variables. See
the <citetitle>PostgreSQL Administrator's Guide</citetitle> for more
information.
<!--
-$Header: /cvsroot/pgsql/doc/src/sgml/runtime.sgml,v 1.150 2002/11/11 20:14:03 petere Exp $
+$Header: /cvsroot/pgsql/doc/src/sgml/runtime.sgml,v 1.151 2002/11/14 23:53:26 momjian Exp $
-->
<Chapter Id="runtime">
<para>
<variablelist>
<varlistentry>
- <term><varname>SERVER_MIN_MESSAGES</varname> (<type>string</type>)</term>
+ <term><varname>CLIENT_MIN_MESSAGES</varname> (<type>string</type>)</term>
<listitem>
<para>
- This controls how much message detail is written to the server
- logs. Valid values are <literal>DEBUG5</>,
+ This controls how much message detail is written to the
+ client. Valid values are <literal>DEBUG5</>,
<literal>DEBUG4</>, <literal>DEBUG3</>, <literal>DEBUG2</>,
- <literal>DEBUG1</>, <literal>INFO</>, <literal>NOTICE</>,
- <literal>WARNING</>, <literal>ERROR</>, <literal>LOG</>,
- <literal>FATAL</>, and <literal>PANIC</>. Later values send
- less detail to the logs. The default is <literal>NOTICE</>.
- Note that <literal>LOG</> has a different precedence here than
- in <literal>CLIENT_MIN_MESSAGES</>.
+ <literal>DEBUG1</>, <literal>LOG</>, <literal>NOTICE</>,
+ <literal>WARNING</>, and <literal>ERROR</>. Later values send
+ less information to the client. The default is
+ <literal>NOTICE</>. Note that <literal>LOG</> has a different
+ precedence here than in <literal>LOG_MIN_MESSAGES</>.
</para>
<para>
</listitem>
</varlistentry>
- <varlistentry>
- <term><varname>CLIENT_MIN_MESSAGES</varname> (<type>string</type>)</term>
- <listitem>
- <para>
- This controls how much message detail is written to the
- client. Valid values are <literal>DEBUG5</>,
- <literal>DEBUG4</>, <literal>DEBUG3</>, <literal>DEBUG2</>,
- <literal>DEBUG1</>, <literal>LOG</>, <literal>NOTICE</>,
- <literal>WARNING</>, and <literal>ERROR</>. Later values send
- less information to the client. The default is
- <literal>NOTICE</>. Note that <literal>LOG</> has a different
- precedence here than in <literal>SERVER_MIN_MESSAGES</>. Also
- see that section for an explanation of the various values.
- </para>
- </listitem>
- </varlistentry>
-
<varlistentry>
<term><varname>DEBUG_ASSERTIONS</varname> (<type>boolean</type>)</term>
<listitem>
</listitem>
</varlistentry>
+ <varlistentry>
+ <term><varname>LOG_MIN_MESSAGES</varname> (<type>string</type>)</term>
+ <listitem>
+ <para>
+ This controls how much message detail is written to the server
+ logs. Valid values are <literal>DEBUG5</>,
+ <literal>DEBUG4</>, <literal>DEBUG3</>, <literal>DEBUG2</>,
+ <literal>DEBUG1</>, <literal>INFO</>, <literal>NOTICE</>,
+ <literal>WARNING</>, <literal>ERROR</>, <literal>LOG</>,
+ <literal>FATAL</>, and <literal>PANIC</>. Later values send
+ less detail to the logs. The default is <literal>NOTICE</>.
+ Note that <literal>LOG</> has a different precedence here than
+ in <literal>CLIENT_MIN_MESSAGES</>. Also see that section
+ for an explanation of the various values.
+ </para>
+
+ </listitem>
+ </varlistentry>
+
<varlistentry>
<term><varname>LOG_PID</varname> (<type>boolean</type>)</term>
<listitem>
</row>
<row>
<entry><option>-d <replaceable>x</replaceable></option></entry>
- <entry><literal>server_min_messages = DEBUG<replaceable>x</replaceable></></entry>
+ <entry><literal>log_min_messages = DEBUG<replaceable>x</replaceable></></entry>
</row>
<row>
<entry><option>-F</option></entry>
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/bootstrap/bootstrap.c,v 1.144 2002/09/26 22:58:33 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/bootstrap/bootstrap.c,v 1.145 2002/11/14 23:53:27 momjian Exp $
*
*-------------------------------------------------------------------------
*/
char *debugstr = palloc(strlen("debug") + strlen(optarg) + 1);
sprintf(debugstr, "debug%s", optarg);
- SetConfigOption("server_min_messages", debugstr,
+ SetConfigOption("log_min_messages", debugstr,
PGC_POSTMASTER, PGC_S_ARGV);
SetConfigOption("client_min_messages", debugstr,
PGC_POSTMASTER, PGC_S_ARGV);
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.293 2002/11/13 00:39:47 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.294 2002/11/14 23:53:27 momjian Exp $
*
* NOTES
*
char *debugstr = palloc(strlen("debug") + strlen(optarg) + 1);
sprintf(debugstr, "debug%s", optarg);
- SetConfigOption("server_min_messages", debugstr,
+ SetConfigOption("log_min_messages", debugstr,
PGC_POSTMASTER, PGC_S_ARGV);
pfree(debugstr);
debug_flag = atoi(optarg);
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.307 2002/10/31 21:34:16 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.308 2002/11/14 23:53:27 momjian Exp $
*
* NOTES
* this is the "main" module of the postgres backend and
char *debugstr = palloc(strlen("debug") + strlen(optarg) + 1);
sprintf(debugstr, "debug%s", optarg);
- SetConfigOption("server_min_messages", debugstr, ctx, gucsource);
+ SetConfigOption("log_min_messages", debugstr, ctx, gucsource);
pfree(debugstr);
}
* from propagating to backend. It would be nice
* to set it to the postgresql.conf value here.
*/
- SetConfigOption("server_min_messages", "notice",
+ SetConfigOption("log_min_messages", "notice",
ctx, gucsource);
}
break;
/*
* -d is not the same as setting
- * server_min_messages because it enables other
+ * log_min_messages because it enables other
* output options.
*/
if (debug_flag >= 1)
if (!IsUnderPostmaster)
{
puts("\nPOSTGRES backend interactive interface ");
- puts("$Revision: 1.307 $ $Date: 2002/10/31 21:34:16 $\n");
+ puts("$Revision: 1.308 $ $Date: 2002/11/14 23:53:27 $\n");
}
/*
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/error/elog.c,v 1.104 2002/11/01 17:55:23 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/error/elog.c,v 1.105 2002/11/14 23:53:27 momjian Exp $
*
*-------------------------------------------------------------------------
*/
/* Complicated because LOG is sorted out-of-order for this purpose */
if (lev == LOG || lev == COMMERROR)
{
- if (server_min_messages == LOG)
+ if (log_min_messages == LOG)
output_to_server = true;
- else if (server_min_messages < FATAL)
+ else if (log_min_messages < FATAL)
output_to_server = true;
}
else
{
/* lev != LOG */
- if (server_min_messages == LOG)
+ if (log_min_messages == LOG)
{
if (lev >= FATAL)
output_to_server = true;
}
/* Neither is LOG */
- else if (lev >= server_min_messages)
+ else if (lev >= log_min_messages)
output_to_server = true;
}
* command, configuration file, and command line options.
* See src/backend/utils/misc/README for more information.
*
- * $Header: /cvsroot/pgsql/src/backend/utils/misc/guc.c,v 1.100 2002/11/08 17:37:52 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/misc/guc.c,v 1.101 2002/11/14 23:53:27 momjian Exp $
*
* Copyright 2000 by PostgreSQL Global Development Group
* Written by Peter Eisentraut <peter_e@gmx.net>.
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;
-const char server_min_messages_str_default[] = "notice";
+int log_min_messages = NOTICE;
+char *log_min_messages_str = NULL;
+const char log_min_messages_str_default[] = "notice";
int client_min_messages = NOTICE;
char *client_min_messages_str = NULL;
},
{
- {"server_min_messages", PGC_USERSET}, &server_min_messages_str,
- server_min_messages_str_default, assign_server_min_messages, NULL
+ {"log_min_messages", PGC_USERSET}, &log_min_messages_str,
+ log_min_messages_str_default, assign_log_min_messages, NULL
},
{
}
const char *
-assign_server_min_messages(const char *newval,
+assign_log_min_messages(const char *newval,
bool doit, bool interactive)
{
- return (assign_msglvl(&server_min_messages, newval, doit, interactive));
+ return (assign_msglvl(&log_min_messages, newval, doit, interactive));
}
const char *
#
# Message display
#
-#server_min_messages = notice # Values, in order of decreasing detail:
+#log_min_messages = notice # Values, in order of decreasing detail:
# debug5, debug4, debug3, debug2, debug1,
# info, notice, warning, error, log, fatal,
# panic
*
* Copyright 2000-2002 by PostgreSQL Global Development Group
*
- * $Header: /cvsroot/pgsql/src/bin/psql/tab-complete.c,v 1.65 2002/11/08 17:37:52 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/bin/psql/tab-complete.c,v 1.66 2002/11/14 23:53:27 momjian Exp $
*/
/*----------------------------------------------------------------------
"enable_hashjoin",
"geqo",
"fsync",
- "server_min_messages",
+ "log_min_messages",
"client_min_messages",
"debug_assertions",
"log_statement",
* External declarations pertaining to backend/utils/misc/guc.c and
* backend/utils/misc/guc-file.l
*
- * $Id: guc.h,v 1.24 2002/10/21 18:57:35 petere Exp $
+ * $Id: guc.h,v 1.25 2002/11/14 23:53:27 momjian Exp $
*/
#ifndef GUC_H
#define GUC_H
extern const char *assign_min_error_statement(const char *newval, bool doit,
bool interactive);
-extern const char *assign_server_min_messages(const char *newval,
+extern const char *assign_log_min_messages(const char *newval,
bool doit, bool interactive);
extern const char *assign_client_min_messages(const char *newval,
bool doit, bool interactive);
extern char *log_min_error_statement_str;
extern const char log_min_error_statement_str_default[];
-extern int server_min_messages;
-extern char *server_min_messages_str;
-extern const char server_min_messages_str_default[];
+extern int log_min_messages;
+extern char *log_min_messages_str;
+extern const char log_min_messages_str_default[];
extern int client_min_messages;
extern char *client_min_messages_str;