Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
a52fa413
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,发现更多精彩内容 >>
提交
a52fa413
编写于
1月 04, 2019
作者:
A
Ashwin Agrawal
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Remove dead upgrade-mode 'U' option to postgres and postmaster.
上级
6195b967
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
2 addition
and
27 deletion
+2
-27
src/backend/postmaster/postmaster.c
src/backend/postmaster/postmaster.c
+1
-13
src/backend/tcop/postgres.c
src/backend/tcop/postgres.c
+1
-13
src/include/utils/guc.h
src/include/utils/guc.h
+0
-1
未找到文件。
src/backend/postmaster/postmaster.c
浏览文件 @
a52fa413
...
...
@@ -748,7 +748,7 @@ PostmasterMain(int argc, char *argv[])
* tcop/postgres.c (the option sets should not conflict) and with the
* common help() function in main/main.c.
*/
while
((
opt
=
getopt
(
argc
,
argv
,
"A:B:bc:C:D:d:EeFf:h:ijk:lMmN:nOo:Pp:r:S:sTt:
U
W:-:"
))
!=
-
1
)
while
((
opt
=
getopt
(
argc
,
argv
,
"A:B:bc:C:D:d:EeFf:h:ijk:lMmN:nOo:Pp:r:S:sTt:W:-:"
))
!=
-
1
)
{
switch
(
opt
)
{
...
...
@@ -918,18 +918,6 @@ PostmasterMain(int argc, char *argv[])
break
;
}
case
'U'
:
/*
* In upgrade mode, we indicate we're in upgrade mode and
* 1. allow DML on persistent table & catalog table
* 2. alter DDL on catalog table (NOTE: upgrade_mode must set beforehand)
* 3. TODO: disable the 4.1 xlog format (stick with the old)
*/
SetConfigOption
(
"upgrade_mode"
,
"true"
,
PGC_POSTMASTER
,
PGC_S_ARGV
);
SetConfigOption
(
"allow_segment_DML"
,
"true"
,
PGC_POSTMASTER
,
PGC_S_ARGV
);
SetConfigOption
(
"allow_system_table_mods"
,
"true"
,
PGC_POSTMASTER
,
PGC_S_ARGV
);
break
;
case
'W'
:
SetConfigOption
(
"post_auth_delay"
,
optarg
,
PGC_POSTMASTER
,
PGC_S_ARGV
);
break
;
...
...
src/backend/tcop/postgres.c
浏览文件 @
a52fa413
...
...
@@ -4293,7 +4293,7 @@ process_postgres_switches(int argc, char *argv[], GucContext ctx,
* postmaster/postmaster.c (the option sets should not conflict) and with
* the common help() function in main/main.c.
*/
while
((
flag
=
getopt
(
argc
,
argv
,
"A:B:bc:C:D:d:EeFf:h:ijk:lMm:N:nOo:Pp:r:S:sTt:
U
v:W:y:-:"
))
!=
-
1
)
while
((
flag
=
getopt
(
argc
,
argv
,
"A:B:bc:C:D:d:EeFf:h:ijk:lMm:N:nOo:Pp:r:S:sTt:v:W:y:-:"
))
!=
-
1
)
{
switch
(
flag
)
{
...
...
@@ -4439,18 +4439,6 @@ process_postgres_switches(int argc, char *argv[], GucContext ctx,
break
;
}
case
'U'
:
/*
* In upgrade mode, we indicate we're in upgrade mode and
* 1. allow DML on persistent table & catalog table
* 2. alter DDL on catalog table (NOTE: upgrade_mode must set beforehand)
* 3. TODO: disable the 4.1 xlog format (stick with the old)
*/
SetConfigOption
(
"upgrade_mode"
,
"true"
,
ctx
,
gucsource
);
SetConfigOption
(
"allow_segment_DML"
,
"true"
,
ctx
,
gucsource
);
SetConfigOption
(
"allow_system_table_mods"
,
"true"
,
ctx
,
gucsource
);
break
;
case
'v'
:
/*
...
...
src/include/utils/guc.h
浏览文件 @
a52fa413
...
...
@@ -306,7 +306,6 @@ extern bool debug_basebackup;
/* Latch mechanism debug GUCs */
extern
bool
debug_latch
;
extern
bool
gp_upgrade_mode
;
extern
bool
gp_maintenance_mode
;
extern
bool
gp_maintenance_conn
;
extern
bool
allow_segment_DML
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录