Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
e5e12f64
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,发现更多精彩内容 >>
提交
e5e12f64
编写于
7月 30, 1996
作者:
M
Marc G. Fournier
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
More cleanups by "Kurt J. Lidl" <lidl@va.pubnix.com>
上级
519496b6
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
23 addition
and
38 deletion
+23
-38
src/backend/access/sdir.h
src/backend/access/sdir.h
+5
-5
src/backend/executor/execMain.c
src/backend/executor/execMain.c
+7
-7
src/backend/executor/execdefs.h
src/backend/executor/execdefs.h
+1
-8
src/backend/executor/nodeMaterial.c
src/backend/executor/nodeMaterial.c
+2
-2
src/backend/executor/nodeSort.c
src/backend/executor/nodeSort.c
+2
-2
src/backend/storage/buffer/buf_table.c
src/backend/storage/buffer/buf_table.c
+1
-3
src/backend/storage/lmgr/lock.c
src/backend/storage/lmgr/lock.c
+1
-7
src/backend/utils/builtins.h
src/backend/utils/builtins.h
+2
-2
src/bin/psql/rlstubs.c
src/bin/psql/rlstubs.c
+2
-2
未找到文件。
src/backend/access/sdir.h
浏览文件 @
e5e12f64
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: sdir.h,v 1.
1.1.1 1996/07/09 06:21:09
scrappy Exp $
* $Id: sdir.h,v 1.
2 1996/07/30 07:44:57
scrappy Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -27,7 +27,7 @@ typedef enum ScanDirection {
...
@@ -27,7 +27,7 @@ typedef enum ScanDirection {
/*
/*
* ScanDirectionIsValid --
* ScanDirectionIsValid --
* True iff scan direc
it
on is valid.
* True iff scan direc
ti
on is valid.
*/
*/
#define ScanDirectionIsValid(direction) \
#define ScanDirectionIsValid(direction) \
((bool) (BackwardScanDirection <= direction && \
((bool) (BackwardScanDirection <= direction && \
...
@@ -35,21 +35,21 @@ typedef enum ScanDirection {
...
@@ -35,21 +35,21 @@ typedef enum ScanDirection {
/*
/*
* ScanDirectionIsBackward --
* ScanDirectionIsBackward --
* True iff scan direc
it
on is backward.
* True iff scan direc
ti
on is backward.
*/
*/
#define ScanDirectionIsBackward(direction) \
#define ScanDirectionIsBackward(direction) \
((bool) (direction == BackwardScanDirection))
((bool) (direction == BackwardScanDirection))
/*
/*
* ScanDirectionIsNoMovement --
* ScanDirectionIsNoMovement --
* True iff scan direc
it
on indicates no movement.
* True iff scan direc
ti
on indicates no movement.
*/
*/
#define ScanDirectionIsNoMovement(direction) \
#define ScanDirectionIsNoMovement(direction) \
((bool) (direction == NoMovementScanDirection))
((bool) (direction == NoMovementScanDirection))
/*
/*
* ScanDirectionIsForward --
* ScanDirectionIsForward --
* True iff scan direc
it
on is forward.
* True iff scan direc
ti
on is forward.
*/
*/
#define ScanDirectionIsForward(direction) \
#define ScanDirectionIsForward(direction) \
((bool) (direction == ForwardScanDirection))
((bool) (direction == ForwardScanDirection))
...
...
src/backend/executor/execMain.c
浏览文件 @
e5e12f64
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/executor/execMain.c,v 1.
1.1.1 1996/07/09 06:21:25
scrappy Exp $
* $Header: /cvsroot/pgsql/src/backend/executor/execMain.c,v 1.
2 1996/07/30 07:45:27
scrappy Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -49,7 +49,7 @@ static TupleDesc InitPlan(CmdType operation, Query *parseTree,
...
@@ -49,7 +49,7 @@ static TupleDesc InitPlan(CmdType operation, Query *parseTree,
static
void
EndPlan
(
Plan
*
plan
,
EState
*
estate
);
static
void
EndPlan
(
Plan
*
plan
,
EState
*
estate
);
static
TupleTableSlot
*
ExecutePlan
(
EState
*
estate
,
Plan
*
plan
,
static
TupleTableSlot
*
ExecutePlan
(
EState
*
estate
,
Plan
*
plan
,
Query
*
parseTree
,
CmdType
operation
,
Query
*
parseTree
,
CmdType
operation
,
int
numberTuples
,
int
direction
,
int
numberTuples
,
ScanDirection
direction
,
void
(
*
printfunc
)());
void
(
*
printfunc
)());
static
void
ExecRetrieve
(
TupleTableSlot
*
slot
,
void
(
*
printfunc
)(),
static
void
ExecRetrieve
(
TupleTableSlot
*
slot
,
void
(
*
printfunc
)(),
Relation
intoRelationDesc
);
Relation
intoRelationDesc
);
...
@@ -153,7 +153,7 @@ ExecutorRun(QueryDesc *queryDesc, EState *estate, int feature, int count)
...
@@ -153,7 +153,7 @@ ExecutorRun(QueryDesc *queryDesc, EState *estate, int feature, int count)
parseTree
,
parseTree
,
operation
,
operation
,
ALL_TUPLES
,
ALL_TUPLES
,
EXEC_FRWD
,
ForwardScanDirection
,
destination
);
destination
);
break
;
break
;
case
EXEC_FOR
:
case
EXEC_FOR
:
...
@@ -162,7 +162,7 @@ ExecutorRun(QueryDesc *queryDesc, EState *estate, int feature, int count)
...
@@ -162,7 +162,7 @@ ExecutorRun(QueryDesc *queryDesc, EState *estate, int feature, int count)
parseTree
,
parseTree
,
operation
,
operation
,
count
,
count
,
EXEC_FRWD
,
ForwardScanDirection
,
destination
);
destination
);
break
;
break
;
...
@@ -176,7 +176,7 @@ ExecutorRun(QueryDesc *queryDesc, EState *estate, int feature, int count)
...
@@ -176,7 +176,7 @@ ExecutorRun(QueryDesc *queryDesc, EState *estate, int feature, int count)
parseTree
,
parseTree
,
operation
,
operation
,
count
,
count
,
EXEC_BKWD
,
BackwardScanDirection
,
destination
);
destination
);
break
;
break
;
...
@@ -191,7 +191,7 @@ ExecutorRun(QueryDesc *queryDesc, EState *estate, int feature, int count)
...
@@ -191,7 +191,7 @@ ExecutorRun(QueryDesc *queryDesc, EState *estate, int feature, int count)
parseTree
,
parseTree
,
operation
,
operation
,
ONE_TUPLE
,
ONE_TUPLE
,
EXEC_FRWD
,
ForwardScanDirection
,
destination
);
destination
);
break
;
break
;
default:
default:
...
@@ -600,7 +600,7 @@ ExecutePlan(EState *estate,
...
@@ -600,7 +600,7 @@ ExecutePlan(EState *estate,
Query
*
parseTree
,
Query
*
parseTree
,
CmdType
operation
,
CmdType
operation
,
int
numberTuples
,
int
numberTuples
,
int
direction
,
ScanDirection
direction
,
void
(
*
printfunc
)())
void
(
*
printfunc
)())
{
{
Relation
intoRelationDesc
;
Relation
intoRelationDesc
;
...
...
src/backend/executor/execdefs.h
浏览文件 @
e5e12f64
...
@@ -6,20 +6,13 @@
...
@@ -6,20 +6,13 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: execdefs.h,v 1.
1.1.1 1996/07/09 06:21:25
scrappy Exp $
* $Id: execdefs.h,v 1.
2 1996/07/30 07:45:29
scrappy Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
#ifndef EXECDEFS_H
#ifndef EXECDEFS_H
#define EXECDEFS_H
#define EXECDEFS_H
/* ----------------
* executor scan direction definitions
* ----------------
*/
#define EXEC_FRWD 1
/* Scan forward */
#define EXEC_BKWD -1
/* Scan backward */
/* ----------------
/* ----------------
* ExecutePlan() tuplecount definitions
* ExecutePlan() tuplecount definitions
* ----------------
* ----------------
...
...
src/backend/executor/nodeMaterial.c
浏览文件 @
e5e12f64
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/executor/nodeMaterial.c,v 1.
1.1.1 1996/07/09 06:21:26
scrappy Exp $
* $Header: /cvsroot/pgsql/src/backend/executor/nodeMaterial.c,v 1.
2 1996/07/30 07:45:31
scrappy Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -79,7 +79,7 @@ ExecMaterial(Material *node)
...
@@ -79,7 +79,7 @@ ExecMaterial(Material *node)
* while creating the temporary relation.
* while creating the temporary relation.
* ----------------
* ----------------
*/
*/
estate
->
es_direction
=
EXEC_FRWD
;
estate
->
es_direction
=
ForwardScanDirection
;
/* ----------------
/* ----------------
* if we couldn't create the temp or current relations then
* if we couldn't create the temp or current relations then
...
...
src/backend/executor/nodeSort.c
浏览文件 @
e5e12f64
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/executor/nodeSort.c,v 1.
1.1.1 1996/07/09 06:21:27
scrappy Exp $
* $Header: /cvsroot/pgsql/src/backend/executor/nodeSort.c,v 1.
2 1996/07/30 07:45:35
scrappy Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -138,7 +138,7 @@ ExecSort(Sort *node)
...
@@ -138,7 +138,7 @@ ExecSort(Sort *node)
* while creating the temporary relation.
* while creating the temporary relation.
* ----------------
* ----------------
*/
*/
estate
->
es_direction
=
EXEC_FRWD
;
estate
->
es_direction
=
ForwardScanDirection
;
/* ----------------
/* ----------------
* if we couldn't create the temp or current relations then
* if we couldn't create the temp or current relations then
...
...
src/backend/storage/buffer/buf_table.c
浏览文件 @
e5e12f64
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/storage/buffer/buf_table.c,v 1.
1.1.1 1996/07/09 06:21:5
3 scrappy Exp $
* $Header: /cvsroot/pgsql/src/backend/storage/buffer/buf_table.c,v 1.
2 1996/07/30 07:47:2
3 scrappy Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -34,8 +34,6 @@
...
@@ -34,8 +34,6 @@
static
HTAB
*
SharedBufHash
;
static
HTAB
*
SharedBufHash
;
extern
HTAB
*
ShmemInitHash
();
typedef
struct
lookup
{
typedef
struct
lookup
{
BufferTag
key
;
BufferTag
key
;
Buffer
id
;
Buffer
id
;
...
...
src/backend/storage/lmgr/lock.c
浏览文件 @
e5e12f64
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/storage/lmgr/lock.c,v 1.
1.1.1 1996/07/09 06:21:56
scrappy Exp $
* $Header: /cvsroot/pgsql/src/backend/storage/lmgr/lock.c,v 1.
2 1996/07/30 07:47:33
scrappy Exp $
*
*
* NOTES
* NOTES
* Outside modules can create a lock table and acquire/release
* Outside modules can create a lock table and acquire/release
...
@@ -102,12 +102,6 @@ static MASK BITS_ON[MAX_LOCKTYPES];
...
@@ -102,12 +102,6 @@ static MASK BITS_ON[MAX_LOCKTYPES];
*/
*/
static
bool
LockingIsDisabled
;
static
bool
LockingIsDisabled
;
/* ------------------
* from storage/ipc/shmem.c
* ------------------
*/
extern
HTAB
*
ShmemInitHash
();
/* -------------------
/* -------------------
* map from tableId to the lock table structure
* map from tableId to the lock table structure
* -------------------
* -------------------
...
...
src/backend/utils/builtins.h
浏览文件 @
e5e12f64
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: builtins.h,v 1.
1.1.1 1996/07/09 06:22:01
scrappy Exp $
* $Id: builtins.h,v 1.
2 1996/07/30 07:47:42
scrappy Exp $
*
*
* NOTES
* NOTES
* This should normally only be included by fmgr.h.
* This should normally only be included by fmgr.h.
...
@@ -228,7 +228,7 @@ extern POLYGON *rt_poly_inter();
...
@@ -228,7 +228,7 @@ extern POLYGON *rt_poly_inter();
in executor/executor.h*/
in executor/executor.h*/
extern
int32
pqtest
();
extern
int32
pqtest
(
struct
varlena
*
vlena
);
/* arrayfuncs.c */
/* arrayfuncs.c */
#include "utils/array.h"
#include "utils/array.h"
...
...
src/bin/psql/rlstubs.c
浏览文件 @
e5e12f64
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/bin/psql/Attic/rlstubs.c,v 1.
1.1.1 1996/07/09 06:22:15
scrappy Exp $
* $Header: /cvsroot/pgsql/src/bin/psql/Attic/rlstubs.c,v 1.
2 1996/07/30 07:47:58
scrappy Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -18,7 +18,7 @@ readline(char *prompt)
...
@@ -18,7 +18,7 @@ readline(char *prompt)
{
{
static
char
buf
[
500
];
static
char
buf
[
500
];
printf
(
"%s"
);
printf
(
"%s"
,
prompt
);
return
fgets
(
buf
,
500
,
stdin
);
return
fgets
(
buf
,
500
,
stdin
);
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录