Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
3c104bc4
G
Gpdb
项目概览
Greenplum
/
Gpdb
通知
7
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
Gpdb
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
3c104bc4
编写于
9月 26, 2002
作者:
B
Bruce Momjian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Pass postmaster -d down to the postgres backend to trigger special -d
handling in the backend.
上级
15b95cf8
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
17 addition
and
5 deletion
+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
未找到文件。
src/backend/postmaster/postmaster.c
浏览文件 @
3c104bc4
...
@@ -37,7 +37,7 @@
...
@@ -37,7 +37,7 @@
*
*
*
*
* IDENTIFICATION
* 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
* NOTES
*
*
...
@@ -230,6 +230,8 @@ bool ClientAuthInProgress = false; /* T during new-client
...
@@ -230,6 +230,8 @@ bool ClientAuthInProgress = false; /* T during new-client
static
unsigned
int
random_seed
=
0
;
static
unsigned
int
random_seed
=
0
;
static
int
debug_flag
=
0
;
extern
char
*
optarg
;
extern
char
*
optarg
;
extern
int
optind
,
extern
int
optind
,
opterr
;
opterr
;
...
@@ -452,6 +454,7 @@ PostmasterMain(int argc, char *argv[])
...
@@ -452,6 +454,7 @@ PostmasterMain(int argc, char *argv[])
SetConfigOption
(
"server_min_messages"
,
debugstr
,
SetConfigOption
(
"server_min_messages"
,
debugstr
,
PGC_POSTMASTER
,
PGC_S_ARGV
);
PGC_POSTMASTER
,
PGC_S_ARGV
);
pfree
(
debugstr
);
pfree
(
debugstr
);
debug_flag
=
atoi
(
optarg
);
break
;
break
;
}
}
case
'F'
:
case
'F'
:
...
@@ -2028,6 +2031,7 @@ DoBackend(Port *port)
...
@@ -2028,6 +2031,7 @@ DoBackend(Port *port)
char
*
remote_host
;
char
*
remote_host
;
char
*
av
[
ARGV_SIZE
*
2
];
char
*
av
[
ARGV_SIZE
*
2
];
int
ac
=
0
;
int
ac
=
0
;
char
debugbuf
[
ARGV_SIZE
];
char
protobuf
[
ARGV_SIZE
];
char
protobuf
[
ARGV_SIZE
];
char
dbbuf
[
ARGV_SIZE
];
char
dbbuf
[
ARGV_SIZE
];
char
optbuf
[
ARGV_SIZE
];
char
optbuf
[
ARGV_SIZE
];
...
@@ -2208,6 +2212,15 @@ DoBackend(Port *port)
...
@@ -2208,6 +2212,15 @@ DoBackend(Port *port)
av
[
ac
++
]
=
"postgres"
;
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
* Pass any backend switches specified with -o in the postmaster's own
* command line. We assume these are secure. (It's OK to mangle
* command line. We assume these are secure. (It's OK to mangle
...
...
src/backend/tcop/postgres.c
浏览文件 @
3c104bc4
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
*
*
*
*
* IDENTIFICATION
* 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
* NOTES
* this is the "main" module of the postgres backend and
* this is the "main" module of the postgres backend and
...
@@ -1281,8 +1281,7 @@ PostgresMain(int argc, char *argv[], const char *username)
...
@@ -1281,8 +1281,7 @@ PostgresMain(int argc, char *argv[], const char *username)
* -d 0 allows user to prevent postmaster debug
* -d 0 allows user to prevent postmaster debug
* from propagating to backend.
* from propagating to backend.
*/
*/
SetConfigOption
(
"server_min_messages"
,
"notice"
,
ResetPGVariable
(
"server_min_messages"
);
ctx
,
gucsource
);
}
}
break
;
break
;
...
@@ -1698,7 +1697,7 @@ PostgresMain(int argc, char *argv[], const char *username)
...
@@ -1698,7 +1697,7 @@ PostgresMain(int argc, char *argv[], const char *username)
if
(
!
IsUnderPostmaster
)
if
(
!
IsUnderPostmaster
)
{
{
puts
(
"
\n
POSTGRES backend interactive interface "
);
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
"
);
}
}
/*
/*
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录