Skip to content

Commit 1fe4cbb

Browse files
committed
Make postgres -d0 set server_min_messages to notice. Reset doesn't work
at this area in the code.
1 parent dcc59f8 commit 1fe4cbb

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/backend/tcop/postgres.c

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.295 2002/09/26 05:17:00 momjian Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.296 2002/09/27 03:34:15 momjian Exp $
1212
*
1313
* NOTES
1414
* this is the "main" module of the postgres backend and
@@ -1276,12 +1276,13 @@ PostgresMain(int argc, char *argv[], const char *username)
12761276
SetConfigOption("debug_print_rewritten", "true", ctx, gucsource);
12771277
}
12781278
else
1279-
12801279
/*
12811280
* -d 0 allows user to prevent postmaster debug
1282-
* from propagating to backend.
1281+
* from propagating to backend. It would be nice
1282+
* to set it to the postgresql.conf value here.
12831283
*/
1284-
ResetPGVariable("server_min_messages");
1284+
SetConfigOption("server_min_messages", "notice",
1285+
ctx, gucsource);
12851286
}
12861287
break;
12871288

@@ -1697,7 +1698,7 @@ PostgresMain(int argc, char *argv[], const char *username)
16971698
if (!IsUnderPostmaster)
16981699
{
16991700
puts("\nPOSTGRES backend interactive interface ");
1700-
puts("$Revision: 1.295 $ $Date: 2002/09/26 05:17:00 $\n");
1701+
puts("$Revision: 1.296 $ $Date: 2002/09/27 03:34:15 $\n");
17011702
}
17021703

17031704
/*

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy