Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
9a88b8a6
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,发现更多精彩内容 >>
提交
9a88b8a6
编写于
10月 30, 2001
作者:
T
Tom Lane
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update solaris-1947 variant files for new datetime regression tests.
Results checked by Olivier Prenant.
上级
2f254bdd
变更
3
展开全部
隐藏空白更改
内联
并排
Showing
3 changed file
with
1633 addition
and
1174 deletion
+1633
-1174
src/test/regress/expected/abstime-solaris-1947.out
src/test/regress/expected/abstime-solaris-1947.out
+23
-24
src/test/regress/expected/horology-solaris-1947.out
src/test/regress/expected/horology-solaris-1947.out
+1584
-1126
src/test/regress/expected/tinterval-solaris-1947.out
src/test/regress/expected/tinterval-solaris-1947.out
+26
-24
未找到文件。
src/test/regress/expected/abstime-solaris-1947.out
浏览文件 @
9a88b8a6
...
...
@@ -9,11 +9,20 @@
-- daylight savings time right for times prior to Unix epoch (jan 1 1970).
--
CREATE TABLE ABSTIME_TBL (f1 abstime);
BEGIN;
INSERT INTO ABSTIME_TBL (f1) VALUES (abstime 'current');
INSERT INTO ABSTIME_TBL (f1) VALUES (abstime 'now');
SELECT count(*) AS two FROM ABSTIME_TBL WHERE f1 = 'now' ;
two
-----
2
(1 row)
END;
DELETE FROM ABSTIME_TBL;
INSERT INTO ABSTIME_TBL (f1) VALUES ('Jan 14, 1973 03:14:21');
-- was INSERT INTO ABSTIME_TBL (f1) VALUES (abstime 'now'):
INSERT INTO ABSTIME_TBL (f1) VALUES (abstime 'Mon May 1 00:30:30 1995');
INSERT INTO ABSTIME_TBL (f1) VALUES (abstime 'epoch');
INSERT INTO ABSTIME_TBL (f1) VALUES (abstime 'current');
INSERT INTO ABSTIME_TBL (f1) VALUES (abstime 'infinity');
INSERT INTO ABSTIME_TBL (f1) VALUES (abstime '-infinity');
INSERT INTO ABSTIME_TBL (f1) VALUES (abstime 'May 10, 1947 23:59:12');
...
...
@@ -32,13 +41,12 @@ SELECT '' AS eight, ABSTIME_TBL.*;
-------+------------------------------
| Sun Jan 14 03:14:21 1973 PST
| Mon May 01 00:30:30 1995 PDT
| epoch
| current
| Wed Dec 31 16:00:00 1969 PST
| infinity
| -infinity
| Sat May 10 23:59:12 1947 PDT
| invalid
(
8
rows)
(
7
rows)
SELECT '' AS six, ABSTIME_TBL.*
WHERE ABSTIME_TBL.f1 < abstime 'Jun 30, 2001';
...
...
@@ -46,7 +54,7 @@ SELECT '' AS six, ABSTIME_TBL.*
-----+------------------------------
| Sun Jan 14 03:14:21 1973 PST
| Mon May 01 00:30:30 1995 PDT
|
epoch
|
Wed Dec 31 16:00:00 1969 PST
| -infinity
| Sat May 10 23:59:12 1947 PDT
(5 rows)
...
...
@@ -57,12 +65,11 @@ SELECT '' AS six, ABSTIME_TBL.*
-----+------------------------------
| Sun Jan 14 03:14:21 1973 PST
| Mon May 01 00:30:30 1995 PDT
| epoch
| current
| Wed Dec 31 16:00:00 1969 PST
| infinity
| Sat May 10 23:59:12 1947 PDT
| invalid
(
7
rows)
(
6
rows)
SELECT '' AS six, ABSTIME_TBL.*
WHERE abstime 'May 10, 1947 23:59:12' <> ABSTIME_TBL.f1;
...
...
@@ -70,25 +77,17 @@ SELECT '' AS six, ABSTIME_TBL.*
-----+------------------------------
| Sun Jan 14 03:14:21 1973 PST
| Mon May 01 00:30:30 1995 PDT
| epoch
| current
| Wed Dec 31 16:00:00 1969 PST
| infinity
| -infinity
| invalid
(7 rows)
SELECT '' AS one, ABSTIME_TBL.*
WHERE abstime 'current' = ABSTIME_TBL.f1;
one | f1
-----+---------
| current
(1 row)
(6 rows)
SELECT '' AS three, ABSTIME_TBL.*
WHERE abstime 'epoch' >= ABSTIME_TBL.f1;
three | f1
-------+------------------------------
|
epoch
|
Wed Dec 31 16:00:00 1969 PST
| -infinity
| Sat May 10 23:59:12 1947 PDT
(3 rows)
...
...
@@ -98,7 +97,7 @@ SELECT '' AS four, ABSTIME_TBL.*
four | f1
------+------------------------------
| Sun Jan 14 03:14:21 1973 PST
|
epoch
|
Wed Dec 31 16:00:00 1969 PST
| -infinity
| Sat May 10 23:59:12 1947 PDT
(4 rows)
...
...
@@ -110,7 +109,7 @@ SELECT '' AS four, ABSTIME_TBL.*
------+------------------------------
| Sun Jan 14 03:14:21 1973 PST
| Mon May 01 00:30:30 1995 PDT
|
epoch
|
Wed Dec 31 16:00:00 1969 PST
(3 rows)
SELECT '' AS four, f1 AS abstime,
...
...
@@ -118,12 +117,12 @@ SELECT '' AS four, f1 AS abstime,
date_part('day',f1) AS day, date_part('hour', f1) AS hour,
date_part('minute', f1) AS minute, date_part('second', f1) AS second
FROM ABSTIME_TBL
WHERE isfinite(f1)
and f1 <> abstime 'current'
WHERE isfinite(f1)
ORDER BY abstime;
four | abstime | year | month | day | hour | minute | second
------+------------------------------+------+-------+-----+------+--------+--------
| Sat May 10 23:59:12 1947 PDT | 1947 | 5 | 10 | 23 | 59 | 12
|
epoch
| 1969 | 12 | 31 | 16 | 0 | 0
|
Wed Dec 31 16:00:00 1969 PST
| 1969 | 12 | 31 | 16 | 0 | 0
| Sun Jan 14 03:14:21 1973 PST | 1973 | 1 | 14 | 3 | 14 | 21
| Mon May 01 00:30:30 1995 PDT | 1995 | 5 | 1 | 0 | 30 | 30
(4 rows)
...
...
src/test/regress/expected/horology-solaris-1947.out
浏览文件 @
9a88b8a6
此差异已折叠。
点击以展开。
src/test/regress/expected/tinterval-solaris-1947.out
浏览文件 @
9a88b8a6
...
...
@@ -2,6 +2,8 @@
-- TINTERVAL
--
CREATE TABLE TINTERVAL_TBL (f1 tinterval);
-- Should accept any abstime,
-- so do not bother with extensive testing of values
INSERT INTO TINTERVAL_TBL (f1)
VALUES ('["-infinity" "infinity"]');
INSERT INTO TINTERVAL_TBL (f1)
...
...
@@ -11,7 +13,7 @@ INSERT INTO TINTERVAL_TBL (f1)
INSERT INTO TINTERVAL_TBL (f1)
VALUES ('["epoch" "Mon May 1 00:30:30 1995"]');
INSERT INTO TINTERVAL_TBL (f1)
VALUES ('["Feb 15 1990 12:15:03" "
current
"]');
VALUES ('["Feb 15 1990 12:15:03" "
2001-09-23 11:12:13
"]');
-- badly formatted tintervals
INSERT INTO TINTERVAL_TBL (f1)
VALUES ('["bad time specifications" ""]');
...
...
@@ -26,8 +28,8 @@ SELECT '' AS five, TINTERVAL_TBL.*;
| ["-infinity" "infinity"]
| ["Sat May 10 23:59:12 1947 PDT" "Sun Jan 14 03:14:21 1973 PST"]
| ["Sun Sep 04 23:59:12 1983 PDT" "Tue Oct 04 23:59:12 1983 PDT"]
| ["
epoch
" "Mon May 01 00:30:30 1995 PDT"]
| ["Thu Feb 15 12:15:03 1990 PST" "
current
"]
| ["
Wed Dec 31 16:00:00 1969 PST
" "Mon May 01 00:30:30 1995 PDT"]
| ["Thu Feb 15 12:15:03 1990 PST" "
Sun Sep 23 11:12:13 2001 PDT
"]
(5 rows)
-- length ==
...
...
@@ -46,8 +48,8 @@ SELECT '' AS three, t.*
three | f1
-------+-----------------------------------------------------------------
| ["Sat May 10 23:59:12 1947 PDT" "Sun Jan 14 03:14:21 1973 PST"]
| ["
epoch
" "Mon May 01 00:30:30 1995 PDT"]
| ["Thu Feb 15 12:15:03 1990 PST" "
current
"]
| ["
Wed Dec 31 16:00:00 1969 PST
" "Mon May 01 00:30:30 1995 PDT"]
| ["Thu Feb 15 12:15:03 1990 PST" "
Sun Sep 23 11:12:13 2001 PDT
"]
(3 rows)
-- length <
...
...
@@ -74,8 +76,8 @@ SELECT '' AS three, t.*
three | f1
-------+-----------------------------------------------------------------
| ["Sat May 10 23:59:12 1947 PDT" "Sun Jan 14 03:14:21 1973 PST"]
| ["
epoch
" "Mon May 01 00:30:30 1995 PDT"]
| ["Thu Feb 15 12:15:03 1990 PST" "
current
"]
| ["
Wed Dec 31 16:00:00 1969 PST
" "Mon May 01 00:30:30 1995 PDT"]
| ["Thu Feb 15 12:15:03 1990 PST" "
Sun Sep 23 11:12:13 2001 PDT
"]
(3 rows)
-- length >=
...
...
@@ -85,8 +87,8 @@ SELECT '' AS three, t.*
three | f1
-------+-----------------------------------------------------------------
| ["Sat May 10 23:59:12 1947 PDT" "Sun Jan 14 03:14:21 1973 PST"]
| ["
epoch
" "Mon May 01 00:30:30 1995 PDT"]
| ["Thu Feb 15 12:15:03 1990 PST" "
current
"]
| ["
Wed Dec 31 16:00:00 1969 PST
" "Mon May 01 00:30:30 1995 PDT"]
| ["Thu Feb 15 12:15:03 1990 PST" "
Sun Sep 23 11:12:13 2001 PDT
"]
(3 rows)
-- overlaps
...
...
@@ -98,7 +100,7 @@ SELECT '' AS three, t1.*
-------+-----------------------------------------------------------------
| ["-infinity" "infinity"]
| ["Sun Sep 04 23:59:12 1983 PDT" "Tue Oct 04 23:59:12 1983 PDT"]
| ["
epoch
" "Mon May 01 00:30:30 1995 PDT"]
| ["
Wed Dec 31 16:00:00 1969 PST
" "Mon May 01 00:30:30 1995 PDT"]
(3 rows)
SET geqo TO 'off';
...
...
@@ -111,8 +113,8 @@ SELECT '' AS five, t1.f1, t2.f1
------+-----------------------------------------------------------------+-----------------------------------------------------------------
| ["-infinity" "infinity"] | ["-infinity" "infinity"]
| ["Sun Sep 04 23:59:12 1983 PDT" "Tue Oct 04 23:59:12 1983 PDT"] | ["Sun Sep 04 23:59:12 1983 PDT" "Tue Oct 04 23:59:12 1983 PDT"]
| ["Thu Feb 15 12:15:03 1990 PST" "
current"] | ["Thu Feb 15 12:15:03 1990 PST" "current
"]
| ["
epoch" "Mon May 01 00:30:30 1995 PDT"] | ["epoch
" "Mon May 01 00:30:30 1995 PDT"]
| ["Thu Feb 15 12:15:03 1990 PST" "
Sun Sep 23 11:12:13 2001 PDT"] | ["Thu Feb 15 12:15:03 1990 PST" "Sun Sep 23 11:12:13 2001 PDT
"]
| ["
Wed Dec 31 16:00:00 1969 PST" "Mon May 01 00:30:30 1995 PDT"] | ["Wed Dec 31 16:00:00 1969 PST
" "Mon May 01 00:30:30 1995 PDT"]
| ["Sat May 10 23:59:12 1947 PDT" "Sun Jan 14 03:14:21 1973 PST"] | ["Sat May 10 23:59:12 1947 PDT" "Sun Jan 14 03:14:21 1973 PST"]
(5 rows)
...
...
@@ -123,19 +125,19 @@ SELECT '' AS fourteen, t1.f1 AS interval1, t2.f1 AS interval2
fourteen | interval1 | interval2
----------+-----------------------------------------------------------------+-----------------------------------------------------------------
| ["-infinity" "infinity"] | ["Sun Sep 04 23:59:12 1983 PDT" "Tue Oct 04 23:59:12 1983 PDT"]
| ["-infinity" "infinity"] | ["Thu Feb 15 12:15:03 1990 PST" "
current
"]
| ["-infinity" "infinity"] | ["
epoch
" "Mon May 01 00:30:30 1995 PDT"]
| ["-infinity" "infinity"] | ["Thu Feb 15 12:15:03 1990 PST" "
Sun Sep 23 11:12:13 2001 PDT
"]
| ["-infinity" "infinity"] | ["
Wed Dec 31 16:00:00 1969 PST
" "Mon May 01 00:30:30 1995 PDT"]
| ["-infinity" "infinity"] | ["Sat May 10 23:59:12 1947 PDT" "Sun Jan 14 03:14:21 1973 PST"]
| ["Sun Sep 04 23:59:12 1983 PDT" "Tue Oct 04 23:59:12 1983 PDT"] | ["-infinity" "infinity"]
| ["Sun Sep 04 23:59:12 1983 PDT" "Tue Oct 04 23:59:12 1983 PDT"] | ["
epoch
" "Mon May 01 00:30:30 1995 PDT"]
| ["Thu Feb 15 12:15:03 1990 PST" "
current"]
| ["-infinity" "infinity"]
| ["Thu Feb 15 12:15:03 1990 PST" "
current"] | ["epoch
" "Mon May 01 00:30:30 1995 PDT"]
| ["
epoch" "Mon May 01 00:30:30 1995 PDT"]
| ["-infinity" "infinity"]
| ["
epoch" "Mon May 01 00:30:30 1995 PDT"]
| ["Sun Sep 04 23:59:12 1983 PDT" "Tue Oct 04 23:59:12 1983 PDT"]
| ["
epoch" "Mon May 01 00:30:30 1995 PDT"] | ["Thu Feb 15 12:15:03 1990 PST" "current
"]
| ["
epoch" "Mon May 01 00:30:30 1995 PDT"]
| ["Sat May 10 23:59:12 1947 PDT" "Sun Jan 14 03:14:21 1973 PST"]
| ["Sun Sep 04 23:59:12 1983 PDT" "Tue Oct 04 23:59:12 1983 PDT"] | ["
Wed Dec 31 16:00:00 1969 PST
" "Mon May 01 00:30:30 1995 PDT"]
| ["Thu Feb 15 12:15:03 1990 PST" "
Sun Sep 23 11:12:13 2001 PDT"]
| ["-infinity" "infinity"]
| ["Thu Feb 15 12:15:03 1990 PST" "
Sun Sep 23 11:12:13 2001 PDT"] | ["Wed Dec 31 16:00:00 1969 PST
" "Mon May 01 00:30:30 1995 PDT"]
| ["
Wed Dec 31 16:00:00 1969 PST" "Mon May 01 00:30:30 1995 PDT"]
| ["-infinity" "infinity"]
| ["
Wed Dec 31 16:00:00 1969 PST" "Mon May 01 00:30:30 1995 PDT"]
| ["Sun Sep 04 23:59:12 1983 PDT" "Tue Oct 04 23:59:12 1983 PDT"]
| ["
Wed Dec 31 16:00:00 1969 PST" "Mon May 01 00:30:30 1995 PDT"] | ["Thu Feb 15 12:15:03 1990 PST" "Sun Sep 23 11:12:13 2001 PDT
"]
| ["
Wed Dec 31 16:00:00 1969 PST" "Mon May 01 00:30:30 1995 PDT"]
| ["Sat May 10 23:59:12 1947 PDT" "Sun Jan 14 03:14:21 1973 PST"]
| ["Sat May 10 23:59:12 1947 PDT" "Sun Jan 14 03:14:21 1973 PST"] | ["-infinity" "infinity"]
| ["Sat May 10 23:59:12 1947 PDT" "Sun Jan 14 03:14:21 1973 PST"] | ["
epoch
" "Mon May 01 00:30:30 1995 PDT"]
| ["Sat May 10 23:59:12 1947 PDT" "Sun Jan 14 03:14:21 1973 PST"] | ["
Wed Dec 31 16:00:00 1969 PST
" "Mon May 01 00:30:30 1995 PDT"]
(14 rows)
-- contains
...
...
@@ -147,7 +149,7 @@ SELECT '' AS five, t1.f1
five | f1
------+-----------------------------------------------------------------
| ["Sun Sep 04 23:59:12 1983 PDT" "Tue Oct 04 23:59:12 1983 PDT"]
| ["Thu Feb 15 12:15:03 1990 PST" "
current
"]
| ["Thu Feb 15 12:15:03 1990 PST" "
Sun Sep 23 11:12:13 2001 PDT
"]
| ["Sat May 10 23:59:12 1947 PDT" "Sun Jan 14 03:14:21 1973 PST"]
(3 rows)
...
...
@@ -162,7 +164,7 @@ SELECT '' AS three, t1.f1
-------+-----------------------------------------------------------------
| ["-infinity" "infinity"]
| ["Sun Sep 04 23:59:12 1983 PDT" "Tue Oct 04 23:59:12 1983 PDT"]
| ["
epoch
" "Mon May 01 00:30:30 1995 PDT"]
| ["
Wed Dec 31 16:00:00 1969 PST
" "Mon May 01 00:30:30 1995 PDT"]
(3 rows)
RESET geqo;
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录