Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
fef67414
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,发现更多精彩内容 >>
提交
fef67414
编写于
1月 12, 2018
作者:
A
Ashwin Agrawal
提交者:
Xin Zhang
1月 12, 2018
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix fts_unblock_primary test to use content-id instead of dbid.
上级
6cd8395c
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
6 addition
and
8 deletion
+6
-8
src/test/isolation2/expected/segwalrep/fts_unblock_primary.out
...est/isolation2/expected/segwalrep/fts_unblock_primary.out
+3
-4
src/test/isolation2/sql/segwalrep/fts_unblock_primary.sql
src/test/isolation2/sql/segwalrep/fts_unblock_primary.sql
+3
-4
未找到文件。
src/test/isolation2/expected/segwalrep/fts_unblock_primary.out
浏览文件 @
fef67414
...
@@ -24,8 +24,7 @@ content|role|preferred_role|mode|status
...
@@ -24,8 +24,7 @@ content|role|preferred_role|mode|status
-- synchronous_standby_names should be set to '*' by default on primary 2, since
-- synchronous_standby_names should be set to '*' by default on primary 2, since
-- we have a working/sync'd mirror
-- we have a working/sync'd mirror
-- XXX We assume primary 2 is DBID 4, which may not be the case.
2U: show synchronous_standby_names;
4U: show synchronous_standby_names;
synchronous_standby_names
synchronous_standby_names
-------------------------
-------------------------
*
*
...
@@ -97,7 +96,7 @@ content|role|preferred_role|mode|status
...
@@ -97,7 +96,7 @@ content|role|preferred_role|mode|status
COMMIT
COMMIT
-- synchronous_standby_names should now be empty on the primary
-- synchronous_standby_names should now be empty on the primary
4
U: show synchronous_standby_names;
2
U: show synchronous_standby_names;
synchronous_standby_names
synchronous_standby_names
-------------------------
-------------------------
...
@@ -127,7 +126,7 @@ insert into fts_unblock_primary select i from generate_series(1,10)i;
...
@@ -127,7 +126,7 @@ insert into fts_unblock_primary select i from generate_series(1,10)i;
INSERT 10
INSERT 10
-- synchronous_standby_names should be back to its original value on the primary
-- synchronous_standby_names should be back to its original value on the primary
4
U: show synchronous_standby_names;
2
U: show synchronous_standby_names;
synchronous_standby_names
synchronous_standby_names
-------------------------
-------------------------
*
*
...
...
src/test/isolation2/sql/segwalrep/fts_unblock_primary.sql
浏览文件 @
fef67414
...
@@ -44,8 +44,7 @@ select content, role, preferred_role, mode, status from gp_segment_configuration
...
@@ -44,8 +44,7 @@ select content, role, preferred_role, mode, status from gp_segment_configuration
-- synchronous_standby_names should be set to '*' by default on primary 2, since
-- synchronous_standby_names should be set to '*' by default on primary 2, since
-- we have a working/sync'd mirror
-- we have a working/sync'd mirror
-- XXX We assume primary 2 is DBID 4, which may not be the case.
2
U
:
show
synchronous_standby_names
;
4
U
:
show
synchronous_standby_names
;
-- create table and show commits are not blocked
-- create table and show commits are not blocked
create
table
fts_unblock_primary
(
a
int
)
distributed
by
(
a
);
create
table
fts_unblock_primary
(
a
int
)
distributed
by
(
a
);
...
@@ -78,7 +77,7 @@ select content, role, preferred_role, mode, status from gp_segment_configuration
...
@@ -78,7 +77,7 @@ select content, role, preferred_role, mode, status from gp_segment_configuration
2
<
:
2
<
:
-- synchronous_standby_names should now be empty on the primary
-- synchronous_standby_names should now be empty on the primary
4
U
:
show
synchronous_standby_names
;
2
U
:
show
synchronous_standby_names
;
-- bring the mirror back up and see primary s/u and mirror s/u
-- bring the mirror back up and see primary s/u and mirror s/u
-
1
U
:
select
pg_ctl
((
select
datadir
from
gp_segment_configuration
c
where
c
.
role
=
'm'
and
c
.
content
=
2
),
'start'
,
(
select
port
from
gp_segment_configuration
where
content
=
2
and
preferred_role
=
'm'
),
2
);
-
1
U
:
select
pg_ctl
((
select
datadir
from
gp_segment_configuration
c
where
c
.
role
=
'm'
and
c
.
content
=
2
),
'start'
,
(
select
port
from
gp_segment_configuration
where
content
=
2
and
preferred_role
=
'm'
),
2
);
...
@@ -89,4 +88,4 @@ select content, role, preferred_role, mode, status from gp_segment_configuration
...
@@ -89,4 +88,4 @@ select content, role, preferred_role, mode, status from gp_segment_configuration
insert
into
fts_unblock_primary
select
i
from
generate_series
(
1
,
10
)
i
;
insert
into
fts_unblock_primary
select
i
from
generate_series
(
1
,
10
)
i
;
-- synchronous_standby_names should be back to its original value on the primary
-- synchronous_standby_names should be back to its original value on the primary
4
U
:
show
synchronous_standby_names
;
2
U
:
show
synchronous_standby_names
;
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录