Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
e78b0079
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,发现更多精彩内容 >>
提交
e78b0079
编写于
10月 02, 2003
作者:
P
Peter Eisentraut
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Change some notices to warnings and vice versa according to criteria
developed on -hackers.
上级
5b806ecf
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
31 addition
and
33 deletion
+31
-33
src/backend/commands/functioncmds.c
src/backend/commands/functioncmds.c
+2
-2
src/backend/commands/indexcmds.c
src/backend/commands/indexcmds.c
+2
-2
src/backend/commands/proclang.c
src/backend/commands/proclang.c
+2
-2
src/backend/commands/trigger.c
src/backend/commands/trigger.c
+2
-2
src/backend/commands/typecmds.c
src/backend/commands/typecmds.c
+7
-7
src/backend/parser/gram.y
src/backend/parser/gram.y
+10
-10
src/backend/tcop/postgres.c
src/backend/tcop/postgres.c
+4
-6
src/backend/tcop/utility.c
src/backend/tcop/utility.c
+2
-2
未找到文件。
src/backend/commands/functioncmds.c
浏览文件 @
e78b0079
...
...
@@ -9,7 +9,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/commands/functioncmds.c,v 1.3
7 2003/09/29 00:05:24
petere Exp $
* $Header: /cvsroot/pgsql/src/backend/commands/functioncmds.c,v 1.3
8 2003/10/02 06:34:03
petere Exp $
*
* DESCRIPTION
* These routines take the parse tree and pick out the
...
...
@@ -718,7 +718,7 @@ RenameFunction(List *name, List *argtypes, const char *newname)
*
* This is presently only used for adjusting legacy functions that return
* OPAQUE to return whatever we find their correct definition should be.
* The caller should emit a suitable
NOTICE
explaining what we did.
* The caller should emit a suitable
warning
explaining what we did.
*/
void
SetFunctionReturnType
(
Oid
funcOid
,
Oid
newRetType
)
...
...
src/backend/commands/indexcmds.c
浏览文件 @
e78b0079
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/commands/indexcmds.c,v 1.11
3 2003/09/29 16:37:29
petere Exp $
* $Header: /cvsroot/pgsql/src/backend/commands/indexcmds.c,v 1.11
4 2003/10/02 06:34:03
petere Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -654,7 +654,7 @@ ReindexTable(RangeVar *relation, bool force /* currently unused */ )
ReleaseSysCache
(
tuple
);
if
(
!
reindex_relation
(
heapOid
))
ereport
(
WARNING
,
ereport
(
NOTICE
,
(
errmsg
(
"table
\"
%s
\"
has no indexes"
,
relation
->
relname
)));
}
...
...
src/backend/commands/proclang.c
浏览文件 @
e78b0079
...
...
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/commands/proclang.c,v 1.5
0 2003/09/25 06:57:58
petere Exp $
* $Header: /cvsroot/pgsql/src/backend/commands/proclang.c,v 1.5
1 2003/10/02 06:34:03
petere Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -91,7 +91,7 @@ CreateProceduralLanguage(CreatePLangStmt *stmt)
*/
if
(
funcrettype
==
OPAQUEOID
)
{
ereport
(
NOTICE
,
ereport
(
WARNING
,
(
errcode
(
ERRCODE_WRONG_OBJECT_TYPE
),
errmsg
(
"changing return type of function %s from
\"
opaque
\"
to
\"
language_handler
\"
"
,
NameListToString
(
stmt
->
plhandler
))));
...
...
src/backend/commands/trigger.c
浏览文件 @
e78b0079
...
...
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/commands/trigger.c,v 1.15
8 2003/09/25 18:58:35 tgl
Exp $
* $Header: /cvsroot/pgsql/src/backend/commands/trigger.c,v 1.15
9 2003/10/02 06:34:03 petere
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -286,7 +286,7 @@ CreateTrigger(CreateTrigStmt *stmt, bool forConstraint)
*/
if
(
funcrettype
==
OPAQUEOID
)
{
ereport
(
NOTICE
,
ereport
(
WARNING
,
(
errmsg
(
"changing return type of function %s from
\"
opaque
\"
to
\"
trigger
\"
"
,
NameListToString
(
stmt
->
funcname
))));
SetFunctionReturnType
(
funcoid
,
TRIGGEROID
);
...
...
src/backend/commands/typecmds.c
浏览文件 @
e78b0079
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/commands/typecmds.c,v 1.4
7 2003/09/29 00:05:25
petere Exp $
* $Header: /cvsroot/pgsql/src/backend/commands/typecmds.c,v 1.4
8 2003/10/02 06:34:03
petere Exp $
*
* DESCRIPTION
* The "DefineFoo" routines take the parse tree and pick out the
...
...
@@ -271,7 +271,7 @@ DefineType(List *names, List *parameters)
if
(
resulttype
==
OPAQUEOID
)
{
/* backwards-compatibility hack */
ereport
(
NOTICE
,
ereport
(
WARNING
,
(
errmsg
(
"changing return type of function %s from
\"
opaque
\"
to %s"
,
NameListToString
(
inputName
),
typeName
)));
SetFunctionReturnType
(
inputOid
,
typoid
);
...
...
@@ -288,7 +288,7 @@ DefineType(List *names, List *parameters)
if
(
resulttype
==
OPAQUEOID
)
{
/* backwards-compatibility hack */
ereport
(
NOTICE
,
ereport
(
WARNING
,
(
errmsg
(
"changing return type of function %s from
\"
opaque
\"
to
\"
cstring
\"
"
,
NameListToString
(
outputName
))));
SetFunctionReturnType
(
outputOid
,
CSTRINGOID
);
...
...
@@ -839,7 +839,7 @@ findTypeInputFunction(List *procname, Oid typeOid)
* three arguments (string, element OID, typmod).
*
* For backwards compatibility we allow OPAQUE in place of CSTRING; if we
* see this, we issue a
NOTICE
and fix up the pg_proc entry.
* see this, we issue a
warning
and fix up the pg_proc entry.
*/
MemSet
(
argList
,
0
,
FUNC_MAX_ARGS
*
sizeof
(
Oid
));
...
...
@@ -874,7 +874,7 @@ findTypeInputFunction(List *procname, Oid typeOid)
if
(
OidIsValid
(
procOid
))
{
/* Found, but must complain and fix the pg_proc entry */
ereport
(
NOTICE
,
ereport
(
WARNING
,
(
errmsg
(
"changing argument type of function %s from
\"
opaque
\"
to
\"
cstring
\"
"
,
NameListToString
(
procname
))));
SetFunctionArgType
(
procOid
,
0
,
CSTRINGOID
);
...
...
@@ -910,7 +910,7 @@ findTypeOutputFunction(List *procname, Oid typeOid)
* arguments (data value, element OID).
*
* For backwards compatibility we allow OPAQUE in place of the actual
* type name; if we see this, we issue a
NOTICE
and fix up the pg_proc
* type name; if we see this, we issue a
warning
and fix up the pg_proc
* entry.
*/
MemSet
(
argList
,
0
,
FUNC_MAX_ARGS
*
sizeof
(
Oid
));
...
...
@@ -944,7 +944,7 @@ findTypeOutputFunction(List *procname, Oid typeOid)
if
(
OidIsValid
(
procOid
))
{
/* Found, but must complain and fix the pg_proc entry */
ereport
(
NOTICE
,
ereport
(
WARNING
,
(
errmsg
(
"changing argument type of function %s from
\"
opaque
\"
to %s"
,
NameListToString
(
procname
),
format_type_be
(
typeOid
))));
SetFunctionArgType
(
procOid
,
0
,
typeOid
);
...
...
src/backend/parser/gram.y
浏览文件 @
e78b0079
...
...
@@ -11,7 +11,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.43
5 2003/09/26 15:27:32
petere Exp $
* $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.43
6 2003/10/02 06:34:04
petere Exp $
*
* HISTORY
* AUTHOR DATE MAJOR EVENT
...
...
@@ -973,7 +973,7 @@ zone_value:
$3)));
if ($3 > MAX_INTERVAL_PRECISION)
{
ereport(
NOTICE
,
ereport(
WARNING
,
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
errmsg("INTERVAL(%d) precision reduced to maximum allowed, %d",
$3, MAX_INTERVAL_PRECISION)));
...
...
@@ -5091,7 +5091,7 @@ SimpleTypename:
$3)));
if ($3 > MAX_INTERVAL_PRECISION)
{
ereport(
NOTICE
,
ereport(
WARNING
,
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
errmsg("INTERVAL(%d) precision reduced to maximum allowed, %d",
$3, MAX_INTERVAL_PRECISION)));
...
...
@@ -5470,7 +5470,7 @@ ConstDatetime:
$3, ($5 ? " WITH TIME ZONE": ""))));
if ($3 > MAX_TIMESTAMP_PRECISION)
{
ereport(
NOTICE
,
ereport(
WARNING
,
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
errmsg("TIMESTAMP(%d)%s precision reduced to maximum allowed, %d",
$3, ($5 ? " WITH TIME ZONE": ""),
...
...
@@ -5511,7 +5511,7 @@ ConstDatetime:
$3, ($5 ? " WITH TIME ZONE": ""))));
if ($3 > MAX_TIME_PRECISION)
{
ereport(
NOTICE
,
ereport(
WARNING
,
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
errmsg("TIME(%d)%s precision reduced to maximum allowed, %d",
$3, ($5 ? " WITH TIME ZONE": ""),
...
...
@@ -6318,7 +6318,7 @@ c_expr: columnref { $$ = (Node *) $1; }
$3)));
if ($3 > MAX_TIME_PRECISION)
{
ereport(
NOTICE
,
ereport(
WARNING
,
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
errmsg("CURRENT_TIME(%d) precision reduced to maximum allowed, %d",
$3, MAX_TIME_PRECISION)));
...
...
@@ -6372,7 +6372,7 @@ c_expr: columnref { $$ = (Node *) $1; }
$3)));
if ($3 > MAX_TIMESTAMP_PRECISION)
{
ereport(
NOTICE
,
ereport(
WARNING
,
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
errmsg("CURRENT_TIMESTAMP(%d) precision reduced to maximum allowed, %d",
$3, MAX_TIMESTAMP_PRECISION)));
...
...
@@ -6425,7 +6425,7 @@ c_expr: columnref { $$ = (Node *) $1; }
$3)));
if ($3 > MAX_TIME_PRECISION)
{
ereport(
NOTICE
,
ereport(
WARNING
,
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
errmsg("LOCALTIME(%d) precision reduced to maximum allowed, %d",
$3, MAX_TIME_PRECISION)));
...
...
@@ -6479,7 +6479,7 @@ c_expr: columnref { $$ = (Node *) $1; }
$3)));
if ($3 > MAX_TIMESTAMP_PRECISION)
{
ereport(
NOTICE
,
ereport(
WARNING
,
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
errmsg("LOCALTIMESTAMP(%d) precision reduced to maximum allowed, %d",
$3, MAX_TIMESTAMP_PRECISION)));
...
...
@@ -7189,7 +7189,7 @@ AexprConst: Iconst
$3)));
if ($3 > MAX_INTERVAL_PRECISION)
{
ereport(
NOTICE
,
ereport(
WARNING
,
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
errmsg("INTERVAL(%d) precision reduced to maximum allowed, %d",
$3, MAX_INTERVAL_PRECISION)));
...
...
src/backend/tcop/postgres.c
浏览文件 @
e78b0079
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.36
8 2003/09/29 18:50:58 momjian
Exp $
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.36
9 2003/10/02 06:34:04 petere
Exp $
*
* NOTES
* this is the "main" module of the postgres backend and
...
...
@@ -559,8 +559,7 @@ pg_rewrite_queries(List *querytree_list)
new_list
=
(
List
*
)
copyObject
(
querytree_list
);
/* This checks both copyObject() and the equal() routines... */
if
(
!
equal
(
new_list
,
querytree_list
))
ereport
(
WARNING
,
(
errmsg
(
"copyObject() failed to produce an equal parse tree"
)));
elog
(
WARNING
,
"copyObject() failed to produce an equal parse tree"
);
else
querytree_list
=
new_list
;
#endif
...
...
@@ -604,8 +603,7 @@ pg_plan_query(Query *querytree)
#ifdef NOT_USED
/* This checks both copyObject() and the equal() routines... */
if
(
!
equal
(
new_plan
,
plan
))
ereport
(
WARNING
,
(
errmsg
(
"copyObject() failed to produce an equal plan tree"
)));
elog
(
WARNING
,
"copyObject() failed to produce an equal plan tree"
);
else
#endif
plan
=
new_plan
;
...
...
@@ -2654,7 +2652,7 @@ PostgresMain(int argc, char *argv[], const char *username)
if
(
!
IsUnderPostmaster
)
{
puts
(
"
\n
POSTGRES backend interactive interface "
);
puts
(
"$Revision: 1.36
8 $ $Date: 2003/09/29 18:50:58
$
\n
"
);
puts
(
"$Revision: 1.36
9 $ $Date: 2003/10/02 06:34:04
$
\n
"
);
}
/*
...
...
src/backend/tcop/utility.c
浏览文件 @
e78b0079
...
...
@@ -10,7 +10,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/tcop/utility.c,v 1.20
7 2003/09/24 18:54:01 tgl
Exp $
* $Header: /cvsroot/pgsql/src/backend/tcop/utility.c,v 1.20
8 2003/10/02 06:34:04 petere
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -1555,7 +1555,7 @@ CreateCommandTag(Node *parsetree)
break
;
default:
elog
(
NOTICE
,
"unrecognized node type: %d"
,
elog
(
WARNING
,
"unrecognized node type: %d"
,
(
int
)
nodeTag
(
parsetree
));
tag
=
"???"
;
break
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录