Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
a2fd844c
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,发现更多精彩内容 >>
提交
a2fd844c
编写于
4月 29, 1997
作者:
T
Thomas G. Lockhart
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Reorder tests and move aggregate table data to data/.
上级
1594bf2a
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
8 addition
and
101 deletion
+8
-101
src/test/regress/sql/aggregates.sql
src/test/regress/sql/aggregates.sql
+1
-94
src/test/regress/sql/tests
src/test/regress/sql/tests
+7
-7
未找到文件。
src/test/regress/sql/aggregates.sql
浏览文件 @
a2fd844c
--
-- replace
--
--
-- BTREE
--
UPDATE
onek
SET
unique1
=
onek
.
unique1
+
1
;
UPDATE
onek
SET
unique1
=
onek
.
unique1
-
1
;
--
-- BTREE partial
--
-- UPDATE onek2
-- SET unique1 = onek2.unique1 + 1;
--UPDATE onek2
-- SET unique1 = onek2.unique1 - 1;
--
-- BTREE shutting out non-functional updates
--
-- the following two tests seem to take a long time on some
-- systems. This non-func update stuff needs to be examined
-- more closely. - jolly (2/22/96)
--
UPDATE
temp
SET
stringu1
=
reverse_c16
(
onek
.
stringu1
)
WHERE
onek
.
stringu1
=
'JBAAAA'
and
onek
.
stringu1
=
temp
.
stringu1
;
UPDATE
temp
SET
stringu1
=
reverse_c16
(
onek2
.
stringu1
)
WHERE
onek2
.
stringu1
=
'JCAAAA'
and
onek2
.
stringu1
=
temp
.
stringu1
;
DROP
TABLE
temp
;
--UPDATE person*
-- SET age = age + 1;
--UPDATE person*
-- SET age = age + 3
-- WHERE name = 'linda';
--
-- copy
--
COPY
onek
TO
'_OBJWD_/results/onek.data'
;
DELETE
FROM
onek
;
COPY
onek
FROM
'_OBJWD_/results/onek.data'
;
SELECT
unique1
FROM
onek
WHERE
unique1
<
2
;
DELETE
FROM
onek2
;
COPY
onek2
FROM
'_OBJWD_/results/onek.data'
;
SELECT
unique1
FROM
onek2
WHERE
unique1
<
2
;
COPY
BINARY
stud_emp
TO
'_OBJWD_/results/stud_emp.data'
;
DELETE
FROM
stud_emp
;
COPY
BINARY
stud_emp
FROM
'_OBJWD_/results/stud_emp.data'
;
SELECT
*
FROM
stud_emp
;
-- COPY aggtest FROM stdin;
-- 56 7.8
-- 100 99.097
-- 0 0.09561
-- 42 324.78
-- .
-- COPY aggtest TO stdout;
--
-- test the random function
--
-- count the number of tuples originally
SELECT
count
(
*
)
FROM
onek
;
-- select roughly 1/10 of the tuples
SELECT
count
(
*
)
FROM
onek
where
oidrand
(
onek
.
oid
,
10
);
-- select again, the count should be different
SELECT
count
(
*
)
FROM
onek
where
oidrand
(
onek
.
oid
,
10
);
--
--
-- AGGREGATES
-- AGGREGATES
--
--
SELECT
avg
(
four
)
AS
avg_1
FROM
onek
;
SELECT
avg
(
four
)
AS
avg_1
FROM
onek
;
SELECT
avg
(
a
)
AS
avg_
49
FROM
aggtest
WHERE
a
<
100
;
SELECT
avg
(
a
)
AS
avg_
32
FROM
aggtest
WHERE
a
<
100
;
SELECT
avg
(
b
)
AS
avg_107_943
FROM
aggtest
;
SELECT
avg
(
b
)
AS
avg_107_943
FROM
aggtest
;
...
...
src/test/regress/sql/tests
浏览文件 @
a2fd844c
boolean
boolean
box
char
char
char16
char16
char2
char2
char4
char4
char8
char8
float4
text
float8
int2
int2
int4
int4
oid
oid
oidint2
oidint2
oidint4
oidint4
oidname
oidname
float4
float8
point
point
box
polygon
polygon
text
timespan
timespan
datetime
datetime
reltime
reltime
...
@@ -32,19 +32,19 @@ create_operator
...
@@ -32,19 +32,19 @@ create_operator
create_view
create_view
create_index
create_index
sanity_check
sanity_check
errors
select
select
select_into
select_into
select_distinct
select_distinct
select_distinct_on
select_distinct_on
aggregates
transactions
transactions
random
portals
portals
errors
misc
misc
random
arrays
arrays
btree_index
btree_index
hash_index
hash_index
aggregates
select_views
select_views
alter_table
alter_table
purge
purge
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录