Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
3af1cc67
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,发现更多精彩内容 >>
提交
3af1cc67
编写于
5月 27, 1998
作者:
B
Bruce Momjian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
postmaster/postgres options cleanup.
上级
b1eb7b59
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
62 addition
and
65 deletion
+62
-65
src/backend/libpq/pqcomm.c
src/backend/libpq/pqcomm.c
+2
-2
src/backend/postmaster/postmaster.c
src/backend/postmaster/postmaster.c
+15
-14
src/backend/tcop/postgres.c
src/backend/tcop/postgres.c
+17
-28
src/man/postgres.1
src/man/postgres.1
+28
-21
未找到文件。
src/backend/libpq/pqcomm.c
浏览文件 @
3af1cc67
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/libpq/pqcomm.c,v 1.4
1 1998/05/19 18:05:46
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/libpq/pqcomm.c,v 1.4
2 1998/05/27 18:32:01
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -621,7 +621,7 @@ StreamServerPort(char *hostName, short portName, int *fdP)
pqdebug
(
"%s"
,
PQerrormsg
);
strcat
(
PQerrormsg
,
"
\t
Is another postmaster already running on that port?
\n
"
);
if
(
family
==
AF_UNIX
)
strcat
(
PQerrormsg
,
"
\t
If not, remove socket node (/tmp/.s.PGSQL.<portnr>)and retry.
\n
"
);
strcat
(
PQerrormsg
,
"
\t
If not, remove socket node (/tmp/.s.PGSQL.<portn
umbe
r>)and retry.
\n
"
);
else
strcat
(
PQerrormsg
,
"
\t
If not, wait a few seconds and retry.
\n
"
);
fputs
(
PQerrormsg
,
stderr
);
...
...
src/backend/postmaster/postmaster.c
浏览文件 @
3af1cc67
...
...
@@ -10,7 +10,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.7
6 1998/03/30 16:47:11
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.7
7 1998/05/27 18:32:02
momjian Exp $
*
* NOTES
*
...
...
@@ -186,10 +186,10 @@ static char ExtraOptions[ARGV_SIZE] = "";
* the postmaster stop (rather than kill) peers and not reinitialize
* shared data structures.
*/
static
int
Reinit
=
1
;
static
int
SendStop
=
0
;
static
bool
Reinit
=
true
;
static
int
SendStop
=
false
;
static
int
NetServer
=
0
;
/* if not zero, postmaster listen for
static
bool
NetServer
=
false
;
/* if not zero, postmaster listen for
* non-local connections */
/*
...
...
@@ -360,7 +360,7 @@ PostmasterMain(int argc, char *argv[])
DebugLvl
=
1
;
break
;
case
'i'
:
NetServer
=
1
;
NetServer
=
true
;
break
;
case
'm'
:
/* Multiplexed backends no longer supported. */
...
...
@@ -375,7 +375,7 @@ PostmasterMain(int argc, char *argv[])
break
;
case
'n'
:
/* Don't reinit shared mem after abnormal exit */
Reinit
=
0
;
Reinit
=
false
;
break
;
case
'o'
:
...
...
@@ -408,7 +408,7 @@ PostmasterMain(int argc, char *argv[])
* lets the wily post_hacker collect core dumps from
* everyone.
*/
SendStop
=
1
;
SendStop
=
true
;
break
;
default:
/* usage() never returns */
...
...
@@ -508,17 +508,18 @@ pmdaemonize(void)
static
void
usage
(
const
char
*
progname
)
{
fprintf
(
stderr
,
"usage: %s [options
..
]
\n
"
,
progname
);
fprintf
(
stderr
,
"usage: %s [options]
\n
"
,
progname
);
fprintf
(
stderr
,
"
\t
-B nbufs
\t
set number of shared buffers
\n
"
);
fprintf
(
stderr
,
"
\t
-D datadir
\t
set data directory
\n
"
);
fprintf
(
stderr
,
"
\t
-S
\t\t
silent mode (disassociate from tty)
\n
"
);
fprintf
(
stderr
,
"
\t
-a system
\t
use this authentication system
\n
"
);
fprintf
(
stderr
,
"
\t
-b backend
\t
use a specific backend server executable
\n
"
);
fprintf
(
stderr
,
"
\t
-d [1|2|3]
\t
set debugging level
\n
"
);
fprintf
(
stderr
,
"
\t
-D datadir
\t
set data directory
\n
"
);
fprintf
(
stderr
,
"
\t
-i
\t
listen on TCP/IP sockets as well as Unix domain socket
\n
"
);
fprintf
(
stderr
,
"
\t
-n
\t\t
don't reinitialize shared memory after abnormal exit
\n
"
);
fprintf
(
stderr
,
"
\t
-i
\t\t
listen on TCP/IP sockets as well as Unix domain socket
\n
"
);
fprintf
(
stderr
,
"
\t
-n
\t\t
don't reinitialize shared memory after abnormal exit
\n
"
);
fprintf
(
stderr
,
"
\t
-o option
\t
pass 'option' to each backend servers
\n
"
);
fprintf
(
stderr
,
"
\t
-p port
\t\t
specify port for postmaster to listen on
\n
"
);
fprintf
(
stderr
,
"
\t
-S
\t\t
silent mode (disassociate from tty)
\n
"
);
fprintf
(
stderr
,
"
\t
-s
\t\t
send SIGSTOP to all backend servers if one dies
\n
"
);
fprintf
(
stderr
,
"
\t
-p port
\t
specify port for postmaster to listen on
\n
"
);
fprintf
(
stderr
,
"
\t
-s
\t\t
send SIGSTOP to all backend servers if one dies
\n
"
);
exit
(
1
);
}
...
...
src/backend/tcop/postgres.c
浏览文件 @
3af1cc67
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.7
0 1998/05/26 03:20:00
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.7
1 1998/05/27 18:32:03
momjian Exp $
*
* NOTES
* this is the "main" module of the postgres backend and
...
...
@@ -803,34 +803,23 @@ static void
usage
(
char
*
progname
)
{
fprintf
(
stderr
,
"Usage: %s [-B nbufs] [-d lvl] ] [-f plantype]
\t
[-v protocol] [
\t
-o filename]
\n
"
,
progname
);
fprintf
(
stderr
,
"
\t
[-P portno] [-t tracetype] [-x opttype] [-bCEiLFNopQSs] [dbname]
\n
"
);
fprintf
(
stderr
,
" b: consider bushy plan trees during optimization
\n
"
);
fprintf
(
stderr
,
" B: set number of buffers in buffer pool
\n
"
);
fprintf
(
stderr
,
" C: supress version info
\n
"
);
fprintf
(
stderr
,
" d: set debug level
\n
"
);
fprintf
(
stderr
,
" E: echo query before execution
\n
"
);
fprintf
(
stderr
,
" e turn on European date format
\n
"
);
fprintf
(
stderr
,
" F: turn off fsync
\n
"
);
fprintf
(
stderr
,
" f: forbid plantype generation
\n
"
);
fprintf
(
stderr
,
" i: don't execute the query, just show the plan tree
\n
"
);
"Usage: %s [options] [dbname]
\n
"
,
progname
);
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
-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
,
"
K:
set locking debug level [0|1|2]
\n
"
);
fprintf
(
stderr
,
"
\t
-K
\t\t
set locking debug level [0|1|2]
\n
"
);
#endif
fprintf
(
stderr
,
" L: turn off locking
\n
"
);
fprintf
(
stderr
,
" M: start as postmaster
\n
"
);
fprintf
(
stderr
,
" N: don't use newline as query delimiter
\n
"
);
fprintf
(
stderr
,
" o: send stdout and stderr to given filename
\n
"
);
fprintf
(
stderr
,
" p: backend started by postmaster
\n
"
);
fprintf
(
stderr
,
" P: set port file descriptor
\n
"
);
fprintf
(
stderr
,
" Q: suppress informational messages
\n
"
);
fprintf
(
stderr
,
" S: set amount of sort memory available
\n
"
);
fprintf
(
stderr
,
" s: show stats after each query
\n
"
);
fprintf
(
stderr
,
" t: trace component execution times
\n
"
);
fprintf
(
stderr
,
" T: execute all possible plans for each query
\n
"
);
fprintf
(
stderr
,
" v: set protocol version being used by frontend
\n
"
);
fprintf
(
stderr
,
" x: control expensive function optimization
\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
-d [1|2|3]
\t
set debug level
\n
"
);
fprintf
(
stderr
,
"
\t
-e
\t\t
turn on European date format
\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
"
);
}
/* ----------------------------------------------------------------
...
...
@@ -1328,7 +1317,7 @@ PostgresMain(int argc, char *argv[])
if
(
IsUnderPostmaster
==
false
)
{
puts
(
"
\n
POSTGRES backend interactive interface"
);
puts
(
"$Revision: 1.7
0 $ $Date: 1998/05/26 03:20:00
$"
);
puts
(
"$Revision: 1.7
1 $ $Date: 1998/05/27 18:32:03
$"
);
}
/* ----------------
...
...
src/man/postgres.1
浏览文件 @
3af1cc67
.\" This is -*-nroff-*-
.\" XXX standard disclaimer belongs here....
.\" $Header: /cvsroot/pgsql/src/man/Attic/postgres.1,v 1.1
0 1998/01/26 01:42:51 scrappy
Exp $
.\" $Header: /cvsroot/pgsql/src/man/Attic/postgres.1,v 1.1
1 1998/05/27 18:32:05 momjian
Exp $
.TH POSTGRESQL UNIX 12/08/96 PostgreSQL PostgreSQL
.SH NAME
postgres - the Postgres backend server
...
...
@@ -10,6 +10,9 @@ postgres - the Postgres backend server
.BR "-B"
n_buffers]
[\c
.BR "-C"
]
[\c
.BR "-D"
data_directory]
[\c
...
...
@@ -18,7 +21,6 @@ data_directory]
[\c
.BR "-F"
]
.br
[\c
.BR "-P"
filedes]
...
...
@@ -29,21 +31,20 @@ filedes]
.BR "-S n_buffers"
]
[\c
.BR "-e"
]
[\c
.BR "-v protocol"
]
.br
[\c
.BR "-d"
debug_level]
[\c
.BR "-e"
]
[\c
.BR "-o"
output_file]
[\c
.BR "-s"
]
[\c
.BR "-v protocol"
]
[dbname]
.in -5n
.SH DESCRIPTION
...
...
@@ -64,7 +65,20 @@ environment variable.
The
.IR postgres
server understands the following command-line options:
.TP 5n
.TP
.BR "-B" " n_buffers"
If the backend is running under the
.IR postmaster ,
.IR "n_buffers"
is the number of shared-memory buffers that the
.IR "postmaster"
has allocated for the backend server processes that it starts. If the
backend is running standalone, this specifies the number of buffers to
allocate. This value defaults to 64, and each buffer is 8k bytes.
.TP
.BR "-C"
Do not show server version number.
.TP
.BR "-D" " data_directory"
This option specifies the pathname of the directory that contains the
database system data (the tables, the catalogs, etc.). If you don't
...
...
@@ -77,16 +91,6 @@ the database system is created with
with a --pgdata option to
.IR initdb .
.TP
.BR "-B" " n_buffers"
If the backend is running under the
.IR postmaster ,
.IR "n_buffers"
is the number of shared-memory buffers that the
.IR "postmaster"
has allocated for the backend server processes that it starts. If the
backend is running standalone, this specifies the number of buffers to
allocate. This value defaults to 64, and each buffer is 8k bytes.
.TP
.BR "-E"
Echo all queries.
.TP
...
...
@@ -152,7 +156,7 @@ buffers.
.BR "-v" " protocol"
Specifies the number of the frontend/backend protocol to be used for this
particular session.
.SH "DE
PRECATED
COMMAND OPTIONS"
.SH "DE
VELOPER
COMMAND OPTIONS"
There are several other options that may be specified, used mainly
for debugging purposes. These are listed here only for the use by
Postgres system developers.
...
...
@@ -184,6 +188,9 @@ disable nested-loop, merge and hash joins respectively.
This is another feature that may not necessarily produce executable
plans.
.TP
.BR "-i"
Prevents query execution, but shows the plan tree.
.TP
.BR "-p"
Indicates to the backend server that it has been started by a
.IR postmaster
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录