7
7
*
8
8
*
9
9
* IDENTIFICATION
10
- * $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.131 1999/10/06 21:58:08 vadim Exp $
10
+ * $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.132 1999/10/08 04:28:45 momjian Exp $
11
11
*
12
12
* NOTES
13
13
* this is the "main" module of the postgres backend and
@@ -130,7 +130,7 @@ bool ExitAfterAbort = false;
130
130
131
131
extern int NBuffers ;
132
132
133
- static int EchoQuery = 0 ; /* default don't echo */
133
+ static bool EchoQuery = false ; /* default don't echo */
134
134
time_t tim ;
135
135
char pg_pathname [256 ];
136
136
FILE * StatFp ;
@@ -901,7 +901,7 @@ PostgresMain(int argc, char *argv[], int real_argc, char *real_argv[])
901
901
char * DBDate = NULL ;
902
902
extern int optind ;
903
903
extern char * optarg ;
904
- extern short DebugLvl ;
904
+ extern int DebugLvl ;
905
905
906
906
/*
907
907
* Set default values for command-line options.
@@ -1017,13 +1017,13 @@ PostgresMain(int argc, char *argv[], int real_argc, char *real_argv[])
1017
1017
break ;
1018
1018
1019
1019
case 'd' : /* debug level */
1020
- DebugLvl = ( short ) atoi (optarg );
1020
+ DebugLvl = atoi (optarg );
1021
1021
if (DebugLvl >= 1 )
1022
- Verbose = DebugLvl ;
1022
+ Verbose = true ;
1023
1023
if (DebugLvl >= 2 )
1024
1024
DebugPrintQuery = true;
1025
1025
if (DebugLvl >= 3 )
1026
- DebugPrintQuery = DebugLvl ;
1026
+ DebugPrintQuery = true ;
1027
1027
if (DebugLvl >= 4 )
1028
1028
{
1029
1029
DebugPrintParse = true;
@@ -1157,7 +1157,7 @@ PostgresMain(int argc, char *argv[], int real_argc, char *real_argv[])
1157
1157
* Q - set Quiet mode (reduce debugging output)
1158
1158
* ----------------
1159
1159
*/
1160
- Verbose = 0 ;
1160
+ Verbose = false ;
1161
1161
break ;
1162
1162
1163
1163
case 'S' :
@@ -1443,7 +1443,7 @@ PostgresMain(int argc, char *argv[], int real_argc, char *real_argv[])
1443
1443
*/
1444
1444
if (Verbose )
1445
1445
{
1446
- if (Verbose == 1 )
1446
+ if (Verbose )
1447
1447
{
1448
1448
TPRINTF (TRACE_VERBOSE , "started: host=%s user=%s database=%s" ,
1449
1449
remote_host , userName , DBName );
@@ -1455,7 +1455,7 @@ PostgresMain(int argc, char *argv[], int real_argc, char *real_argv[])
1455
1455
TPRINTF (TRACE_VERBOSE , "\tRemoteHost = %s" , remote_host );
1456
1456
TPRINTF (TRACE_VERBOSE , "\tRemotePort = %d" , remote_port );
1457
1457
TPRINTF (TRACE_VERBOSE , "\tDatabaseName = %s" , DBName );
1458
- TPRINTF (TRACE_VERBOSE , "\tVerbose = %d" , Verbose );
1458
+ TPRINTF (TRACE_VERBOSE , "\tDebug Level = %d" , DebugLvl );
1459
1459
TPRINTF (TRACE_VERBOSE , "\tNoversion = %c" , Noversion ? 't' : 'f' );
1460
1460
TPRINTF (TRACE_VERBOSE , "\ttimings = %c" , ShowStats ? 't' : 'f' );
1461
1461
TPRINTF (TRACE_VERBOSE , "\tdates = %s" ,
@@ -1508,7 +1508,7 @@ PostgresMain(int argc, char *argv[], int real_argc, char *real_argv[])
1508
1508
if (!IsUnderPostmaster )
1509
1509
{
1510
1510
puts ("\nPOSTGRES backend interactive interface " );
1511
- puts ("$Revision: 1.131 $ $Date: 1999/10/06 21:58:08 $\n" );
1511
+ puts ("$Revision: 1.132 $ $Date: 1999/10/08 04:28:45 $\n" );
1512
1512
}
1513
1513
1514
1514
/*
0 commit comments