Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
7ca0c9d6
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,发现更多精彩内容 >>
提交
7ca0c9d6
编写于
12月 09, 2019
作者:
A
Adam Berlin
提交者:
Adam Berlin
12月 16, 2019
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Extract duplicated PGOPTIONS statement into greenplum header.
上级
5e793f60
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
11 addition
and
8 deletion
+11
-8
contrib/pg_upgrade/check.c
contrib/pg_upgrade/check.c
+2
-2
contrib/pg_upgrade/dump.c
contrib/pg_upgrade/dump.c
+3
-2
contrib/pg_upgrade/greenplum/pg_upgrade_greenplum.h
contrib/pg_upgrade/greenplum/pg_upgrade_greenplum.h
+1
-0
contrib/pg_upgrade/pg_upgrade.c
contrib/pg_upgrade/pg_upgrade.c
+5
-4
未找到文件。
contrib/pg_upgrade/check.c
浏览文件 @
7ca0c9d6
...
...
@@ -121,7 +121,7 @@ check_and_dump_old_cluster(bool live_check, char **sequence_script_file_name)
if
(
GET_MAJOR_VERSION
(
old_cluster
.
major_version
)
==
802
)
{
old_8_3_check_for_name_data_type_usage
(
&
old_cluster
);
old_GPDB4_check_for_money_data_type_usage
();
old_GPDB4_check_no_free_aoseg
();
check_hash_partition_usage
();
...
...
@@ -267,7 +267,7 @@ issue_warnings_and_set_wal_level(char *sequence_script_file_name)
{
prep_status
(
"Adjusting sequences"
);
exec_prog
(
UTILITY_LOG_FILE
,
NULL
,
true
,
true
,
"PGOPTIONS='-c gp_session_role=utility' "
PG_OPTIONS_UTILITY_MODE
"
\"
%s/psql
\"
"
EXEC_PSQL_ARGS
" %s -f
\"
%s
\"
"
,
new_cluster
.
bindir
,
cluster_conn_opts
(
&
new_cluster
),
sequence_script_file_name
);
...
...
contrib/pg_upgrade/dump.c
浏览文件 @
7ca0c9d6
...
...
@@ -13,6 +13,7 @@
#include <sys/types.h>
#include "greenplum/pg_upgrade_greenplum.h"
void
generate_old_dump
(
void
)
...
...
@@ -23,7 +24,7 @@ generate_old_dump(void)
/* run new pg_dumpall binary for globals */
exec_prog
(
UTILITY_LOG_FILE
,
NULL
,
true
,
true
,
"PGOPTIONS='-c gp_session_role=utility' "
PG_OPTIONS_UTILITY_MODE
"
\"
%s/pg_dumpall
\"
%s --schema-only --globals-only "
"--quote-all-identifiers --binary-upgrade %s -f %s"
,
new_cluster
.
bindir
,
cluster_conn_opts
(
&
old_cluster
),
...
...
@@ -54,7 +55,7 @@ generate_old_dump(void)
snprintf
(
log_file_name
,
sizeof
(
log_file_name
),
DB_DUMP_LOG_FILE_MASK
,
old_db
->
db_oid
);
parallel_exec_prog
(
log_file_name
,
NULL
,
"PGOPTIONS='-c gp_session_role=utility' "
PG_OPTIONS_UTILITY_MODE
"
\"
%s/pg_dump
\"
%s --schema-only --quote-all-identifiers "
"--binary-upgrade --format=custom %s --file=
\"
%s
\"
%s"
,
new_cluster
.
bindir
,
cluster_conn_opts
(
&
old_cluster
),
...
...
contrib/pg_upgrade/greenplum/pg_upgrade_greenplum.h
浏览文件 @
7ca0c9d6
...
...
@@ -10,6 +10,7 @@
#include "pg_upgrade.h"
#define PG_OPTIONS_UTILITY_MODE " PGOPTIONS='-c gp_session_role=utility' "
/* aotable.c */
...
...
contrib/pg_upgrade/pg_upgrade.c
浏览文件 @
7ca0c9d6
...
...
@@ -465,7 +465,8 @@ prepare_new_cluster(void)
{
prep_status
(
"Analyzing all rows in the new cluster"
);
exec_prog
(
UTILITY_LOG_FILE
,
NULL
,
true
,
true
,
"PGOPTIONS='-c gp_session_role=utility'
\"
%s/vacuumdb
\"
%s --all --analyze %s"
,
PG_OPTIONS_UTILITY_MODE
"
\"
%s/vacuumdb
\"
%s --all --analyze %s"
,
new_cluster
.
bindir
,
cluster_conn_opts
(
&
new_cluster
),
log_opts
.
verbose
?
"--verbose"
:
""
);
check_ok
();
...
...
@@ -479,7 +480,7 @@ prepare_new_cluster(void)
*/
prep_status
(
"Freezing all rows on the new cluster"
);
exec_prog
(
UTILITY_LOG_FILE
,
NULL
,
true
,
true
,
"PGOPTIONS='-c gp_session_role=utility' "
PG_OPTIONS_UTILITY_MODE
"
\"
%s/vacuumdb
\"
%s --all --freeze %s"
,
new_cluster
.
bindir
,
cluster_conn_opts
(
&
new_cluster
),
log_opts
.
verbose
?
"--verbose"
:
""
);
...
...
@@ -517,7 +518,7 @@ prepare_new_databases(void)
* the template0 template.
*/
exec_prog
(
UTILITY_LOG_FILE
,
NULL
,
true
,
true
,
"PGOPTIONS='-c gp_session_role=utility' "
PG_OPTIONS_UTILITY_MODE
"
\"
%s/psql
\"
"
EXEC_PSQL_ARGS
" %s -f
\"
%s
\"
"
,
new_cluster
.
bindir
,
cluster_conn_opts
(
&
new_cluster
),
GLOBALS_DUMP_FILE
);
...
...
@@ -577,7 +578,7 @@ create_new_objects(void)
*/
parallel_exec_prog
(
log_file_name
,
NULL
,
"PGOPTIONS='-c gp_session_role=utility' "
PG_OPTIONS_UTILITY_MODE
"
\"
%s/pg_restore
\"
%s --exit-on-error --binary-upgrade --verbose --dbname %s
\"
%s
\"
"
,
new_cluster
.
bindir
,
cluster_conn_opts
(
&
new_cluster
),
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录