8
8
*
9
9
*
10
10
* IDENTIFICATION
11
- * $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.225 2001/06/23 22:23:49 momjian Exp $
11
+ * $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.226 2001/06/25 22:56:04 tgl Exp $
12
12
*
13
13
* NOTES
14
14
* this is the "main" module of the postgres backend and
@@ -1108,7 +1108,7 @@ PostgresMain(int argc, char *argv[], int real_argc, char *real_argv[], const cha
1108
1108
int flag ;
1109
1109
1110
1110
const char * DBName = NULL ;
1111
- bool secure = true ;
1111
+ bool secure ;
1112
1112
int errs = 0 ;
1113
1113
GucContext ctx ;
1114
1114
char * tmp ;
@@ -1120,9 +1120,6 @@ PostgresMain(int argc, char *argv[], int real_argc, char *real_argv[], const cha
1120
1120
unsigned short remote_port ;
1121
1121
1122
1122
char * potential_DataDir = NULL ;
1123
-
1124
- /* all options are allowed until '-p' */
1125
- ctx = PGC_POSTMASTER ;
1126
1123
1127
1124
/*
1128
1125
* Catch standard options before doing much else. This even works on
@@ -1190,6 +1187,10 @@ PostgresMain(int argc, char *argv[], int real_argc, char *real_argv[], const cha
1190
1187
* ----------------
1191
1188
*/
1192
1189
1190
+ /* all options are allowed until '-p' */
1191
+ secure = true;
1192
+ ctx = PGC_POSTMASTER ;
1193
+
1193
1194
optind = 1 ; /* reset after postmaster's usage */
1194
1195
1195
1196
while ((flag = getopt (argc , argv , "A:B:c:CD:d:Eef:FiLNOPo:p:S:st:v:W:x:-:" )) != EOF )
@@ -1225,18 +1226,17 @@ PostgresMain(int argc, char *argv[], int real_argc, char *real_argv[], const cha
1225
1226
break ;
1226
1227
1227
1228
case 'd' : /* debug level */
1228
- tmp = "true" ;
1229
1229
SetConfigOption ("debug_level" , optarg , ctx , true);
1230
1230
if (DebugLvl >= 1 )
1231
- SetConfigOption ("log_connections" , tmp , ctx , true);
1231
+ SetConfigOption ("log_connections" , "true" , ctx , true);
1232
1232
if (DebugLvl >= 2 )
1233
- SetConfigOption ("debug_print_query" , tmp , ctx , true);
1233
+ SetConfigOption ("debug_print_query" , "true" , ctx , true);
1234
1234
if (DebugLvl >= 3 )
1235
- SetConfigOption ("debug_print_parse" , tmp , ctx , true);
1235
+ SetConfigOption ("debug_print_parse" , "true" , ctx , true);
1236
1236
if (DebugLvl >= 4 )
1237
- SetConfigOption ("debug_print_plan" , tmp , ctx , true);
1237
+ SetConfigOption ("debug_print_plan" , "true" , ctx , true);
1238
1238
if (DebugLvl >= 5 )
1239
- SetConfigOption ("debug_print_rewritten" , tmp , ctx , true);
1239
+ SetConfigOption ("debug_print_rewritten" , "true" , ctx , true);
1240
1240
break ;
1241
1241
1242
1242
case 'E' :
@@ -1491,7 +1491,7 @@ PostgresMain(int argc, char *argv[], int real_argc, char *real_argv[], const cha
1491
1491
(Show_parser_stats || Show_planner_stats || Show_executor_stats ))
1492
1492
{
1493
1493
fprintf (stderr , "Query statistics are disabled because parser, planner, or executor statistics are on.\n" );
1494
- Show_query_stats = false;
1494
+ SetConfigOption ( "show_query_stats" , " false" , ctx , true) ;
1495
1495
}
1496
1496
1497
1497
if (!IsUnderPostmaster )
@@ -1714,7 +1714,7 @@ PostgresMain(int argc, char *argv[], int real_argc, char *real_argv[], const cha
1714
1714
if (!IsUnderPostmaster )
1715
1715
{
1716
1716
puts ("\nPOSTGRES backend interactive interface " );
1717
- puts ("$Revision: 1.225 $ $Date: 2001/06/23 22:23:49 $\n" );
1717
+ puts ("$Revision: 1.226 $ $Date: 2001/06/25 22:56:04 $\n" );
1718
1718
}
1719
1719
1720
1720
/*
0 commit comments