Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
5c267325
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,发现更多精彩内容 >>
提交
5c267325
编写于
10月 14, 2004
作者:
B
Bruce Momjian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add 'int' cast for getpid() because some Solaris releases return long
for getpid().
上级
130972b4
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
12 addition
and
12 deletion
+12
-12
src/backend/access/transam/xlog.c
src/backend/access/transam/xlog.c
+4
-4
src/backend/postmaster/pgstat.c
src/backend/postmaster/pgstat.c
+2
-2
src/backend/postmaster/postmaster.c
src/backend/postmaster/postmaster.c
+2
-2
src/bin/psql/command.c
src/bin/psql/command.c
+2
-2
src/interfaces/ecpg/ecpglib/misc.c
src/interfaces/ecpg/ecpglib/misc.c
+2
-2
未找到文件。
src/backend/access/transam/xlog.c
浏览文件 @
5c267325
...
...
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2004, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.17
3 2004/10/12 21:54:35 petere
Exp $
* $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.17
4 2004/10/14 20:23:43 momjian
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -1513,7 +1513,7 @@ XLogFileInit(uint32 log, uint32 seg,
* up pre-creating an extra log segment. That seems OK, and better
* than holding the lock throughout this lengthy process.
*/
snprintf
(
tmppath
,
MAXPGPATH
,
"%s/xlogtemp.%d"
,
XLogDir
,
getpid
());
snprintf
(
tmppath
,
MAXPGPATH
,
"%s/xlogtemp.%d"
,
XLogDir
,
(
int
)
getpid
());
unlink
(
tmppath
);
...
...
@@ -1633,7 +1633,7 @@ XLogFileCopy(uint32 log, uint32 seg,
/*
* Copy into a temp file name.
*/
snprintf
(
tmppath
,
MAXPGPATH
,
"%s/xlogtemp.%d"
,
XLogDir
,
getpid
());
snprintf
(
tmppath
,
MAXPGPATH
,
"%s/xlogtemp.%d"
,
XLogDir
,
(
int
)
getpid
());
unlink
(
tmppath
);
...
...
@@ -2898,7 +2898,7 @@ writeTimeLineHistory(TimeLineID newTLI, TimeLineID parentTLI,
/*
* Write into a temp file name.
*/
snprintf
(
tmppath
,
MAXPGPATH
,
"%s/xlogtemp.%d"
,
XLogDir
,
getpid
());
snprintf
(
tmppath
,
MAXPGPATH
,
"%s/xlogtemp.%d"
,
XLogDir
,
(
int
)
getpid
());
unlink
(
tmppath
);
...
...
src/backend/postmaster/pgstat.c
浏览文件 @
5c267325
...
...
@@ -13,7 +13,7 @@
*
* Copyright (c) 2001-2004, PostgreSQL Global Development Group
*
* $PostgreSQL: pgsql/src/backend/postmaster/pgstat.c,v 1.8
0 2004/08/29 05:06:46
momjian Exp $
* $PostgreSQL: pgsql/src/backend/postmaster/pgstat.c,v 1.8
1 2004/10/14 20:23:44
momjian Exp $
* ----------
*/
#include "postgres.h"
...
...
@@ -1505,7 +1505,7 @@ PgstatCollectorMain(int argc, char *argv[])
snprintf
(
pgStat_fname
,
MAXPGPATH
,
PGSTAT_STAT_FILENAME
,
DataDir
);
/* tmpfname need only be set correctly in this process */
snprintf
(
pgStat_tmpfname
,
MAXPGPATH
,
PGSTAT_STAT_TMPFILE
,
DataDir
,
getpid
());
DataDir
,
(
int
)
getpid
());
/*
* Arrange to write the initial status file right away
...
...
src/backend/postmaster/postmaster.c
浏览文件 @
5c267325
...
...
@@ -37,7 +37,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.43
2 2004/10/12 21:54:40 petere
Exp $
* $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.43
3 2004/10/14 20:23:45 momjian
Exp $
*
* NOTES
*
...
...
@@ -2760,7 +2760,7 @@ BackendRun(Port *port)
*/
ereport
(
DEBUG3
,
(
errmsg_internal
(
"%s child[%d]: starting with ("
,
progname
,
getpid
())));
progname
,
(
int
)
getpid
())));
for
(
i
=
0
;
i
<
ac
;
++
i
)
ereport
(
DEBUG3
,
(
errmsg_internal
(
"
\t
%s"
,
av
[
i
])));
...
...
src/bin/psql/command.c
浏览文件 @
5c267325
...
...
@@ -3,7 +3,7 @@
*
* Copyright (c) 2000-2004, PostgreSQL Global Development Group
*
* $PostgreSQL: pgsql/src/bin/psql/command.c,v 1.12
7 2004/10/09 02:46:41
momjian Exp $
* $PostgreSQL: pgsql/src/bin/psql/command.c,v 1.12
8 2004/10/14 20:23:46
momjian Exp $
*/
#include "postgres_fe.h"
#include "command.h"
...
...
@@ -1133,7 +1133,7 @@ do_edit(const char *filename_arg, PQExpBuffer query_buf)
const
char
*
tmpdirenv
=
getenv
(
"TMPDIR"
);
snprintf
(
fnametmp
,
sizeof
(
fnametmp
),
"%s/psql.edit.%d.%d"
,
tmpdirenv
?
tmpdirenv
:
"/tmp"
,
geteuid
(),
getpid
());
tmpdirenv
?
tmpdirenv
:
"/tmp"
,
geteuid
(),
(
int
)
getpid
());
#else
GetTempFileName
(
"."
,
"psql"
,
0
,
fnametmp
);
#endif
...
...
src/interfaces/ecpg/ecpglib/misc.c
浏览文件 @
5c267325
/* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/misc.c,v 1.2
3 2004/10/09 02:46:42
momjian Exp $ */
/* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/misc.c,v 1.2
4 2004/10/14 20:23:46
momjian Exp $ */
#define POSTGRES_ECPG_INTERNAL
#include "postgres_fe.h"
...
...
@@ -253,7 +253,7 @@ ECPGlog(const char *format,...)
return
;
}
sprintf
(
f
,
"[%d]: %s"
,
getpid
(),
format
);
sprintf
(
f
,
"[%d]: %s"
,
(
int
)
getpid
(),
format
);
va_start
(
ap
,
format
);
vfprintf
(
debugstream
,
f
,
ap
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录