Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
27af6616
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,发现更多精彩内容 >>
提交
27af6616
编写于
7月 05, 2011
作者:
P
Peter Eisentraut
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Message style tweaks
上级
d479a0f9
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
18 addition
and
17 deletion
+18
-17
src/backend/commands/tablecmds.c
src/backend/commands/tablecmds.c
+2
-1
src/backend/parser/parse_utilcmd.c
src/backend/parser/parse_utilcmd.c
+1
-1
src/backend/port/win32/crashdump.c
src/backend/port/win32/crashdump.c
+5
-5
src/backend/storage/lmgr/predicate.c
src/backend/storage/lmgr/predicate.c
+1
-1
src/backend/utils/adt/varlena.c
src/backend/utils/adt/varlena.c
+1
-1
src/backend/utils/misc/guc.c
src/backend/utils/misc/guc.c
+4
-4
src/test/regress/expected/foreign_data.out
src/test/regress/expected/foreign_data.out
+2
-2
src/test/regress/expected/text.out
src/test/regress/expected/text.out
+1
-1
src/test/regress/sql/foreign_data.sql
src/test/regress/sql/foreign_data.sql
+1
-1
未找到文件。
src/backend/commands/tablecmds.c
浏览文件 @
27af6616
...
...
@@ -6924,7 +6924,8 @@ ATPrepAlterColumnType(List **wqueue,
else
if
(
transform
)
ereport
(
ERROR
,
(
errcode
(
ERRCODE_WRONG_OBJECT_TYPE
),
errmsg
(
"ALTER TYPE USING is only supported on plain tables"
)));
errmsg
(
"
\"
%s
\"
is not a table"
,
RelationGetRelationName
(
rel
))));
if
(
tab
->
relkind
==
RELKIND_COMPOSITE_TYPE
||
tab
->
relkind
==
RELKIND_FOREIGN_TABLE
)
...
...
src/backend/parser/parse_utilcmd.c
浏览文件 @
27af6616
...
...
@@ -1531,7 +1531,7 @@ transformIndexConstraint(Constraint *constraint, CreateStmtContext *cxt)
if
(
index_rel
->
rd_rel
->
relam
!=
get_am_oid
(
DEFAULT_INDEX_TYPE
,
false
))
ereport
(
ERROR
,
(
errcode
(
ERRCODE_WRONG_OBJECT_TYPE
),
errmsg
(
"index
\"
%s
\"
is not a b
-
tree"
,
index_name
),
errmsg
(
"index
\"
%s
\"
is not a btree"
,
index_name
),
parser_errposition
(
cxt
->
pstate
,
constraint
->
location
)));
/* Must get indclass the hard way */
...
...
src/backend/port/win32/crashdump.c
浏览文件 @
27af6616
...
...
@@ -105,7 +105,7 @@ crashDumpHandler(struct _EXCEPTION_POINTERS * pExceptionInfo)
hDll
=
LoadLibrary
(
"dbghelp.dll"
);
if
(
hDll
==
NULL
)
{
write_stderr
(
"could not load dbghelp.dll, cannot write crashdump
\n
"
);
write_stderr
(
"could not load dbghelp.dll, cannot write crash
dump
\n
"
);
return
EXCEPTION_CONTINUE_SEARCH
;
}
...
...
@@ -113,7 +113,7 @@ crashDumpHandler(struct _EXCEPTION_POINTERS * pExceptionInfo)
if
(
pDump
==
NULL
)
{
write_stderr
(
"could not load required functions in dbghelp.dll, cannot write crashdump
\n
"
);
write_stderr
(
"could not load required functions in dbghelp.dll, cannot write crash
dump
\n
"
);
return
EXCEPTION_CONTINUE_SEARCH
;
}
...
...
@@ -144,16 +144,16 @@ crashDumpHandler(struct _EXCEPTION_POINTERS * pExceptionInfo)
NULL
);
if
(
dumpFile
==
INVALID_HANDLE_VALUE
)
{
write_stderr
(
"could not open crash dump file
%s
for writing: error code %u
\n
"
,
write_stderr
(
"could not open crash dump file
\"
%s
\"
for writing: error code %u
\n
"
,
dumpPath
,
(
unsigned
int
)
GetLastError
());
return
EXCEPTION_CONTINUE_SEARCH
;
}
if
((
*
pDump
)
(
selfProcHandle
,
selfPid
,
dumpFile
,
dumpType
,
&
ExInfo
,
NULL
,
NULL
))
write_stderr
(
"wrote crash dump to
%s
\n
"
,
dumpPath
);
write_stderr
(
"wrote crash dump to
file
\"
%s
\"
\n
"
,
dumpPath
);
else
write_stderr
(
"could not write crash dump to
%s
: error code %08x
\n
"
,
write_stderr
(
"could not write crash dump to
file
\"
%s
\"
: error code %08x
\n
"
,
dumpPath
,
(
unsigned
int
)
GetLastError
());
CloseHandle
(
dumpFile
);
...
...
src/backend/storage/lmgr/predicate.c
浏览文件 @
27af6616
...
...
@@ -882,7 +882,7 @@ OldSerXidAdd(TransactionId xid, SerCommitSeqNo minConflictCommitSeqNo)
oldSerXidControl
->
warningIssued
=
true
;
ereport
(
WARNING
,
(
errmsg
(
"memory for serializable conflict tracking is nearly exhausted"
),
errhint
(
"There m
ay
be an idle transaction or a forgotten prepared transaction causing this."
)));
errhint
(
"There m
ight
be an idle transaction or a forgotten prepared transaction causing this."
)));
}
}
...
...
src/backend/utils/adt/varlena.c
浏览文件 @
27af6616
...
...
@@ -3937,7 +3937,7 @@ text_format_string_conversion(StringInfo buf, char conversion,
else
if
(
conversion
==
'I'
)
ereport
(
ERROR
,
(
errcode
(
ERRCODE_NULL_VALUE_NOT_ALLOWED
),
errmsg
(
"
NULL cannot be escap
ed as an SQL identifier"
)));
errmsg
(
"
null values cannot be formatt
ed as an SQL identifier"
)));
return
;
}
...
...
src/backend/utils/misc/guc.c
浏览文件 @
27af6616
...
...
@@ -877,7 +877,7 @@ static struct config_bool ConfigureNamesBool[] =
},
{
{
"restart_after_crash"
,
PGC_SIGHUP
,
ERROR_HANDLING_OPTIONS
,
gettext_noop
(
"Reinitialize after backend crash."
),
gettext_noop
(
"Reinitialize
server
after backend crash."
),
NULL
},
&
restart_after_crash
,
...
...
@@ -1368,7 +1368,7 @@ static struct config_bool ConfigureNamesBool[] =
{
{
"hot_standby_feedback"
,
PGC_SIGHUP
,
WAL_STANDBY_SERVERS
,
gettext_noop
(
"Allows feedback from a hot standby primary that will avoid query conflicts."
),
gettext_noop
(
"Allows feedback from a hot standby
to the
primary that will avoid query conflicts."
),
NULL
},
&
hot_standby_feedback
,
...
...
@@ -1557,7 +1557,7 @@ static struct config_int ConfigureNamesInt[] =
{
{
"wal_receiver_status_interval"
,
PGC_SIGHUP
,
WAL_STANDBY_SERVERS
,
gettext_noop
(
"Sets the maximum interval between WAL receiver status reports to the
master
."
),
gettext_noop
(
"Sets the maximum interval between WAL receiver status reports to the
primary
."
),
NULL
,
GUC_UNIT_S
},
...
...
@@ -2955,7 +2955,7 @@ static struct config_string ConfigureNamesString[] =
{
{
"synchronous_standby_names"
,
PGC_SIGHUP
,
WAL_REPLICATION
,
gettext_noop
(
"List of
potential standby names to synchronize with
."
),
gettext_noop
(
"List of
names of potential synchronous standbys
."
),
NULL
,
GUC_LIST_INPUT
},
...
...
src/test/regress/expected/foreign_data.out
浏览文件 @
27af6616
...
...
@@ -694,8 +694,8 @@ ALTER FOREIGN TABLE ft1 ALTER COLUMN c5 DROP DEFAULT; -- ERROR
ERROR: "ft1" is not a table or view
ALTER FOREIGN TABLE ft1 ALTER COLUMN c6 SET NOT NULL;
ALTER FOREIGN TABLE ft1 ALTER COLUMN c7 DROP NOT NULL;
ALTER FOREIGN TABLE ft1 ALTER COLUMN c8 TYPE char(10)
using
'0'; -- ERROR
ERROR:
ALTER TYPE USING is only supported on plain tables
ALTER FOREIGN TABLE ft1 ALTER COLUMN c8 TYPE char(10)
USING
'0'; -- ERROR
ERROR:
"ft1" is not a table
ALTER FOREIGN TABLE ft1 ALTER COLUMN c8 TYPE char(10);
ALTER FOREIGN TABLE ft1 ALTER COLUMN c8 SET DATA TYPE text;
-- can't change the column type if it's used elsewhere
...
...
src/test/regress/expected/text.out
浏览文件 @
27af6616
...
...
@@ -203,7 +203,7 @@ select format('INSERT INTO %I VALUES(%L,%L)', 'mytab', NULL, 'Hello');
-- should fail, sql identifier cannot be NULL
select format('INSERT INTO %I VALUES(%L,%L)', NULL, 10, 'Hello');
ERROR:
NULL cannot be escap
ed as an SQL identifier
ERROR:
null values cannot be formatt
ed as an SQL identifier
-- check positional placeholders
select format('%1$s %3$s', 1, 2, 3);
format
...
...
src/test/regress/sql/foreign_data.sql
浏览文件 @
27af6616
...
...
@@ -294,7 +294,7 @@ ALTER FOREIGN TABLE ft1 ALTER COLUMN c4 SET DEFAULT 0; -- ERROR
ALTER
FOREIGN
TABLE
ft1
ALTER
COLUMN
c5
DROP
DEFAULT
;
-- ERROR
ALTER
FOREIGN
TABLE
ft1
ALTER
COLUMN
c6
SET
NOT
NULL
;
ALTER
FOREIGN
TABLE
ft1
ALTER
COLUMN
c7
DROP
NOT
NULL
;
ALTER
FOREIGN
TABLE
ft1
ALTER
COLUMN
c8
TYPE
char
(
10
)
using
'0'
;
-- ERROR
ALTER
FOREIGN
TABLE
ft1
ALTER
COLUMN
c8
TYPE
char
(
10
)
USING
'0'
;
-- ERROR
ALTER
FOREIGN
TABLE
ft1
ALTER
COLUMN
c8
TYPE
char
(
10
);
ALTER
FOREIGN
TABLE
ft1
ALTER
COLUMN
c8
SET
DATA
TYPE
text
;
-- can't change the column type if it's used elsewhere
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录