Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
ac2d0e46
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,发现更多精彩内容 >>
提交
ac2d0e46
编写于
8月 30, 2013
作者:
T
Tom Lane
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add test case for bug #8410.
Per Andres Freund.
上级
8e2b71d2
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
61 addition
and
0 deletion
+61
-0
src/test/regress/expected/inherit.out
src/test/regress/expected/inherit.out
+41
-0
src/test/regress/sql/inherit.sql
src/test/regress/sql/inherit.sql
+20
-0
未找到文件。
src/test/regress/expected/inherit.out
浏览文件 @
ac2d0e46
...
...
@@ -1350,6 +1350,47 @@ ORDER BY x, y;
-> Index Only Scan using tenk1_unique2 on tenk1 b
(6 rows)
-- exercise rescan code path via a repeatedly-evaluated subquery
explain (costs off)
SELECT
(SELECT g.i FROM (
(SELECT * FROM generate_series(1, 2) ORDER BY 1)
UNION ALL
(SELECT * FROM generate_series(1, 2) ORDER BY 1)
) f(i)
ORDER BY f.i LIMIT 1)
FROM generate_series(1, 3) g(i);
QUERY PLAN
------------------------------------------------------------------------------------
Function Scan on generate_series g
SubPlan 1
-> Limit
-> Result
-> Merge Append
Sort Key: generate_series.generate_series
-> Sort
Sort Key: generate_series.generate_series
-> Function Scan on generate_series
-> Sort
Sort Key: generate_series_1.generate_series
-> Function Scan on generate_series generate_series_1
(12 rows)
SELECT
(SELECT g.i FROM (
(SELECT * FROM generate_series(1, 2) ORDER BY 1)
UNION ALL
(SELECT * FROM generate_series(1, 2) ORDER BY 1)
) f(i)
ORDER BY f.i LIMIT 1)
FROM generate_series(1, 3) g(i);
i
---
1
2
3
(3 rows)
reset enable_seqscan;
reset enable_indexscan;
reset enable_bitmapscan;
src/test/regress/sql/inherit.sql
浏览文件 @
ac2d0e46
...
...
@@ -439,6 +439,26 @@ SELECT x, y FROM
SELECT
unique2
AS
x
,
unique2
AS
y
FROM
tenk1
b
)
s
ORDER
BY
x
,
y
;
-- exercise rescan code path via a repeatedly-evaluated subquery
explain
(
costs
off
)
SELECT
(
SELECT
g
.
i
FROM
(
(
SELECT
*
FROM
generate_series
(
1
,
2
)
ORDER
BY
1
)
UNION
ALL
(
SELECT
*
FROM
generate_series
(
1
,
2
)
ORDER
BY
1
)
)
f
(
i
)
ORDER
BY
f
.
i
LIMIT
1
)
FROM
generate_series
(
1
,
3
)
g
(
i
);
SELECT
(
SELECT
g
.
i
FROM
(
(
SELECT
*
FROM
generate_series
(
1
,
2
)
ORDER
BY
1
)
UNION
ALL
(
SELECT
*
FROM
generate_series
(
1
,
2
)
ORDER
BY
1
)
)
f
(
i
)
ORDER
BY
f
.
i
LIMIT
1
)
FROM
generate_series
(
1
,
3
)
g
(
i
);
reset
enable_seqscan
;
reset
enable_indexscan
;
reset
enable_bitmapscan
;
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录