Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
2af8b963
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,发现更多精彩内容 >>
提交
2af8b963
编写于
10月 08, 2000
作者:
T
Tatsuo Ishii
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add runtime configuration option "silent_mode".
This is equivalent to postmaster's -S option.
上级
be582825
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
24 addition
and
8 deletion
+24
-8
doc/src/sgml/runtime.sgml
doc/src/sgml/runtime.sgml
+16
-1
src/backend/postmaster/postmaster.c
src/backend/postmaster/postmaster.c
+4
-5
src/backend/utils/misc/guc.c
src/backend/utils/misc/guc.c
+2
-1
src/include/miscadmin.h
src/include/miscadmin.h
+2
-1
未找到文件。
doc/src/sgml/runtime.sgml
浏览文件 @
2af8b963
<!--
$Header: /cvsroot/pgsql/doc/src/sgml/runtime.sgml,v 1.2
6 2000/09/30 16:58:20 petere
Exp $
$Header: /cvsroot/pgsql/doc/src/sgml/runtime.sgml,v 1.2
7 2000/10/08 09:25:35 ishii
Exp $
-->
<Chapter Id="runtime">
...
...
@@ -962,6 +962,21 @@ env PGOPTIONS='--geqo=off' psql
</listitem>
</varlistentry>
<varlistentry>
<term>SILENT_MODE (<type>bool</type>)</term>
<listitem>
<para>
Runs postmaster silently. If this option is set, postmaser
will automatically run in background and any controlling ttys
are disassociated, thus no message is put to stdout or
stderr(same effect as postmaster's -S option). Unless some
logging systems such as syslog is enabled, using this option
is discouraged since it makes difficult to find error
messages.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>SORT_MEM (<type>integer</type>)</term>
<listitem>
...
...
src/backend/postmaster/postmaster.c
浏览文件 @
2af8b963
...
...
@@ -11,7 +11,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.16
8 2000/10/03 03:11:16 momjian
Exp $
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.16
9 2000/10/08 09:25:36 ishii
Exp $
*
* NOTES
*
...
...
@@ -194,7 +194,7 @@ static int SendStop = false;
bool
NetServer
=
false
;
/* listen on TCP/IP */
bool
EnableSSL
=
false
;
bool
SilentMode
=
false
;
/* silent mode (-S) */
static
pid_t
StartupPID
=
0
,
ShutdownPID
=
0
;
...
...
@@ -302,7 +302,6 @@ PostmasterMain(int argc, char *argv[])
{
int
opt
;
int
status
;
int
silentflag
=
0
;
char
original_extraoptions
[
MAXPGPATH
];
IsUnderPostmaster
=
true
;
/* so that backends know this */
...
...
@@ -501,7 +500,7 @@ PostmasterMain(int argc, char *argv[])
* it's most badly needed on SysV-derived systems like
* SVR4 and HP-UX.
*/
silentflag
=
1
;
SilentMode
=
true
;
break
;
case
's'
:
...
...
@@ -601,7 +600,7 @@ PostmasterMain(int argc, char *argv[])
BackendList
=
DLNewList
();
PortList
=
DLNewList
();
if
(
silentflag
)
if
(
SilentMode
)
pmdaemonize
(
argc
,
argv
);
else
{
...
...
src/backend/utils/misc/guc.c
浏览文件 @
2af8b963
...
...
@@ -4,7 +4,7 @@
* Support for grand unified configuration scheme, including SET
* command, configuration file, and command line options.
*
* $Header: /cvsroot/pgsql/src/backend/utils/misc/guc.c,v 1.1
1 2000/09/06 19:54:47 petere
Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/misc/guc.c,v 1.1
2 2000/10/08 09:25:37 ishii
Exp $
*
* Copyright 2000 by PostgreSQL Global Development Group
* Written by Peter Eisentraut <peter_e@gmx.net>.
...
...
@@ -162,6 +162,7 @@ ConfigureNamesBool[] =
{
"tcpip_socket"
,
PGC_POSTMASTER
,
&
NetServer
,
false
},
{
"ssl"
,
PGC_POSTMASTER
,
&
EnableSSL
,
false
},
{
"fsync"
,
PGC_USERSET
,
&
enableFsync
,
true
},
{
"silent_mode"
,
PGC_POSTMASTER
,
&
SilentMode
,
false
},
{
"log_connections"
,
PGC_SIGHUP
,
&
Log_connections
,
false
},
{
"log_timestamp"
,
PGC_SIGHUP
,
&
Log_timestamp
,
false
},
...
...
src/include/miscadmin.h
浏览文件 @
2af8b963
...
...
@@ -12,7 +12,7 @@
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Id: miscadmin.h,v 1.6
7 2000/09/19 18:17:58 petere
Exp $
* $Id: miscadmin.h,v 1.6
8 2000/10/08 09:25:38 ishii
Exp $
*
* NOTES
* some of the information in this file will be moved to
...
...
@@ -108,6 +108,7 @@ extern int SortMem;
extern
bool
NetServer
;
extern
bool
EnableSSL
;
extern
bool
SilentMode
;
extern
int
MaxBackends
;
extern
int
NBuffers
;
extern
int
PostPortName
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录