提交 1fe4cbb9 编写于 作者: B Bruce Momjian

Make postgres -d0 set server_min_messages to notice. Reset doesn't work

at this area in the code.
上级 dcc59f8e
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.295 2002/09/26 05:17:00 momjian Exp $ * $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.296 2002/09/27 03:34:15 momjian Exp $
* *
* NOTES * NOTES
* this is the "main" module of the postgres backend and * this is the "main" module of the postgres backend and
...@@ -1276,12 +1276,13 @@ PostgresMain(int argc, char *argv[], const char *username) ...@@ -1276,12 +1276,13 @@ PostgresMain(int argc, char *argv[], const char *username)
SetConfigOption("debug_print_rewritten", "true", ctx, gucsource); SetConfigOption("debug_print_rewritten", "true", ctx, gucsource);
} }
else else
/* /*
* -d 0 allows user to prevent postmaster debug * -d 0 allows user to prevent postmaster debug
* from propagating to backend. * from propagating to backend. It would be nice
* to set it to the postgresql.conf value here.
*/ */
ResetPGVariable("server_min_messages"); SetConfigOption("server_min_messages", "notice",
ctx, gucsource);
} }
break; break;
...@@ -1697,7 +1698,7 @@ PostgresMain(int argc, char *argv[], const char *username) ...@@ -1697,7 +1698,7 @@ PostgresMain(int argc, char *argv[], const char *username)
if (!IsUnderPostmaster) if (!IsUnderPostmaster)
{ {
puts("\nPOSTGRES backend interactive interface "); puts("\nPOSTGRES backend interactive interface ");
puts("$Revision: 1.295 $ $Date: 2002/09/26 05:17:00 $\n"); puts("$Revision: 1.296 $ $Date: 2002/09/27 03:34:15 $\n");
} }
/* /*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册