Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
bc932fbc
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,发现更多精彩内容 >>
提交
bc932fbc
编写于
12月 10, 2019
作者:
A
Adam Berlin
提交者:
Adam Berlin
12月 16, 2019
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Push AO and external table relstorage values into Greenplum-specific code.
上级
9c7edd3e
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
17 addition
and
9 deletion
+17
-9
contrib/pg_upgrade/greenplum/aotable.c
contrib/pg_upgrade/greenplum/aotable.c
+10
-2
contrib/pg_upgrade/greenplum/check_gp.c
contrib/pg_upgrade/greenplum/check_gp.c
+2
-0
contrib/pg_upgrade/greenplum/pg_upgrade_greenplum.h
contrib/pg_upgrade/greenplum/pg_upgrade_greenplum.h
+3
-0
contrib/pg_upgrade/info.c
contrib/pg_upgrade/info.c
+2
-2
contrib/pg_upgrade/pg_upgrade.h
contrib/pg_upgrade/pg_upgrade.h
+0
-5
未找到文件。
contrib/pg_upgrade/greenplum/aotable.c
浏览文件 @
bc932fbc
...
...
@@ -11,6 +11,9 @@
#include "pqexpbuffer.h"
/* needs to be kept in sync with pg_class.h */
#define RELSTORAGE_AOROWS 'a'
#define RELSTORAGE_AOCOLS 'c'
/*
* We cannot use executeQueryOrDie for the INSERTs below, because it has a size
...
...
@@ -267,8 +270,7 @@ restore_aosegment_tables(void)
{
RelInfo
*
rel
=
&
olddb
->
rel_arr
.
rels
[
relnum
];
if
(
rel
->
relstorage
==
RELSTORAGE_AOROWS
||
rel
->
relstorage
==
RELSTORAGE_AOCOLS
)
if
(
is_appendonly
(
rel
->
relstorage
))
restore_aosegment_table
(
conn
,
rel
);
}
...
...
@@ -277,3 +279,9 @@ restore_aosegment_tables(void)
check_ok
();
}
bool
is_appendonly
(
char
relstorage
)
{
return
relstorage
==
RELSTORAGE_AOROWS
||
relstorage
==
RELSTORAGE_AOCOLS
;
}
contrib/pg_upgrade/greenplum/check_gp.c
浏览文件 @
bc932fbc
...
...
@@ -17,6 +17,8 @@
#include "pg_upgrade_greenplum.h"
#include "check_gp.h"
#define RELSTORAGE_EXTERNAL 'x'
static
void
check_external_partition
(
void
);
static
void
check_covering_aoindex
(
void
);
static
void
check_partition_indexes
(
void
);
...
...
contrib/pg_upgrade/greenplum/pg_upgrade_greenplum.h
浏览文件 @
bc932fbc
...
...
@@ -12,6 +12,7 @@
#define PG_OPTIONS_UTILITY_MODE " PGOPTIONS='-c gp_session_role=utility' "
/*
* Enumeration for operations in the progress report
*/
...
...
@@ -78,6 +79,8 @@ void validate_greenplum_options(void);
/* aotable.c */
void
restore_aosegment_tables
(
void
);
bool
is_appendonly
(
char
relstorage
);
/* gpdb4_heap_convert.c */
...
...
contrib/pg_upgrade/info.c
浏览文件 @
bc932fbc
...
...
@@ -749,11 +749,11 @@ get_rel_infos(ClusterInfo *cluster, DbInfo *dbinfo)
relkind
=
PQgetvalue
(
res
,
relnum
,
i_relkind
)
[
0
];
/*
*
RELSTORAGE_AOROWS and RELSTORAGE_AOCOLS.
The structure of append
* The structure of append
* optimized tables is similar enough for row and column oriented
* tables so we can handle them both here.
*/
if
(
relstorage
==
RELSTORAGE_AOROWS
||
relstorage
==
RELSTORAGE_AOCOLS
)
if
(
is_appendonly
(
relstorage
)
)
{
char
*
segrel
;
char
*
visimaprel
;
...
...
contrib/pg_upgrade/pg_upgrade.h
浏览文件 @
bc932fbc
...
...
@@ -45,11 +45,6 @@
#define DB_OIDS_DUMP_FILE_MASK "pg_upgrade_dump_%u_oids.sql"
#define OLD_TABLESPACES_FILE "old_tablespaces.txt"
/* needs to be kept in sync with pg_class.h */
#define RELSTORAGE_EXTERNAL 'x'
#define RELSTORAGE_AOROWS 'a'
#define RELSTORAGE_AOCOLS 'c'
#define DB_DUMP_LOG_FILE_MASK "pg_upgrade_dump_%u.log"
#define SERVER_LOG_FILE "pg_upgrade_server.log"
#define UTILITY_LOG_FILE "pg_upgrade_utility.log"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录