88 *
99 *
1010 * IDENTIFICATION
11- * $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.334 2003/05/0604:16:35 momjian Exp $
11+ * $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.335 2003/05/0605:15:45 momjian Exp $
1212 *
1313 * NOTES
1414 * this is the "main" module of the postgres backend and
@@ -1748,7 +1748,7 @@ int
17481748PostgresMain (int argc ,char * argv [],const char * username )
17491749{
17501750int flag ;
1751- const char * DBName = NULL ;
1751+ const char * dbname = NULL ;
17521752char * potential_DataDir = NULL ;
17531753bool secure ;
17541754int errs = 0 ;
@@ -1987,7 +1987,7 @@ PostgresMain(int argc, char *argv[], const char *username)
19871987 */
19881988if (secure )
19891989{
1990- DBName = strdup (optarg );
1990+ dbname = strdup (optarg );
19911991secure = false;/* subsequent switches are NOT
19921992 * secure */
19931993ctx = PGC_BACKEND ;
@@ -2238,7 +2238,7 @@ PostgresMain(int argc, char *argv[], const char *username)
22382238if (IsUnderPostmaster )
22392239{
22402240/* noninteractive case: nothing should be left after switches */
2241- if (errs || argc != optind || DBName == NULL )
2241+ if (errs || argc != optind || dbname == NULL )
22422242{
22432243elog (WARNING ,"%s: invalid command line arguments\nTry -? for help." ,
22442244argv [0 ]);
@@ -2260,8 +2260,8 @@ PostgresMain(int argc, char *argv[], const char *username)
22602260proc_exit (1 );
22612261}
22622262else if (argc - optind == 1 )
2263- DBName = argv [optind ];
2264- else if ((DBName = username )== NULL )
2263+ dbname = argv [optind ];
2264+ else if ((dbname = username )== NULL )
22652265{
22662266elog (WARNING ,"%s: user name undefined and no database specified" ,
22672267argv [0 ]);
@@ -2322,7 +2322,7 @@ PostgresMain(int argc, char *argv[], const char *username)
23222322 * that involves database access should be there, not here.
23232323 */
23242324elog (DEBUG2 ,"InitPostgres" );
2325- InitPostgres (DBName ,username );
2325+ InitPostgres (dbname ,username );
23262326
23272327SetProcessingMode (NormalProcessing );
23282328
@@ -2344,7 +2344,7 @@ PostgresMain(int argc, char *argv[], const char *username)
23442344if (!IsUnderPostmaster )
23452345{
23462346puts ("\nPOSTGRES backend interactive interface " );
2347- puts ("$Revision: 1.334 $ $Date: 2003/05/0604:16:35 $\n" );
2347+ puts ("$Revision: 1.335 $ $Date: 2003/05/0605:15:45 $\n" );
23482348}
23492349
23502350/*