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
2e67a677
Commit
2e67a677
authored
Jun 25, 2001
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a couple remaining places where GUC variables were assigned to
directly, rather than through SetConfigOption().
parent
4d58a7ca
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
17 deletions
+15
-17
src/backend/postmaster/postmaster.c
src/backend/postmaster/postmaster.c
+2
-4
src/backend/tcop/postgres.c
src/backend/tcop/postgres.c
+13
-13
No files found.
src/backend/postmaster/postmaster.c
View file @
2e67a677
...
...
@@ -37,7 +37,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.22
7 2001/06/23 22:23:49 momjian
Exp $
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.22
8 2001/06/25 22:56:05 tgl
Exp $
*
* NOTES
*
...
...
@@ -371,7 +371,7 @@ PostmasterMain(int argc, char *argv[])
/* PGPORT environment variable, if set, overrides GUC setting */
if
(
getenv
(
"PGPORT"
))
PostPortNumber
=
atoi
(
getenv
(
"PGPORT"
)
);
SetConfigOption
(
"port"
,
getenv
(
"PGPORT"
),
PGC_POSTMASTER
,
true
);
potential_DataDir
=
getenv
(
"PGDATA"
);
/* default value */
...
...
@@ -447,7 +447,6 @@ PostmasterMain(int argc, char *argv[])
/* already done above */
break
;
case
'd'
:
/*
* Turn on debugging for the postmaster and the backend
* servers descended from it.
...
...
@@ -561,7 +560,6 @@ PostmasterMain(int argc, char *argv[])
*/
if
(
NBuffers
<
2
*
MaxBackends
||
NBuffers
<
16
)
{
/*
* Do not accept -B so small that backends are likely to starve
* for lack of buffers. The specific choices here are somewhat
...
...
src/backend/tcop/postgres.c
View file @
2e67a677
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.22
5 2001/06/23 22:23:49 momjian
Exp $
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.22
6 2001/06/25 22:56:04 tgl
Exp $
*
* NOTES
* this is the "main" module of the postgres backend and
...
...
@@ -1108,7 +1108,7 @@ PostgresMain(int argc, char *argv[], int real_argc, char *real_argv[], const cha
int
flag
;
const
char
*
DBName
=
NULL
;
bool
secure
=
true
;
bool
secure
;
int
errs
=
0
;
GucContext
ctx
;
char
*
tmp
;
...
...
@@ -1120,9 +1120,6 @@ PostgresMain(int argc, char *argv[], int real_argc, char *real_argv[], const cha
unsigned
short
remote_port
;
char
*
potential_DataDir
=
NULL
;
/* all options are allowed until '-p' */
ctx
=
PGC_POSTMASTER
;
/*
* Catch standard options before doing much else. This even works on
...
...
@@ -1190,6 +1187,10 @@ PostgresMain(int argc, char *argv[], int real_argc, char *real_argv[], const cha
* ----------------
*/
/* all options are allowed until '-p' */
secure
=
true
;
ctx
=
PGC_POSTMASTER
;
optind
=
1
;
/* reset after postmaster's usage */
while
((
flag
=
getopt
(
argc
,
argv
,
"A:B:c:CD:d:Eef:FiLNOPo:p:S:st:v:W:x:-:"
))
!=
EOF
)
...
...
@@ -1225,18 +1226,17 @@ PostgresMain(int argc, char *argv[], int real_argc, char *real_argv[], const cha
break
;
case
'd'
:
/* debug level */
tmp
=
"true"
;
SetConfigOption
(
"debug_level"
,
optarg
,
ctx
,
true
);
if
(
DebugLvl
>=
1
)
SetConfigOption
(
"log_connections"
,
tmp
,
ctx
,
true
);
SetConfigOption
(
"log_connections"
,
"true"
,
ctx
,
true
);
if
(
DebugLvl
>=
2
)
SetConfigOption
(
"debug_print_query"
,
tmp
,
ctx
,
true
);
SetConfigOption
(
"debug_print_query"
,
"true"
,
ctx
,
true
);
if
(
DebugLvl
>=
3
)
SetConfigOption
(
"debug_print_parse"
,
tmp
,
ctx
,
true
);
SetConfigOption
(
"debug_print_parse"
,
"true"
,
ctx
,
true
);
if
(
DebugLvl
>=
4
)
SetConfigOption
(
"debug_print_plan"
,
tmp
,
ctx
,
true
);
SetConfigOption
(
"debug_print_plan"
,
"true"
,
ctx
,
true
);
if
(
DebugLvl
>=
5
)
SetConfigOption
(
"debug_print_rewritten"
,
tmp
,
ctx
,
true
);
SetConfigOption
(
"debug_print_rewritten"
,
"true"
,
ctx
,
true
);
break
;
case
'E'
:
...
...
@@ -1491,7 +1491,7 @@ PostgresMain(int argc, char *argv[], int real_argc, char *real_argv[], const cha
(
Show_parser_stats
||
Show_planner_stats
||
Show_executor_stats
))
{
fprintf
(
stderr
,
"Query statistics are disabled because parser, planner, or executor statistics are on.
\n
"
);
S
how_query_stats
=
false
;
S
etConfigOption
(
"show_query_stats"
,
"false"
,
ctx
,
true
)
;
}
if
(
!
IsUnderPostmaster
)
...
...
@@ -1714,7 +1714,7 @@ PostgresMain(int argc, char *argv[], int real_argc, char *real_argv[], const cha
if
(
!
IsUnderPostmaster
)
{
puts
(
"
\n
POSTGRES backend interactive interface "
);
puts
(
"$Revision: 1.22
5 $ $Date: 2001/06/23 22:23:49
$
\n
"
);
puts
(
"$Revision: 1.22
6 $ $Date: 2001/06/25 22:56:04
$
\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