Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
18bbad76
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,发现更多精彩内容 >>
提交
18bbad76
编写于
11月 04, 1996
作者:
B
Bruce Momjian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Remove OPENLINK define
上级
0108fddf
变更
5
显示空白变更内容
内联
并排
Showing
5 changed file
with
6 addition
and
37 deletion
+6
-37
src/backend/storage/file/fd.c
src/backend/storage/file/fd.c
+1
-3
src/backend/storage/smgr/md.c
src/backend/storage/smgr/md.c
+1
-5
src/backend/tcop/postgres.c
src/backend/tcop/postgres.c
+3
-17
src/backend/utils/adt/varchar.c
src/backend/utils/adt/varchar.c
+1
-11
src/include/config.h
src/include/config.h
+0
-1
未找到文件。
src/backend/storage/file/fd.c
浏览文件 @
18bbad76
...
...
@@ -6,7 +6,7 @@
* Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
* $Id: fd.c,v 1.
6 1996/10/31 10:19:59 scrappy
Exp $
* $Id: fd.c,v 1.
7 1996/11/04 04:53:24 momjian
Exp $
*
* NOTES:
*
...
...
@@ -197,14 +197,12 @@ static int FileAccess(File file);
static
File
fileNameOpenFile
(
FileName
fileName
,
int
fileFlags
,
int
fileMode
);
static
char
*
filepath
(
char
*
filename
);
#ifdef OPENLINK_PATCHES
pg_fsync
(
fd
)
{
extern
int
fsyncOff
;
return
fsyncOff
?
0
:
fsync
(
fd
);
}
#define fsync pg_fsync
#endif
#if defined(FDDEBUG)
static
void
...
...
src/backend/storage/smgr/md.c
浏览文件 @
18bbad76
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/storage/smgr/md.c,v 1.
6 1996/11/03 05:07:55 scrappy
Exp $
* $Header: /cvsroot/pgsql/src/backend/storage/smgr/md.c,v 1.
7 1996/11/04 04:53:27 momjian
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -470,11 +470,7 @@ mdblindwrt(char *dbstr,
status
=
SM_SUCCESS
;
/* write and sync the block */
#ifdef OPENLINK_PATCHES
if
(
write
(
fd
,
buffer
,
BLCKSZ
)
!=
BLCKSZ
||
(
pg_fsync
(
fd
)
<
0
))
#else
if
(
write
(
fd
,
buffer
,
BLCKSZ
)
!=
BLCKSZ
||
fsync
(
fd
)
<
0
)
#endif
status
=
SM_FAIL
;
if
(
close
(
fd
)
<
0
)
...
...
src/backend/tcop/postgres.c
浏览文件 @
18bbad76
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.1
3 1996/11/03 06:52:33 scrappy
Exp $
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.1
4 1996/11/04 04:53:31 momjian
Exp $
*
* NOTES
* this is the "main" module of the postgres backend and
...
...
@@ -92,9 +92,7 @@ CommandDest whereToSendOutput;
extern
int
lockingOff
;
extern
int
NBuffers
;
#ifdef OPENLINK_PATCHES
int
fsyncOff
=
0
;
#endif
int
dontExecute
=
0
;
static
int
ShowStats
;
...
...
@@ -742,22 +740,16 @@ her exceeded legal ranges or was a divide by zero");
static
void
usage
(
char
*
progname
)
{
#ifdef OPENLINK_PATCHES
fprintf
(
stderr
,
"
\t
[-P portno] [-t tracetype] [-x opttype] [-bCEiLFNopQSs] [dbname]
\n
"
);
#else
fprintf
(
stderr
,
"Usage: %s [-B nbufs] [-d lvl] ] [-f plantype]
\t
[-m portno] [
\t
-o filename]
\n
"
,
progname
);
fprintf
(
stderr
,
"
\t
[-P portno] [-t tracetype] [-x opttype] [-bCEiLNopQSs] [dbname]
\n
"
);
#endif
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
"
);
#ifdef OPENLINK_PATCHES
fprintf
(
stderr
,
" F: turn off fsync
\n
"
);
#endif
fprintf
(
stderr
,
" f: forbid plantype generation
\n
"
);
fprintf
(
stderr
,
" i: don't execute the query, just show the plan tree
\n
"
);
fprintf
(
stderr
,
" L: turn off locking
\n
"
);
...
...
@@ -857,11 +849,7 @@ PostgresMain(int argc, char *argv[])
hostName
=
hostbuf
;
}
#ifdef OPENLINK_PATCHES
while
((
flag
=
getopt
(
argc
,
argv
,
"B:bCd:Ef:iLm:MNo:P:pQSst:x:F"
))
!=
EOF
)
#else
while
((
flag
=
getopt
(
argc
,
argv
,
"B:bCd:Ef:iLm:MNo:P:pQSst:x:"
))
!=
EOF
)
#endif
switch
(
flag
)
{
case
'b'
:
...
...
@@ -908,7 +896,6 @@ PostgresMain(int argc, char *argv[])
flagE
=
1
;
break
;
#ifdef OPENLINK_PATCHES
case
'F'
:
/* --------------------
* turn off fsync
...
...
@@ -916,7 +903,6 @@ PostgresMain(int argc, char *argv[])
*/
fsyncOff
=
1
;
break
;
#endif
case
'f'
:
/* -----------------
...
...
@@ -1264,7 +1250,7 @@ PostgresMain(int argc, char *argv[])
*/
if
(
IsUnderPostmaster
==
false
)
{
puts
(
"
\n
POSTGRES backend interactive interface"
);
puts
(
"$Revision: 1.1
3 $ $Date: 1996/11/03 06:52:33
$"
);
puts
(
"$Revision: 1.1
4 $ $Date: 1996/11/04 04:53:31
$"
);
}
/* ----------------
...
...
src/backend/utils/adt/varchar.c
浏览文件 @
18bbad76
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/adt/varchar.c,v 1.
3 1996/08/26 20:38:52 scrappy
Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/adt/varchar.c,v 1.
4 1996/11/04 04:53:37 momjian
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -68,13 +68,8 @@ bpcharin(char *s, int dummy, int typlen)
typlen
=
len
+
4
;
}
#ifndef OPENLINK_PATCHES
if
(
len
<
1
||
len
>
4096
)
elog
(
WARN
,
"bpcharin: length of char() must be between 1 and 4096"
);
#else
if
(
len
>
4096
)
elog
(
WARN
,
"bpcharin: length of char() must be less than 4096"
);
#endif
result
=
(
char
*
)
palloc
(
typlen
);
*
(
int32
*
)
result
=
typlen
;
...
...
@@ -137,13 +132,8 @@ varcharin(char *s, int dummy, int typlen)
typlen
=
len
+
4
;
}
#ifndef OPENLINK_PATCHES
if
(
len
<
1
||
len
>
4096
)
elog
(
WARN
,
"bpcharin: length of char() must be between 1 and 4096"
);
#else
if
(
len
>
4096
)
elog
(
WARN
,
"varcharin: length of char() must be less than 4096"
);
#endif
result
=
(
char
*
)
palloc
(
typlen
);
*
(
int32
*
)
result
=
typlen
;
...
...
src/include/config.h
浏览文件 @
18bbad76
...
...
@@ -180,7 +180,6 @@
/* found in src/backend/utils/adt/arrayfuncs.c */
/* #define LOARRAY */
#define OPENLINK_PATCHES
/* This is the time, in seconds, at which a given backend server
* will wait on a lock before deciding to abort the transaction
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录