Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
a4374f90
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,发现更多精彩内容 >>
提交
a4374f90
编写于
5月 27, 2005
作者:
N
Neil Conway
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Remove second argument from textToQualifiedNameList(), as it is no longer
used. From Jaime Casanova.
上级
357ea45b
变更
11
隐藏空白更改
内联
并排
Showing
11 changed file
with
26 addition
and
37 deletion
+26
-37
contrib/dblink/dblink.c
contrib/dblink/dblink.c
+1
-1
contrib/dbsize/dbsize.c
contrib/dbsize/dbsize.c
+2
-3
contrib/pgstattuple/pgstattuple.c
contrib/pgstattuple/pgstattuple.c
+2
-3
src/backend/catalog/pg_conversion.c
src/backend/catalog/pg_conversion.c
+2
-2
src/backend/commands/sequence.c
src/backend/commands/sequence.c
+5
-9
src/backend/utils/adt/acl.c
src/backend/utils/adt/acl.c
+2
-3
src/backend/utils/adt/not_in.c
src/backend/utils/adt/not_in.c
+2
-2
src/backend/utils/adt/ruleutils.c
src/backend/utils/adt/ruleutils.c
+4
-7
src/backend/utils/adt/tid.c
src/backend/utils/adt/tid.c
+2
-3
src/backend/utils/adt/varlena.c
src/backend/utils/adt/varlena.c
+2
-2
src/include/utils/builtins.h
src/include/utils/builtins.h
+2
-2
未找到文件。
contrib/dblink/dblink.c
浏览文件 @
a4374f90
...
...
@@ -1971,7 +1971,7 @@ get_relid_from_relname(text *relname_text)
Relation
rel
;
Oid
relid
;
relvar
=
makeRangeVarFromNameList
(
textToQualifiedNameList
(
relname_text
,
"get_relid_from_relname"
));
relvar
=
makeRangeVarFromNameList
(
textToQualifiedNameList
(
relname_text
));
rel
=
heap_openrv
(
relvar
,
AccessShareLock
);
relid
=
RelationGetRelid
(
rel
);
relation_close
(
rel
,
AccessShareLock
);
...
...
contrib/dbsize/dbsize.c
浏览文件 @
a4374f90
...
...
@@ -5,7 +5,7 @@
* Copyright (c) 2002-2005, PostgreSQL Global Development Group
*
* IDENTIFICATION
* $PostgreSQL: pgsql/contrib/dbsize/dbsize.c,v 1.1
6 2005/01/01 05:43:05 momjian
Exp $
* $PostgreSQL: pgsql/contrib/dbsize/dbsize.c,v 1.1
7 2005/05/27 00:57:48 neilc
Exp $
*
*/
...
...
@@ -290,8 +290,7 @@ relation_size(PG_FUNCTION_ARGS)
Oid
relnodeOid
;
Oid
tblspcOid
;
relrv
=
makeRangeVarFromNameList
(
textToQualifiedNameList
(
relname
,
"relation_size"
));
relrv
=
makeRangeVarFromNameList
(
textToQualifiedNameList
(
relname
));
relation
=
relation_openrv
(
relrv
,
AccessShareLock
);
tblspcOid
=
relation
->
rd_rel
->
reltablespace
;
...
...
contrib/pgstattuple/pgstattuple.c
浏览文件 @
a4374f90
/*
* $PostgreSQL: pgsql/contrib/pgstattuple/pgstattuple.c,v 1.1
7 2004/10/15 22:39:38 tgl
Exp $
* $PostgreSQL: pgsql/contrib/pgstattuple/pgstattuple.c,v 1.1
8 2005/05/27 00:57:49 neilc
Exp $
*
* Copyright (c) 2001,2002 Tatsuo Ishii
*
...
...
@@ -63,8 +63,7 @@ pgstattuple(PG_FUNCTION_ARGS)
Datum
result
;
/* open relation */
relrv
=
makeRangeVarFromNameList
(
textToQualifiedNameList
(
relname
,
"pgstattuple"
));
relrv
=
makeRangeVarFromNameList
(
textToQualifiedNameList
(
relname
));
rel
=
heap_openrv
(
relrv
,
AccessShareLock
);
result
=
pgstattuple_real
(
rel
);
...
...
src/backend/catalog/pg_conversion.c
浏览文件 @
a4374f90
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/catalog/pg_conversion.c,v 1.2
2 2005/04/14 20:03:23 tgl
Exp $
* $PostgreSQL: pgsql/src/backend/catalog/pg_conversion.c,v 1.2
3 2005/05/27 00:57:49 neilc
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -298,7 +298,7 @@ pg_convert_using(PG_FUNCTION_ARGS)
*
(
str
+
len
)
=
'\0'
;
/* Look up the conversion name */
parsed_name
=
textToQualifiedNameList
(
conv_name
,
"convert_using"
);
parsed_name
=
textToQualifiedNameList
(
conv_name
);
convoid
=
FindConversionByName
(
parsed_name
);
if
(
!
OidIsValid
(
convoid
))
ereport
(
ERROR
,
...
...
src/backend/commands/sequence.c
浏览文件 @
a4374f90
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/commands/sequence.c,v 1.1
19 2004/12/31 21:59:41 pgsql
Exp $
* $PostgreSQL: pgsql/src/backend/commands/sequence.c,v 1.1
20 2005/05/27 00:57:49 neilc
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -387,8 +387,7 @@ nextval(PG_FUNCTION_ARGS)
rescnt
=
0
;
bool
logit
=
false
;
sequence
=
makeRangeVarFromNameList
(
textToQualifiedNameList
(
seqin
,
"nextval"
));
sequence
=
makeRangeVarFromNameList
(
textToQualifiedNameList
(
seqin
));
/* open and AccessShareLock sequence */
init_sequence
(
sequence
,
&
elm
,
&
seqrel
);
...
...
@@ -579,8 +578,7 @@ currval(PG_FUNCTION_ARGS)
Relation
seqrel
;
int64
result
;
sequence
=
makeRangeVarFromNameList
(
textToQualifiedNameList
(
seqin
,
"currval"
));
sequence
=
makeRangeVarFromNameList
(
textToQualifiedNameList
(
seqin
));
/* open and AccessShareLock sequence */
init_sequence
(
sequence
,
&
elm
,
&
seqrel
);
...
...
@@ -715,8 +713,7 @@ setval(PG_FUNCTION_ARGS)
int64
next
=
PG_GETARG_INT64
(
1
);
RangeVar
*
sequence
;
sequence
=
makeRangeVarFromNameList
(
textToQualifiedNameList
(
seqin
,
"setval"
));
sequence
=
makeRangeVarFromNameList
(
textToQualifiedNameList
(
seqin
));
do_setval
(
sequence
,
next
,
true
);
...
...
@@ -735,8 +732,7 @@ setval_and_iscalled(PG_FUNCTION_ARGS)
bool
iscalled
=
PG_GETARG_BOOL
(
2
);
RangeVar
*
sequence
;
sequence
=
makeRangeVarFromNameList
(
textToQualifiedNameList
(
seqin
,
"setval"
));
sequence
=
makeRangeVarFromNameList
(
textToQualifiedNameList
(
seqin
));
do_setval
(
sequence
,
next
,
iscalled
);
...
...
src/backend/utils/adt/acl.c
浏览文件 @
a4374f90
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/utils/adt/acl.c,v 1.11
3 2004/12/31 22:01:21 pgsql
Exp $
* $PostgreSQL: pgsql/src/backend/utils/adt/acl.c,v 1.11
4 2005/05/27 00:57:49 neilc
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -1425,8 +1425,7 @@ convert_table_name(text *tablename)
{
RangeVar
*
relrv
;
relrv
=
makeRangeVarFromNameList
(
textToQualifiedNameList
(
tablename
,
"has_table_privilege"
));
relrv
=
makeRangeVarFromNameList
(
textToQualifiedNameList
(
tablename
));
return
RangeVarGetRelid
(
relrv
,
false
);
}
...
...
src/backend/utils/adt/not_in.c
浏览文件 @
a4374f90
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/utils/adt/not_in.c,v 1.4
2 2004/12/31 22:01:22 pgsql
Exp $
* $PostgreSQL: pgsql/src/backend/utils/adt/not_in.c,v 1.4
3 2005/05/27 00:57:49 neilc
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -56,7 +56,7 @@ int4notin(PG_FUNCTION_ARGS)
/* Parse the argument */
names
=
textToQualifiedNameList
(
relation_and_attr
,
"int4notin"
);
names
=
textToQualifiedNameList
(
relation_and_attr
);
nnames
=
list_length
(
names
);
if
(
nnames
<
2
)
ereport
(
ERROR
,
...
...
src/backend/utils/adt/ruleutils.c
浏览文件 @
a4374f90
...
...
@@ -3,7 +3,7 @@
* back to source text
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/utils/adt/ruleutils.c,v 1.19
5 2005/05/01 18:56:18 tgl
Exp $
* $PostgreSQL: pgsql/src/backend/utils/adt/ruleutils.c,v 1.19
6 2005/05/27 00:57:49 neilc
Exp $
*
* This software is copyrighted by Jan Wieck - Hamburg.
*
...
...
@@ -349,8 +349,7 @@ pg_get_viewdef_name(PG_FUNCTION_ARGS)
RangeVar
*
viewrel
;
Oid
viewoid
;
viewrel
=
makeRangeVarFromNameList
(
textToQualifiedNameList
(
viewname
,
"get_viewdef"
));
viewrel
=
makeRangeVarFromNameList
(
textToQualifiedNameList
(
viewname
));
viewoid
=
RangeVarGetRelid
(
viewrel
,
false
);
PG_RETURN_TEXT_P
(
string_to_text
(
pg_get_viewdef_worker
(
viewoid
,
0
)));
...
...
@@ -368,8 +367,7 @@ pg_get_viewdef_name_ext(PG_FUNCTION_ARGS)
Oid
viewoid
;
prettyFlags
=
pretty
?
PRETTYFLAG_PAREN
|
PRETTYFLAG_INDENT
:
0
;
viewrel
=
makeRangeVarFromNameList
(
textToQualifiedNameList
(
viewname
,
"get_viewdef"
));
viewrel
=
makeRangeVarFromNameList
(
textToQualifiedNameList
(
viewname
));
viewoid
=
RangeVarGetRelid
(
viewrel
,
false
);
PG_RETURN_TEXT_P
(
string_to_text
(
pg_get_viewdef_worker
(
viewoid
,
prettyFlags
)));
...
...
@@ -1252,8 +1250,7 @@ pg_get_serial_sequence(PG_FUNCTION_ARGS)
HeapTuple
tup
;
/* Get the OID of the table */
tablerv
=
makeRangeVarFromNameList
(
textToQualifiedNameList
(
tablename
,
"pg_get_serial_sequence"
));
tablerv
=
makeRangeVarFromNameList
(
textToQualifiedNameList
(
tablename
));
tableOid
=
RangeVarGetRelid
(
tablerv
,
false
);
/* Get the number of the column */
...
...
src/backend/utils/adt/tid.c
浏览文件 @
a4374f90
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/utils/adt/tid.c,v 1.4
8 2004/12/31 22:01:22 pgsql
Exp $
* $PostgreSQL: pgsql/src/backend/utils/adt/tid.c,v 1.4
9 2005/05/27 00:57:49 neilc
Exp $
*
* NOTES
* input routine largely stolen from boxin().
...
...
@@ -302,8 +302,7 @@ currtid_byrelname(PG_FUNCTION_ARGS)
RangeVar
*
relrv
;
Relation
rel
;
relrv
=
makeRangeVarFromNameList
(
textToQualifiedNameList
(
relname
,
"currtid_byrelname"
));
relrv
=
makeRangeVarFromNameList
(
textToQualifiedNameList
(
relname
));
rel
=
heap_openrv
(
relrv
,
AccessShareLock
);
if
(
rel
->
rd_rel
->
relkind
==
RELKIND_VIEW
)
return
currtid_for_view
(
rel
,
tid
);
...
...
src/backend/utils/adt/varlena.c
浏览文件 @
a4374f90
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/utils/adt/varlena.c,v 1.12
1 2005/05/20 01:29:55
neilc Exp $
* $PostgreSQL: pgsql/src/backend/utils/adt/varlena.c,v 1.12
2 2005/05/27 00:57:49
neilc Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -1618,7 +1618,7 @@ name_text(PG_FUNCTION_ARGS)
* truncate names if they're too long.
*/
List
*
textToQualifiedNameList
(
text
*
textval
,
const
char
*
caller
)
textToQualifiedNameList
(
text
*
textval
)
{
char
*
rawname
;
List
*
result
=
NIL
;
...
...
src/include/utils/builtins.h
浏览文件 @
a4374f90
...
...
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $PostgreSQL: pgsql/src/include/utils/builtins.h,v 1.25
6 2005/05/20 01:29:55
neilc Exp $
* $PostgreSQL: pgsql/src/include/utils/builtins.h,v 1.25
7 2005/05/27 00:57:49
neilc Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -562,7 +562,7 @@ extern Datum text_substr_no_len(PG_FUNCTION_ARGS);
extern
Datum
name_text
(
PG_FUNCTION_ARGS
);
extern
Datum
text_name
(
PG_FUNCTION_ARGS
);
extern
int
varstr_cmp
(
char
*
arg1
,
int
len1
,
char
*
arg2
,
int
len2
);
extern
List
*
textToQualifiedNameList
(
text
*
textval
,
const
char
*
caller
);
extern
List
*
textToQualifiedNameList
(
text
*
textval
);
extern
bool
SplitIdentifierString
(
char
*
rawstring
,
char
separator
,
List
**
namelist
);
extern
Datum
replace_text
(
PG_FUNCTION_ARGS
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录