From 1fe4cbb9db839321adcb2698d6b46f8964677b66 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Fri, 27 Sep 2002 03:34:15 +0000 Subject: [PATCH] Make postgres -d0 set server_min_messages to notice. Reset doesn't work at this area in the code. --- src/backend/tcop/postgres.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/backend/tcop/postgres.c b/src/backend/tcop/postgres.c index 99b6a4fb2c..36022bcb32 100644 --- a/src/backend/tcop/postgres.c +++ b/src/backend/tcop/postgres.c @@ -8,7 +8,7 @@ * * * 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 * this is the "main" module of the postgres backend and @@ -1276,12 +1276,13 @@ PostgresMain(int argc, char *argv[], const char *username) SetConfigOption("debug_print_rewritten", "true", ctx, gucsource); } else - /* * -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; @@ -1697,7 +1698,7 @@ PostgresMain(int argc, char *argv[], const char *username) if (!IsUnderPostmaster) { 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"); } /* -- 2.11.0