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
3c104bc4
Commit
3c104bc4
authored
Sep 26, 2002
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pass postmaster -d down to the postgres backend to trigger special -d
handling in the backend.
parent
15b95cf8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
5 deletions
+17
-5
src/backend/postmaster/postmaster.c
src/backend/postmaster/postmaster.c
+14
-1
src/backend/tcop/postgres.c
src/backend/tcop/postgres.c
+3
-4
No files found.
src/backend/postmaster/postmaster.c
View file @
3c104bc4
...
...
@@ -37,7 +37,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.28
8 2002/09/04 20:31:24
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.28
9 2002/09/26 05:17:00
momjian Exp $
*
* NOTES
*
...
...
@@ -230,6 +230,8 @@ bool ClientAuthInProgress = false; /* T during new-client
static
unsigned
int
random_seed
=
0
;
static
int
debug_flag
=
0
;
extern
char
*
optarg
;
extern
int
optind
,
opterr
;
...
...
@@ -452,6 +454,7 @@ PostmasterMain(int argc, char *argv[])
SetConfigOption
(
"server_min_messages"
,
debugstr
,
PGC_POSTMASTER
,
PGC_S_ARGV
);
pfree
(
debugstr
);
debug_flag
=
atoi
(
optarg
);
break
;
}
case
'F'
:
...
...
@@ -2028,6 +2031,7 @@ DoBackend(Port *port)
char
*
remote_host
;
char
*
av
[
ARGV_SIZE
*
2
];
int
ac
=
0
;
char
debugbuf
[
ARGV_SIZE
];
char
protobuf
[
ARGV_SIZE
];
char
dbbuf
[
ARGV_SIZE
];
char
optbuf
[
ARGV_SIZE
];
...
...
@@ -2208,6 +2212,15 @@ DoBackend(Port *port)
av
[
ac
++
]
=
"postgres"
;
/*
* Pass the requested debugging level along to the backend.
*/
if
(
debug_flag
>
0
)
{
sprintf
(
debugbuf
,
"-d%d"
,
debug_flag
);
av
[
ac
++
]
=
debugbuf
;
}
/*
* Pass any backend switches specified with -o in the postmaster's own
* command line. We assume these are secure. (It's OK to mangle
...
...
src/backend/tcop/postgres.c
View file @
3c104bc4
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.29
4 2002/09/25 20:31:40 tgl
Exp $
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.29
5 2002/09/26 05:17:00 momjian
Exp $
*
* NOTES
* this is the "main" module of the postgres backend and
...
...
@@ -1281,8 +1281,7 @@ PostgresMain(int argc, char *argv[], const char *username)
* -d 0 allows user to prevent postmaster debug
* from propagating to backend.
*/
SetConfigOption
(
"server_min_messages"
,
"notice"
,
ctx
,
gucsource
);
ResetPGVariable
(
"server_min_messages"
);
}
break
;
...
...
@@ -1698,7 +1697,7 @@ PostgresMain(int argc, char *argv[], const char *username)
if
(
!
IsUnderPostmaster
)
{
puts
(
"
\n
POSTGRES backend interactive interface "
);
puts
(
"$Revision: 1.29
4 $ $Date: 2002/09/25 20:31:4
0 $
\n
"
);
puts
(
"$Revision: 1.29
5 $ $Date: 2002/09/26 05:17:0
0 $
\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