Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
b320948d
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,体验更适合开发者的 AI 搜索 >>
提交
b320948d
编写于
6月 26, 2018
作者:
A
Adam Lee
提交者:
Adam Lee
6月 27, 2018
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
COPY: don't dispatch AO segno map for unloading
Unloading doesn't need it, checking the distribution policy neither.
上级
c2a26ce3
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
4 addition
and
6 deletion
+4
-6
src/backend/commands/copy.c
src/backend/commands/copy.c
+4
-2
src/test/regress/input/gpcopy.source
src/test/regress/input/gpcopy.source
+0
-2
src/test/regress/output/gpcopy.source
src/test/regress/output/gpcopy.source
+0
-2
未找到文件。
src/backend/commands/copy.c
浏览文件 @
b320948d
...
...
@@ -1932,7 +1932,7 @@ CopyDispatchOnSegment(CopyState cstate, const CopyStmt *stmt)
all_relids
=
list_make1_oid
(
RelationGetRelid
(
cstate
->
rel
));
/* add in AO segno map for dispatch */
if
(
rel_is_partitioned
(
RelationGetRelid
(
cstate
->
rel
)))
if
(
dispatchStmt
->
is_from
&&
rel_is_partitioned
(
RelationGetRelid
(
cstate
->
rel
)))
{
if
(
gp_enable_segment_copy_checking
&&
!
partition_policies_equal
(
cstate
->
rel
->
rd_cdbpolicy
,
RelationBuildPartitionDesc
(
cstate
->
rel
,
false
)))
...
...
@@ -1945,8 +1945,10 @@ CopyDispatchOnSegment(CopyState cstate, const CopyStmt *stmt)
PartitionNode
*
pn
=
RelationBuildPartitionDesc
(
cstate
->
rel
,
false
);
all_relids
=
list_concat
(
all_relids
,
all_partition_relids
(
pn
));
dispatchStmt
->
ao_segnos
=
assignPerRelSegno
(
all_relids
);
}
dispatchStmt
->
ao_segnos
=
assignPerRelSegno
(
all_relids
);
dispatchStmt
->
skip_ext_partition
=
cstate
->
skip_ext_partition
;
if
(
policy
)
...
...
src/test/regress/input/gpcopy.source
浏览文件 @
b320948d
...
...
@@ -1166,7 +1166,5 @@ CREATE EXTERNAL WEB TABLE ext_dec17(LIKE sales_1_prt_dec17) EXECUTE 'printf "12\
ALTER TABLE sales ALTER PARTITION dec17 EXCHANGE PARTITION dec17 WITH TABLE ext_dec17 WITHOUT VALIDATION;
DROP TABLE ext_dec17;
COPY sales TO PROGRAM 'cat > /dev/null' IGNORE EXTERNAL PARTITIONS;
SET gp_enable_segment_copy_checking=off;
COPY sales TO PROGRAM 'printf <SEGID> && cat > /dev/null' ON SEGMENT IGNORE EXTERNAL PARTITIONS;
SET gp_enable_segment_copy_checking=on;
DROP TABLE sales;
src/test/regress/output/gpcopy.source
浏览文件 @
b320948d
...
...
@@ -1349,8 +1349,6 @@ NOTICE: exchanged partition "dec17" of partition "dec17" of relation "sales" wi
DROP TABLE ext_dec17;
COPY sales TO PROGRAM 'cat > /dev/null' IGNORE EXTERNAL PARTITIONS;
NOTICE: COPY ignores external partition(s)
SET gp_enable_segment_copy_checking=off;
COPY sales TO PROGRAM 'printf <SEGID> && cat > /dev/null' ON SEGMENT IGNORE EXTERNAL PARTITIONS;
NOTICE: COPY ignores external partition(s)
SET gp_enable_segment_copy_checking=on;
DROP TABLE sales;
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录