Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
3ad406bb
Commit
3ad406bb
authored
May 06, 2003
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename internal variables DBName|dbName to dbname, for consistency.
parent
77a0219a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
14 deletions
+14
-14
src/backend/bootstrap/bootstrap.c
src/backend/bootstrap/bootstrap.c
+6
-6
src/backend/tcop/postgres.c
src/backend/tcop/postgres.c
+8
-8
No files found.
src/backend/bootstrap/bootstrap.c
View file @
3ad406bb
...
...
@@ -8,7 +8,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/bootstrap/bootstrap.c,v 1.15
3 2003/05/06 04:16:3
5 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/bootstrap/bootstrap.c,v 1.15
4 2003/05/06 05:15:4
5 momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -220,7 +220,7 @@ BootstrapMain(int argc, char *argv[])
*/
{
int
i
;
char
*
db
N
ame
;
char
*
db
n
ame
;
int
flag
;
int
xlogop
=
BS_XLOG_NOP
;
char
*
potential_DataDir
=
NULL
;
...
...
@@ -244,7 +244,7 @@ BootstrapMain(int argc, char *argv[])
*/
/* Set defaults, to be overriden by explicit options below */
db
N
ame
=
NULL
;
db
n
ame
=
NULL
;
if
(
!
IsUnderPostmaster
/* when exec || ExecBackend*/
)
{
InitializeGUCOptions
();
...
...
@@ -297,9 +297,9 @@ BootstrapMain(int argc, char *argv[])
if
(
argc
-
optind
!=
1
)
usage
();
db
N
ame
=
argv
[
optind
];
db
n
ame
=
argv
[
optind
];
Assert
(
db
N
ame
);
Assert
(
db
n
ame
);
if
(
IsUnderPostmaster
&&
ExecBackend
&&
MyProc
/* ordinary backend */
)
{
...
...
@@ -426,7 +426,7 @@ BootstrapMain(int argc, char *argv[])
/*
* backend initialization
*/
InitPostgres
(
db
N
ame
,
NULL
);
InitPostgres
(
db
n
ame
,
NULL
);
for
(
i
=
0
;
i
<
MAXATTR
;
i
++
)
{
...
...
src/backend/tcop/postgres.c
View file @
3ad406bb
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.33
4 2003/05/06 04:16:3
5 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.33
5 2003/05/06 05:15:4
5 momjian Exp $
*
* NOTES
* this is the "main" module of the postgres backend and
...
...
@@ -1748,7 +1748,7 @@ int
PostgresMain
(
int
argc
,
char
*
argv
[],
const
char
*
username
)
{
int
flag
;
const
char
*
DBN
ame
=
NULL
;
const
char
*
dbn
ame
=
NULL
;
char
*
potential_DataDir
=
NULL
;
bool
secure
;
int
errs
=
0
;
...
...
@@ -1987,7 +1987,7 @@ PostgresMain(int argc, char *argv[], const char *username)
*/
if
(
secure
)
{
DBN
ame
=
strdup
(
optarg
);
dbn
ame
=
strdup
(
optarg
);
secure
=
false
;
/* subsequent switches are NOT
* secure */
ctx
=
PGC_BACKEND
;
...
...
@@ -2238,7 +2238,7 @@ PostgresMain(int argc, char *argv[], const char *username)
if
(
IsUnderPostmaster
)
{
/* noninteractive case: nothing should be left after switches */
if
(
errs
||
argc
!=
optind
||
DBN
ame
==
NULL
)
if
(
errs
||
argc
!=
optind
||
dbn
ame
==
NULL
)
{
elog
(
WARNING
,
"%s: invalid command line arguments
\n
Try -? for help."
,
argv
[
0
]);
...
...
@@ -2260,8 +2260,8 @@ PostgresMain(int argc, char *argv[], const char *username)
proc_exit
(
1
);
}
else
if
(
argc
-
optind
==
1
)
DBN
ame
=
argv
[
optind
];
else
if
((
DBN
ame
=
username
)
==
NULL
)
dbn
ame
=
argv
[
optind
];
else
if
((
dbn
ame
=
username
)
==
NULL
)
{
elog
(
WARNING
,
"%s: user name undefined and no database specified"
,
argv
[
0
]);
...
...
@@ -2322,7 +2322,7 @@ PostgresMain(int argc, char *argv[], const char *username)
* that involves database access should be there, not here.
*/
elog
(
DEBUG2
,
"InitPostgres"
);
InitPostgres
(
DBN
ame
,
username
);
InitPostgres
(
dbn
ame
,
username
);
SetProcessingMode
(
NormalProcessing
);
...
...
@@ -2344,7 +2344,7 @@ PostgresMain(int argc, char *argv[], const char *username)
if
(
!
IsUnderPostmaster
)
{
puts
(
"
\n
POSTGRES backend interactive interface "
);
puts
(
"$Revision: 1.33
4 $ $Date: 2003/05/06 04:16:3
5 $
\n
"
);
puts
(
"$Revision: 1.33
5 $ $Date: 2003/05/06 05:15:4
5 $
\n
"
);
}
/*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment