Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
dc0ff5c6
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,发现更多精彩内容 >>
提交
dc0ff5c6
编写于
5月 18, 2001
作者:
B
Bruce Momjian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Small code cleanups,formatting.
上级
27b0e8c0
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
33 addition
and
35 deletion
+33
-35
src/backend/access/nbtree/nbtree.c
src/backend/access/nbtree/nbtree.c
+1
-5
src/backend/commands/define.c
src/backend/commands/define.c
+5
-5
src/backend/commands/vacuum.c
src/backend/commands/vacuum.c
+4
-2
src/backend/parser/analyze.c
src/backend/parser/analyze.c
+12
-12
src/backend/parser/parse_clause.c
src/backend/parser/parse_clause.c
+2
-2
src/backend/parser/parse_expr.c
src/backend/parser/parse_expr.c
+2
-2
src/backend/parser/parse_func.c
src/backend/parser/parse_func.c
+5
-5
src/backend/storage/ipc/sinval.c
src/backend/storage/ipc/sinval.c
+2
-2
未找到文件。
src/backend/access/nbtree/nbtree.c
浏览文件 @
dc0ff5c6
...
...
@@ -12,7 +12,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtree.c,v 1.8
0 2001/05/07 00:43:16 tgl
Exp $
* $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtree.c,v 1.8
1 2001/05/18 21:24:17 momjian
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -57,10 +57,8 @@ btbuild(PG_FUNCTION_ARGS)
Relation
index
=
(
Relation
)
PG_GETARG_POINTER
(
1
);
IndexInfo
*
indexInfo
=
(
IndexInfo
*
)
PG_GETARG_POINTER
(
2
);
Node
*
oldPred
=
(
Node
*
)
PG_GETARG_POINTER
(
3
);
#ifdef NOT_USED
IndexStrategy
istrat
=
(
IndexStrategy
)
PG_GETARG_POINTER
(
4
);
#endif
HeapScanDesc
hscan
;
HeapTuple
htup
;
...
...
@@ -72,11 +70,9 @@ btbuild(PG_FUNCTION_ARGS)
double
nhtups
,
nitups
;
Node
*
pred
=
indexInfo
->
ii_Predicate
;
#ifndef OMIT_PARTIAL_INDEX
TupleTable
tupleTable
;
TupleTableSlot
*
slot
;
#endif
ExprContext
*
econtext
;
InsertIndexResult
res
=
NULL
;
...
...
src/backend/commands/define.c
浏览文件 @
dc0ff5c6
...
...
@@ -10,7 +10,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/commands/define.c,v 1.5
4 2001/03/22 06:16:11
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/commands/define.c,v 1.5
5 2001/05/18 21:24:18
momjian Exp $
*
* DESCRIPTION
* The "DefineFoo" routines take the parse tree and pick out the
...
...
@@ -384,15 +384,15 @@ DefineOperator(char *oprName,
if
(
strcasecmp
(
defel
->
defname
,
"leftarg"
)
==
0
)
{
typeName1
=
defGetString
(
defel
);
if
(
IsA
(
defel
->
arg
,
TypeName
)
&&
((
TypeName
*
)
defel
->
arg
)
->
setof
)
if
(
IsA
(
defel
->
arg
,
TypeName
)
&&
((
TypeName
*
)
defel
->
arg
)
->
setof
)
elog
(
ERROR
,
"setof type not implemented for leftarg"
);
}
else
if
(
strcasecmp
(
defel
->
defname
,
"rightarg"
)
==
0
)
{
typeName2
=
defGetString
(
defel
);
if
(
IsA
(
defel
->
arg
,
TypeName
)
&&
((
TypeName
*
)
defel
->
arg
)
->
setof
)
if
(
IsA
(
defel
->
arg
,
TypeName
)
&&
((
TypeName
*
)
defel
->
arg
)
->
setof
)
elog
(
ERROR
,
"setof type not implemented for rightarg"
);
}
else
if
(
strcasecmp
(
defel
->
defname
,
"procedure"
)
==
0
)
...
...
src/backend/commands/vacuum.c
浏览文件 @
dc0ff5c6
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.19
2 2001/05/17 15:55:24
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.19
3 2001/05/18 21:24:18
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -836,7 +836,9 @@ scan_heap(VRelStats *vacrelstats, Relation onerel,
* If tuple is recently deleted then we must not remove it
* from relation.
*/
if
(
tupgone
&&
(
tuple
.
t_data
->
t_infomask
&
HEAP_XMIN_INVALID
)
==
0
&&
tuple
.
t_data
->
t_xmax
>=
XmaxRecent
)
if
(
tupgone
&&
(
tuple
.
t_data
->
t_infomask
&
HEAP_XMIN_INVALID
)
==
0
&&
tuple
.
t_data
->
t_xmax
>=
XmaxRecent
)
{
tupgone
=
false
;
nkeep
++
;
...
...
src/backend/parser/analyze.c
浏览文件 @
dc0ff5c6
...
...
@@ -6,7 +6,7 @@
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Header: /cvsroot/pgsql/src/backend/parser/analyze.c,v 1.18
5 2001/05/09 21:10:3
9 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/parser/analyze.c,v 1.18
6 2001/05/18 21:24:1
9 momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -232,6 +232,7 @@ transformStmt(ParseState *pstate, Node *parseTree)
(
SelectStmt
*
)
parseTree
);
break
;
default:
/*
...
...
@@ -1224,7 +1225,7 @@ transformCreateStmt(ParseState *pstate, CreateStmt *stmt)
break
;
}
}
if
(
!
found
)
if
(
!
found
)
break
;
}
if
(
!
found
)
...
...
@@ -1261,16 +1262,16 @@ transformCreateStmt(ParseState *pstate, CreateStmt *stmt)
pkattr
->
isRel
=
false
;
fkconstraint
->
pk_attrs
=
lappend
(
fkconstraint
->
pk_attrs
,
pkattr
);
foreach
(
findattr
,
stmt
->
tableElts
)
{
col
=
lfirst
(
findattr
);
if
(
strcmp
(
col
->
colname
,
ielem
->
name
)
==
0
)
{
col
=
lfirst
(
findattr
);
if
(
strcmp
(
col
->
colname
,
ielem
->
name
)
==
0
)
{
char
*
buff
=
TypeNameToInternalName
(
col
->
typename
);
Oid
type
=
typenameTypeId
(
buff
);
if
(
!
OidIsValid
(
type
))
{
elog
(
ERROR
,
"Unable to lookup type %s"
,
col
->
typename
->
name
);
}
pktypoid
[
attnum
++
]
=
type
;
/* need to convert typename */
break
;
}
if
(
!
OidIsValid
(
type
))
{
elog
(
ERROR
,
"Unable to lookup type %s"
,
col
->
typename
->
name
);
}
pktypoid
[
attnum
++
]
=
type
;
/* need to convert typename */
break
;
}
}
}
}
...
...
@@ -1959,8 +1960,7 @@ transformSelectStmt(ParseState *pstate, SelectStmt *stmt)
* The tree of set operations is converted into the setOperations field of
* the top-level Query.
*/
static
Query
*
transformSetOperationStmt
(
ParseState
*
pstate
,
SelectStmt
*
stmt
)
static
Query
*
transformSetOperationStmt
(
ParseState
*
pstate
,
SelectStmt
*
stmt
)
{
Query
*
qry
=
makeNode
(
Query
);
SelectStmt
*
leftmostSelect
;
...
...
src/backend/parser/parse_clause.c
浏览文件 @
dc0ff5c6
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/parse_clause.c,v 1.
79 2001/03/22 06:16:16
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/parser/parse_clause.c,v 1.
80 2001/05/18 21:24:19
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -843,7 +843,7 @@ findTargetlistEntry(ParseState *pstate, Node *node, List *tlist, int clause)
* an expression.
*----------
*/
if
(
IsA
(
node
,
Ident
)
&&
((
Ident
*
)
node
)
->
indirection
==
NIL
)
if
(
IsA
(
node
,
Ident
)
&&
((
Ident
*
)
node
)
->
indirection
==
NIL
)
{
char
*
name
=
((
Ident
*
)
node
)
->
name
;
...
...
src/backend/parser/parse_expr.c
浏览文件 @
dc0ff5c6
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/parse_expr.c,v 1.9
2 2001/03/22 03:59:41
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/parser/parse_expr.c,v 1.9
3 2001/05/18 21:24:19
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -573,7 +573,7 @@ transformIdent(ParseState *pstate, Ident *ident, int precedence)
* appear
*/
if
(
ident
->
indirection
==
NIL
&&
refnameRangeOrJoinEntry
(
pstate
,
ident
->
name
,
&
sublevels_up
)
!=
NULL
)
refnameRangeOrJoinEntry
(
pstate
,
ident
->
name
,
&
sublevels_up
)
!=
NULL
)
{
ident
->
isRel
=
TRUE
;
result
=
(
Node
*
)
ident
;
...
...
src/backend/parser/parse_func.c
浏览文件 @
dc0ff5c6
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/parse_func.c,v 1.10
2 2001/04/18 22:25:31 tgl
Exp $
* $Header: /cvsroot/pgsql/src/backend/parser/parse_func.c,v 1.10
3 2001/05/18 21:24:19 momjian
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -287,7 +287,7 @@ ParseFuncOrColumn(ParseState *pstate, char *funcname, List *fargs,
if
(
nargs
==
1
&&
!
must_be_agg
)
{
/* Is it a plain Relation name from the parser? */
if
(
IsA
(
first_arg
,
Ident
)
&&
((
Ident
*
)
first_arg
)
->
isRel
)
if
(
IsA
(
first_arg
,
Ident
)
&&
((
Ident
*
)
first_arg
)
->
isRel
)
{
Ident
*
ident
=
(
Ident
*
)
first_arg
;
...
...
@@ -347,7 +347,7 @@ ParseFuncOrColumn(ParseState *pstate, char *funcname, List *fargs,
if
(
nargs
!=
1
)
elog
(
ERROR
,
"Aggregate functions may only have one parameter"
);
/* Agg's argument can't be a relation name, either */
if
(
IsA
(
first_arg
,
Ident
)
&&
((
Ident
*
)
first_arg
)
->
isRel
)
if
(
IsA
(
first_arg
,
Ident
)
&&
((
Ident
*
)
first_arg
)
->
isRel
)
elog
(
ERROR
,
"Aggregate functions cannot be applied to relation names"
);
could_be_agg
=
true
;
}
...
...
@@ -355,7 +355,7 @@ ParseFuncOrColumn(ParseState *pstate, char *funcname, List *fargs,
{
/* Try to parse as an aggregate if above-mentioned checks are OK */
could_be_agg
=
(
nargs
==
1
)
&&
!
(
IsA
(
first_arg
,
Ident
)
&&
((
Ident
*
)
first_arg
)
->
isRel
);
!
(
IsA
(
first_arg
,
Ident
)
&&
((
Ident
*
)
first_arg
)
->
isRel
);
}
if
(
could_be_agg
)
...
...
@@ -434,7 +434,7 @@ ParseFuncOrColumn(ParseState *pstate, char *funcname, List *fargs,
{
Node
*
arg
=
lfirst
(
i
);
if
(
IsA
(
arg
,
Ident
)
&&
((
Ident
*
)
arg
)
->
isRel
)
if
(
IsA
(
arg
,
Ident
)
&&
((
Ident
*
)
arg
)
->
isRel
)
{
RangeTblEntry
*
rte
;
int
vnum
;
...
...
src/backend/storage/ipc/sinval.c
浏览文件 @
dc0ff5c6
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/sinval.c,v 1.3
0 2001/05/07 17:20:19
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/sinval.c,v 1.3
1 2001/05/18 21:24:20
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -235,7 +235,7 @@ TransactionIdIsInProgress(TransactionId xid)
/*
* GetXmaxRecent -- returns oldest transaction that was running
* when all current transaction w
as
started.
* when all current transaction w
ere
started.
* It's used by vacuum to decide what deleted
* tuples must be preserved in a table.
*/
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录