Make postgres -d0 set server_min_messages to notice. Reset doesn't work
authorBruce Momjian
Fri, 27 Sep 2002 03:34:15 +0000 (03:34 +0000)
committerBruce Momjian
Fri, 27 Sep 2002 03:34:15 +0000 (03:34 +0000)
at this area in the code.

src/backend/tcop/postgres.c

index 99b6a4fb2ceaffab7b006d233acaeb60a5232834..36022bcb326fedac450bb73237c18ee55426e3d2 100644 (file)
@@ -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");
    }
 
    /*