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
f7d25d2a
Commit
f7d25d2a
authored
May 01, 1999
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
-T was omitted from getopt() call.
parent
c422e1a9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
19 deletions
+24
-19
src/backend/tcop/postgres.c
src/backend/tcop/postgres.c
+24
-19
No files found.
src/backend/tcop/postgres.c
View file @
f7d25d2a
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.10
8 1999/04/25 03:19:10
tgl Exp $
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.10
9 1999/05/01 17:16:25
tgl Exp $
*
* NOTES
* this is the "main" module of the postgres backend and
...
...
@@ -907,26 +907,28 @@ usage(char *progname)
fprintf
(
stderr
,
"Usage: %s [options] [dbname]
\n
"
,
progname
);
#ifdef USE_ASSERT_CHECKING
fprintf
(
stderr
,
"
\t
-A enable/disable assert checking
\n
"
);
fprintf
(
stderr
,
"
\t
-A
on
\t\t
enable/disable assert checking
\n
"
);
#endif
fprintf
(
stderr
,
"
\t
-B buffers
\t
set number of buffers in buffer pool
\n
"
);
fprintf
(
stderr
,
"
\t
-C
\t\t
supress version info
\n
"
);
fprintf
(
stderr
,
"
\t
-C
\t\t
sup
p
ress version info
\n
"
);
fprintf
(
stderr
,
"
\t
-D dir
\t\t
data directory
\n
"
);
fprintf
(
stderr
,
"
\t
-E
\t\t
echo query before execution
\n
"
);
fprintf
(
stderr
,
"
\t
-F
\t\t
turn off fsync
\n
"
);
#ifdef LOCK_MGR_DEBUG
fprintf
(
stderr
,
"
\t
-K
\t\t
set locking debug level [0|1|2]
\n
"
);
fprintf
(
stderr
,
"
\t
-K
lev
\t\t
set locking debug level [0|1|2]
\n
"
);
#endif
fprintf
(
stderr
,
"
\t
-O
\t\t
allow system table structure changes
\n
"
);
fprintf
(
stderr
,
"
\t
-P port
\t\t
set port file descriptor
\n
"
);
fprintf
(
stderr
,
"
\t
-Q
\t\t
suppress informational messages
\n
"
);
fprintf
(
stderr
,
"
\t
-S buffers
\t
set amount of sort memory available
\n
"
);
fprintf
(
stderr
,
"
\t
-T options
\t
specify pg_options
\n
"
);
fprintf
(
stderr
,
"
\t
-W sec
\t\t
wait N seconds to allow attach from a debugger
\n
"
);
fprintf
(
stderr
,
"
\t
-d [1|2|3]
\t
set debug level
\n
"
);
fprintf
(
stderr
,
"
\t
-e
\t\t
turn on European date format
\n
"
);
fprintf
(
stderr
,
"
\t
-f [s|i|n|m|h]
\t
forbid use of some plan types
\n
"
);
fprintf
(
stderr
,
"
\t
-o file
\t\t
send stdout and stderr to given filename
\n
"
);
fprintf
(
stderr
,
"
\t
-s
\t\t
show stats after each query
\n
"
);
fprintf
(
stderr
,
"
\t
-v version
\t
set protocol version being used by frontend
\n
"
);
fprintf
(
stderr
,
"
\t
-W
\t\t
wait N seconds to allow attach from a debugger
\n
"
);
}
/* ----------------------------------------------------------------
...
...
@@ -1018,7 +1020,7 @@ PostgresMain(int argc, char *argv[], int real_argc, char *real_argv[])
optind
=
1
;
/* reset after postmaster usage */
while
((
flag
=
getopt
(
argc
,
argv
,
"A:B:CD:d:Ee
f:iK:Lm:MNOo:P:pQS:st:v:x:FW
:"
))
"A:B:CD:d:Ee
Ff:iK:LMm:NOo:P:pQS:sT:t:v:W:x
:"
))
!=
EOF
)
switch
(
flag
)
{
...
...
@@ -1051,7 +1053,7 @@ PostgresMain(int argc, char *argv[], int real_argc, char *real_argv[])
break
;
case
'D'
:
/* PGDATA directory */
if
(
!
DataDir
)
{
if
(
!
DataDir
)
{
DataDir
=
optarg
;
/* must be done after DataDir is defined */
read_pg_options
(
0
);
...
...
@@ -1147,12 +1149,14 @@ PostgresMain(int argc, char *argv[], int real_argc, char *real_argv[])
lockingOff
=
1
;
break
;
case
'm'
:
/* Multiplexed backends are no longer supported. */
break
;
case
'M'
:
exit
(
PostmasterMain
(
argc
,
argv
));
break
;
case
'm'
:
/* Multiplexed backends are no longer supported. */
break
;
case
'N'
:
/* ----------------
* N - Don't use newline as a query delimiter
...
...
@@ -1161,14 +1165,6 @@ PostgresMain(int argc, char *argv[], int real_argc, char *real_argv[])
UseNewLine
=
0
;
break
;
case
'o'
:
/* ----------------
* o - send output (stdout and stderr) to the given file
* ----------------
*/
StrNCpy
(
OutputFileName
,
optarg
,
MAXPGPATH
);
break
;
case
'O'
:
/* --------------------
* allow system table structure modifications
...
...
@@ -1177,6 +1173,14 @@ PostgresMain(int argc, char *argv[], int real_argc, char *real_argv[])
allowSystemTableMods
=
true
;
break
;
case
'o'
:
/* ----------------
* o - send output (stdout and stderr) to the given file
* ----------------
*/
StrNCpy
(
OutputFileName
,
optarg
,
MAXPGPATH
);
break
;
case
'p'
:
/* started by postmaster */
/* ----------------
* p - special flag passed if backend was forked
...
...
@@ -1314,6 +1318,7 @@ PostgresMain(int argc, char *argv[], int real_argc, char *real_argv[])
* ----------------
*/
errs
++
;
break
;
}
/* ----------------
...
...
@@ -1534,7 +1539,7 @@ PostgresMain(int argc, char *argv[], int real_argc, char *real_argv[])
if
(
!
IsUnderPostmaster
)
{
puts
(
"
\n
POSTGRES backend interactive interface "
);
puts
(
"$Revision: 1.10
8 $ $Date: 1999/04/25 03:19:10
$
\n
"
);
puts
(
"$Revision: 1.10
9 $ $Date: 1999/05/01 17:16:25
$
\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