77 *
88 *
99 * 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 $
1111 *
1212 * NOTES
1313 * this is the "main" module of the postgres backend and
@@ -130,7 +130,7 @@ boolExitAfterAbort = false;
130130
131131extern int NBuffers ;
132132
133- static int EchoQuery = 0 ;/* default don't echo */
133+ static bool EchoQuery = false ;/* default don't echo */
134134time_t tim ;
135135char pg_pathname [256 ];
136136FILE * StatFp ;
@@ -901,7 +901,7 @@ PostgresMain(int argc, char *argv[], int real_argc, char *real_argv[])
901901char * DBDate = NULL ;
902902extern int optind ;
903903extern char * optarg ;
904- extern short DebugLvl ;
904+ extern int DebugLvl ;
905905
906906/*
907907 * Set default values for command-line options.
@@ -1017,13 +1017,13 @@ PostgresMain(int argc, char *argv[], int real_argc, char *real_argv[])
10171017break ;
10181018
10191019case 'd' :/* debug level */
1020- DebugLvl = ( short ) atoi (optarg );
1020+ DebugLvl = atoi (optarg );
10211021if (DebugLvl >=1 )
1022- Verbose = DebugLvl ;
1022+ Verbose = true ;
10231023if (DebugLvl >=2 )
10241024DebugPrintQuery = true;
10251025if (DebugLvl >=3 )
1026- DebugPrintQuery = DebugLvl ;
1026+ DebugPrintQuery = true ;
10271027if (DebugLvl >=4 )
10281028{
10291029DebugPrintParse = true;
@@ -1157,7 +1157,7 @@ PostgresMain(int argc, char *argv[], int real_argc, char *real_argv[])
11571157 *Q - set Quiet mode (reduce debugging output)
11581158 * ----------------
11591159 */
1160- Verbose = 0 ;
1160+ Verbose = false ;
11611161break ;
11621162
11631163case 'S' :
@@ -1443,7 +1443,7 @@ PostgresMain(int argc, char *argv[], int real_argc, char *real_argv[])
14431443 */
14441444if (Verbose )
14451445{
1446- if (Verbose == 1 )
1446+ if (Verbose )
14471447{
14481448TPRINTF (TRACE_VERBOSE ,"started: host=%s user=%s database=%s" ,
14491449remote_host ,userName ,DBName );
@@ -1455,7 +1455,7 @@ PostgresMain(int argc, char *argv[], int real_argc, char *real_argv[])
14551455TPRINTF (TRACE_VERBOSE ,"\tRemoteHost = %s" ,remote_host );
14561456TPRINTF (TRACE_VERBOSE ,"\tRemotePort = %d" ,remote_port );
14571457TPRINTF (TRACE_VERBOSE ,"\tDatabaseName = %s" ,DBName );
1458- TPRINTF (TRACE_VERBOSE ,"\tVerbose = %d" ,Verbose );
1458+ TPRINTF (TRACE_VERBOSE ,"\tDebug Level = %d" ,DebugLvl );
14591459TPRINTF (TRACE_VERBOSE ,"\tNoversion = %c" ,Noversion ?'t' :'f' );
14601460TPRINTF (TRACE_VERBOSE ,"\ttimings = %c" ,ShowStats ?'t' :'f' );
14611461TPRINTF (TRACE_VERBOSE ,"\tdates = %s" ,
@@ -1508,7 +1508,7 @@ PostgresMain(int argc, char *argv[], int real_argc, char *real_argv[])
15081508if (!IsUnderPostmaster )
15091509{
15101510puts ("\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" );
15121512}
15131513
15141514/*