Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
2fd831d3
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,发现更多精彩内容 >>
提交
2fd831d3
编写于
5月 18, 2001
作者:
B
Bruce Momjian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Rename ParseFuncOrColumn() to ParseColumnOrFunc().
上级
dc0ff5c6
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
22 addition
and
19 deletion
+22
-19
src/backend/catalog/index.c
src/backend/catalog/index.c
+2
-2
src/backend/parser/parse_expr.c
src/backend/parser/parse_expr.c
+4
-4
src/backend/parser/parse_func.c
src/backend/parser/parse_func.c
+11
-8
src/backend/utils/adt/format_type.c
src/backend/utils/adt/format_type.c
+3
-3
src/include/parser/parse_func.h
src/include/parser/parse_func.h
+2
-2
未找到文件。
src/backend/catalog/index.c
浏览文件 @
2fd831d3
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/catalog/index.c,v 1.15
0 2001/05/16 22:36:03
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/catalog/index.c,v 1.15
1 2001/05/18 22:35:50
momjian Exp $
*
*
* INTERFACE ROUTINES
...
...
@@ -2175,12 +2175,12 @@ reindex_relation(Oid relid, bool force)
heap_endscan
(
scan
);
heap_close
(
indexRelation
,
AccessShareLock
);
if
(
reindexed
)
{
/*
* Ok,we could use the reindexed indexes of the target system
* relation now.
*/
{
if
(
deactivate_needed
)
{
if
(
!
overwrite
&&
relid
==
RelOid_pg_class
)
...
...
src/backend/parser/parse_expr.c
浏览文件 @
2fd831d3
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/parse_expr.c,v 1.9
3 2001/05/18 21:24:19
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/parser/parse_expr.c,v 1.9
4 2001/05/18 22:35:50
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -173,7 +173,7 @@ transformExpr(ParseState *pstate, Node *expr, int precedence)
a
->
lexpr
,
precedence
);
result
=
Parse
FuncOrColumn
(
pstate
,
result
=
Parse
ColumnOrFunc
(
pstate
,
"nullvalue"
,
makeList1
(
lexpr
),
false
,
false
,
...
...
@@ -186,7 +186,7 @@ transformExpr(ParseState *pstate, Node *expr, int precedence)
a
->
lexpr
,
precedence
);
result
=
Parse
FuncOrColumn
(
pstate
,
result
=
Parse
ColumnOrFunc
(
pstate
,
"nonnullvalue"
,
makeList1
(
lexpr
),
false
,
false
,
...
...
@@ -273,7 +273,7 @@ transformExpr(ParseState *pstate, Node *expr, int precedence)
lfirst
(
args
)
=
transformExpr
(
pstate
,
(
Node
*
)
lfirst
(
args
),
precedence
);
result
=
Parse
FuncOrColumn
(
pstate
,
result
=
Parse
ColumnOrFunc
(
pstate
,
fn
->
funcname
,
fn
->
args
,
fn
->
agg_star
,
...
...
src/backend/parser/parse_func.c
浏览文件 @
2fd831d3
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/parse_func.c,v 1.10
3 2001/05/18 21:24:19
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/parser/parse_func.c,v 1.10
4 2001/05/18 22:35:50
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -75,7 +75,7 @@ ParseNestedFuncOrColumn(ParseState *pstate, Attr *attr, int precedence)
(
Node
*
)
attr
->
paramNo
,
EXPR_RELATION_FIRST
);
retval
=
Parse
FuncOrColumn
(
pstate
,
strVal
(
lfirst
(
attr
->
attrs
)),
retval
=
Parse
ColumnOrFunc
(
pstate
,
strVal
(
lfirst
(
attr
->
attrs
)),
makeList1
(
param
),
false
,
false
,
precedence
);
...
...
@@ -86,7 +86,7 @@ ParseNestedFuncOrColumn(ParseState *pstate, Attr *attr, int precedence)
ident
->
name
=
attr
->
relname
;
ident
->
isRel
=
TRUE
;
retval
=
Parse
FuncOrColumn
(
pstate
,
strVal
(
lfirst
(
attr
->
attrs
)),
retval
=
Parse
ColumnOrFunc
(
pstate
,
strVal
(
lfirst
(
attr
->
attrs
)),
makeList1
(
ident
),
false
,
false
,
precedence
);
...
...
@@ -95,7 +95,7 @@ ParseNestedFuncOrColumn(ParseState *pstate, Attr *attr, int precedence)
/* Do more attributes follow this one? */
foreach
(
mutator_iter
,
lnext
(
attr
->
attrs
))
{
retval
=
Parse
FuncOrColumn
(
pstate
,
strVal
(
lfirst
(
mutator_iter
)),
retval
=
Parse
ColumnOrFunc
(
pstate
,
strVal
(
lfirst
(
mutator_iter
)),
makeList1
(
retval
),
false
,
false
,
precedence
);
...
...
@@ -235,10 +235,13 @@ agg_select_candidate(Oid typeid, CandidateList candidates)
/*
* parse function
* parse function
* This code is confusing code because the database can accept relation.column
* column.function, or relation.column.function.
* Funcname is the first parameter, and fargs are the rest.
*/
Node
*
Parse
FuncOrColumn
(
ParseState
*
pstate
,
char
*
funcname
,
List
*
fargs
,
Parse
ColumnOrFunc
(
ParseState
*
pstate
,
char
*
funcname
,
List
*
fargs
,
bool
agg_star
,
bool
agg_distinct
,
int
precedence
)
{
...
...
@@ -486,7 +489,7 @@ ParseFuncOrColumn(ParseState *pstate, char *funcname, List *fargs,
}
else
{
elog
(
ERROR
,
"Parse
FuncOrColumn
: unexpected node type %d"
,
elog
(
ERROR
,
"Parse
ColumnOrFunc
: unexpected node type %d"
,
nodeTag
(
rteorjoin
));
rte
=
NULL
;
/* keep compiler quiet */
}
...
...
@@ -1535,7 +1538,7 @@ make_arguments(ParseState *pstate,
/*
** setup_field_select
** Build a FieldSelect node that says which attribute to project to.
** This routine is called by Parse
FuncOrColumn
() when we have found
** This routine is called by Parse
ColumnOrFunc
() when we have found
** a projection on a function result or parameter.
*/
static
FieldSelect
*
...
...
src/backend/utils/adt/format_type.c
浏览文件 @
2fd831d3
...
...
@@ -8,7 +8,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/adt/format_type.c,v 1.1
0 2001/03/22 03:59:50
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/adt/format_type.c,v 1.1
1 2001/05/18 22:35:51
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -174,11 +174,11 @@ format_type_internal(Oid type_oid, int32 typemod)
break
;
case
TIMETZOID
:
buf
=
pstrdup
(
"time
with
time zone"
);
buf
=
pstrdup
(
"time
&
time zone"
);
break
;
case
TIMESTAMPOID
:
buf
=
pstrdup
(
"timestamp
with
time zone"
);
buf
=
pstrdup
(
"timestamp
&
time zone"
);
break
;
case
VARBITOID
:
...
...
src/include/parser/parse_func.h
浏览文件 @
2fd831d3
...
...
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Id: parse_func.h,v 1.
29 2001/03/22 04:00:57
momjian Exp $
* $Id: parse_func.h,v 1.
30 2001/05/18 22:35:51
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -40,7 +40,7 @@ typedef struct _CandidateList
extern
Node
*
ParseNestedFuncOrColumn
(
ParseState
*
pstate
,
Attr
*
attr
,
int
precedence
);
extern
Node
*
Parse
FuncOrColumn
(
ParseState
*
pstate
,
extern
Node
*
Parse
ColumnOrFunc
(
ParseState
*
pstate
,
char
*
funcname
,
List
*
fargs
,
bool
agg_star
,
bool
agg_distinct
,
int
precedence
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录