2000-01-05 07:06:23 +01:00
|
|
|
--
|
|
|
|
-- DATETIME
|
|
|
|
--
|
|
|
|
-- Shorthand values
|
|
|
|
-- Not directly usable for regression testing since these are not constants.
|
|
|
|
-- So, just try to test parser and hope for the best - tgl 97/04/26
|
All regression tests pass except for rules.sql (unrelated).
Implement "date/time grand unification".
Transform datetime and timespan into timestamp and interval.
Deprecate datetime and timespan, though translate to new types in gram.y.
Transform all datetime and timespan catalog entries into new types.
Make "INTERVAL" reserved word allowed as a column identifier in gram.y.
Remove dt.h, dt.c files, and retarget datetime.h, datetime.c as utility
routines for all date/time types.
date.{h,c} now deals with date, time types.
timestamp.{h,c} now deals with timestamp, interval types.
nabstime.{h,c} now deals with abstime, reltime, tinterval types.
Make NUMERIC a known native type for purposes of type coersion. Not tested.
2000-02-16 18:27:27 +01:00
|
|
|
SELECT (timestamp 'today' = (timestamp 'yesterday' + interval '1 day')) as "True";
|
2000-01-05 07:06:23 +01:00
|
|
|
True
|
|
|
|
------
|
|
|
|
t
|
1997-11-15 03:55:57 +01:00
|
|
|
(1 row)
|
|
|
|
|
All regression tests pass except for rules.sql (unrelated).
Implement "date/time grand unification".
Transform datetime and timespan into timestamp and interval.
Deprecate datetime and timespan, though translate to new types in gram.y.
Transform all datetime and timespan catalog entries into new types.
Make "INTERVAL" reserved word allowed as a column identifier in gram.y.
Remove dt.h, dt.c files, and retarget datetime.h, datetime.c as utility
routines for all date/time types.
date.{h,c} now deals with date, time types.
timestamp.{h,c} now deals with timestamp, interval types.
nabstime.{h,c} now deals with abstime, reltime, tinterval types.
Make NUMERIC a known native type for purposes of type coersion. Not tested.
2000-02-16 18:27:27 +01:00
|
|
|
SELECT (timestamp 'today' = (timestamp 'tomorrow' - interval '1 day')) as "True";
|
2000-01-05 07:06:23 +01:00
|
|
|
True
|
|
|
|
------
|
|
|
|
t
|
1997-11-15 03:55:57 +01:00
|
|
|
(1 row)
|
|
|
|
|
All regression tests pass except for rules.sql (unrelated).
Implement "date/time grand unification".
Transform datetime and timespan into timestamp and interval.
Deprecate datetime and timespan, though translate to new types in gram.y.
Transform all datetime and timespan catalog entries into new types.
Make "INTERVAL" reserved word allowed as a column identifier in gram.y.
Remove dt.h, dt.c files, and retarget datetime.h, datetime.c as utility
routines for all date/time types.
date.{h,c} now deals with date, time types.
timestamp.{h,c} now deals with timestamp, interval types.
nabstime.{h,c} now deals with abstime, reltime, tinterval types.
Make NUMERIC a known native type for purposes of type coersion. Not tested.
2000-02-16 18:27:27 +01:00
|
|
|
SELECT (timestamp 'tomorrow' = (timestamp 'yesterday' + interval '2 days')) as "True";
|
2000-01-05 07:06:23 +01:00
|
|
|
True
|
|
|
|
------
|
|
|
|
t
|
1997-11-15 03:55:57 +01:00
|
|
|
(1 row)
|
|
|
|
|
All regression tests pass except for rules.sql (unrelated).
Implement "date/time grand unification".
Transform datetime and timespan into timestamp and interval.
Deprecate datetime and timespan, though translate to new types in gram.y.
Transform all datetime and timespan catalog entries into new types.
Make "INTERVAL" reserved word allowed as a column identifier in gram.y.
Remove dt.h, dt.c files, and retarget datetime.h, datetime.c as utility
routines for all date/time types.
date.{h,c} now deals with date, time types.
timestamp.{h,c} now deals with timestamp, interval types.
nabstime.{h,c} now deals with abstime, reltime, tinterval types.
Make NUMERIC a known native type for purposes of type coersion. Not tested.
2000-02-16 18:27:27 +01:00
|
|
|
SELECT (timestamp 'current' = 'now') as "True";
|
2000-01-05 07:06:23 +01:00
|
|
|
True
|
|
|
|
------
|
|
|
|
t
|
1997-11-15 03:55:57 +01:00
|
|
|
(1 row)
|
|
|
|
|
All regression tests pass except for rules.sql (unrelated).
Implement "date/time grand unification".
Transform datetime and timespan into timestamp and interval.
Deprecate datetime and timespan, though translate to new types in gram.y.
Transform all datetime and timespan catalog entries into new types.
Make "INTERVAL" reserved word allowed as a column identifier in gram.y.
Remove dt.h, dt.c files, and retarget datetime.h, datetime.c as utility
routines for all date/time types.
date.{h,c} now deals with date, time types.
timestamp.{h,c} now deals with timestamp, interval types.
nabstime.{h,c} now deals with abstime, reltime, tinterval types.
Make NUMERIC a known native type for purposes of type coersion. Not tested.
2000-02-16 18:27:27 +01:00
|
|
|
SELECT (timestamp 'now' - 'current') AS "ZeroSecs";
|
2000-01-05 07:06:23 +01:00
|
|
|
ZeroSecs
|
|
|
|
----------
|
|
|
|
@ 0
|
1997-11-15 03:55:57 +01:00
|
|
|
(1 row)
|
|
|
|
|
2000-01-05 07:06:23 +01:00
|
|
|
SET DateStyle = 'Postgres,noneuropean';
|
All regression tests pass except for rules.sql (unrelated).
Implement "date/time grand unification".
Transform datetime and timespan into timestamp and interval.
Deprecate datetime and timespan, though translate to new types in gram.y.
Transform all datetime and timespan catalog entries into new types.
Make "INTERVAL" reserved word allowed as a column identifier in gram.y.
Remove dt.h, dt.c files, and retarget datetime.h, datetime.c as utility
routines for all date/time types.
date.{h,c} now deals with date, time types.
timestamp.{h,c} now deals with timestamp, interval types.
nabstime.{h,c} now deals with abstime, reltime, tinterval types.
Make NUMERIC a known native type for purposes of type coersion. Not tested.
2000-02-16 18:27:27 +01:00
|
|
|
SELECT timestamp('1994-01-01', '11:00') AS "Jan_01_1994_11am";
|
2000-01-05 07:06:23 +01:00
|
|
|
Jan_01_1994_11am
|
|
|
|
------------------------------
|
|
|
|
Sat Jan 01 11:00:00 1994 PST
|
1999-01-18 07:32:27 +01:00
|
|
|
(1 row)
|
|
|
|
|
All regression tests pass except for rules.sql (unrelated).
Implement "date/time grand unification".
Transform datetime and timespan into timestamp and interval.
Deprecate datetime and timespan, though translate to new types in gram.y.
Transform all datetime and timespan catalog entries into new types.
Make "INTERVAL" reserved word allowed as a column identifier in gram.y.
Remove dt.h, dt.c files, and retarget datetime.h, datetime.c as utility
routines for all date/time types.
date.{h,c} now deals with date, time types.
timestamp.{h,c} now deals with timestamp, interval types.
nabstime.{h,c} now deals with abstime, reltime, tinterval types.
Make NUMERIC a known native type for purposes of type coersion. Not tested.
2000-02-16 18:27:27 +01:00
|
|
|
CREATE TABLE TIMESTAMP_TBL ( d1 timestamp);
|
|
|
|
INSERT INTO TIMESTAMP_TBL VALUES ('current');
|
|
|
|
INSERT INTO TIMESTAMP_TBL VALUES ('today');
|
|
|
|
INSERT INTO TIMESTAMP_TBL VALUES ('yesterday');
|
|
|
|
INSERT INTO TIMESTAMP_TBL VALUES ('tomorrow');
|
|
|
|
INSERT INTO TIMESTAMP_TBL VALUES ('tomorrow EST');
|
|
|
|
INSERT INTO TIMESTAMP_TBL VALUES ('tomorrow zulu');
|
|
|
|
SELECT count(*) AS one FROM TIMESTAMP_TBL WHERE d1 = timestamp 'today';
|
2000-01-05 07:06:23 +01:00
|
|
|
one
|
|
|
|
-----
|
|
|
|
1
|
1997-04-27 05:57:34 +02:00
|
|
|
(1 row)
|
|
|
|
|
All regression tests pass except for rules.sql (unrelated).
Implement "date/time grand unification".
Transform datetime and timespan into timestamp and interval.
Deprecate datetime and timespan, though translate to new types in gram.y.
Transform all datetime and timespan catalog entries into new types.
Make "INTERVAL" reserved word allowed as a column identifier in gram.y.
Remove dt.h, dt.c files, and retarget datetime.h, datetime.c as utility
routines for all date/time types.
date.{h,c} now deals with date, time types.
timestamp.{h,c} now deals with timestamp, interval types.
nabstime.{h,c} now deals with abstime, reltime, tinterval types.
Make NUMERIC a known native type for purposes of type coersion. Not tested.
2000-02-16 18:27:27 +01:00
|
|
|
SELECT count(*) AS one FROM TIMESTAMP_TBL WHERE d1 = timestamp 'tomorrow';
|
2000-01-05 07:06:23 +01:00
|
|
|
one
|
|
|
|
-----
|
|
|
|
1
|
1997-04-27 05:57:34 +02:00
|
|
|
(1 row)
|
|
|
|
|
All regression tests pass except for rules.sql (unrelated).
Implement "date/time grand unification".
Transform datetime and timespan into timestamp and interval.
Deprecate datetime and timespan, though translate to new types in gram.y.
Transform all datetime and timespan catalog entries into new types.
Make "INTERVAL" reserved word allowed as a column identifier in gram.y.
Remove dt.h, dt.c files, and retarget datetime.h, datetime.c as utility
routines for all date/time types.
date.{h,c} now deals with date, time types.
timestamp.{h,c} now deals with timestamp, interval types.
nabstime.{h,c} now deals with abstime, reltime, tinterval types.
Make NUMERIC a known native type for purposes of type coersion. Not tested.
2000-02-16 18:27:27 +01:00
|
|
|
SELECT count(*) AS one FROM TIMESTAMP_TBL WHERE d1 = timestamp 'yesterday';
|
2000-01-05 07:06:23 +01:00
|
|
|
one
|
|
|
|
-----
|
|
|
|
1
|
1997-04-27 05:57:34 +02:00
|
|
|
(1 row)
|
|
|
|
|
All regression tests pass except for rules.sql (unrelated).
Implement "date/time grand unification".
Transform datetime and timespan into timestamp and interval.
Deprecate datetime and timespan, though translate to new types in gram.y.
Transform all datetime and timespan catalog entries into new types.
Make "INTERVAL" reserved word allowed as a column identifier in gram.y.
Remove dt.h, dt.c files, and retarget datetime.h, datetime.c as utility
routines for all date/time types.
date.{h,c} now deals with date, time types.
timestamp.{h,c} now deals with timestamp, interval types.
nabstime.{h,c} now deals with abstime, reltime, tinterval types.
Make NUMERIC a known native type for purposes of type coersion. Not tested.
2000-02-16 18:27:27 +01:00
|
|
|
SELECT count(*) AS one FROM TIMESTAMP_TBL WHERE d1 = timestamp 'today' + interval '1 day';
|
2000-01-05 07:06:23 +01:00
|
|
|
one
|
|
|
|
-----
|
|
|
|
1
|
1997-04-27 05:57:34 +02:00
|
|
|
(1 row)
|
|
|
|
|
All regression tests pass except for rules.sql (unrelated).
Implement "date/time grand unification".
Transform datetime and timespan into timestamp and interval.
Deprecate datetime and timespan, though translate to new types in gram.y.
Transform all datetime and timespan catalog entries into new types.
Make "INTERVAL" reserved word allowed as a column identifier in gram.y.
Remove dt.h, dt.c files, and retarget datetime.h, datetime.c as utility
routines for all date/time types.
date.{h,c} now deals with date, time types.
timestamp.{h,c} now deals with timestamp, interval types.
nabstime.{h,c} now deals with abstime, reltime, tinterval types.
Make NUMERIC a known native type for purposes of type coersion. Not tested.
2000-02-16 18:27:27 +01:00
|
|
|
SELECT count(*) AS one FROM TIMESTAMP_TBL WHERE d1 = timestamp 'today' - interval '1 day';
|
2000-01-05 07:06:23 +01:00
|
|
|
one
|
|
|
|
-----
|
|
|
|
1
|
1997-04-27 05:57:34 +02:00
|
|
|
(1 row)
|
|
|
|
|
All regression tests pass except for rules.sql (unrelated).
Implement "date/time grand unification".
Transform datetime and timespan into timestamp and interval.
Deprecate datetime and timespan, though translate to new types in gram.y.
Transform all datetime and timespan catalog entries into new types.
Make "INTERVAL" reserved word allowed as a column identifier in gram.y.
Remove dt.h, dt.c files, and retarget datetime.h, datetime.c as utility
routines for all date/time types.
date.{h,c} now deals with date, time types.
timestamp.{h,c} now deals with timestamp, interval types.
nabstime.{h,c} now deals with abstime, reltime, tinterval types.
Make NUMERIC a known native type for purposes of type coersion. Not tested.
2000-02-16 18:27:27 +01:00
|
|
|
SELECT count(*) AS one FROM TIMESTAMP_TBL WHERE d1 = timestamp 'now';
|
2000-01-05 07:06:23 +01:00
|
|
|
one
|
|
|
|
-----
|
|
|
|
1
|
1997-04-27 05:57:34 +02:00
|
|
|
(1 row)
|
|
|
|
|
All regression tests pass except for rules.sql (unrelated).
Implement "date/time grand unification".
Transform datetime and timespan into timestamp and interval.
Deprecate datetime and timespan, though translate to new types in gram.y.
Transform all datetime and timespan catalog entries into new types.
Make "INTERVAL" reserved word allowed as a column identifier in gram.y.
Remove dt.h, dt.c files, and retarget datetime.h, datetime.c as utility
routines for all date/time types.
date.{h,c} now deals with date, time types.
timestamp.{h,c} now deals with timestamp, interval types.
nabstime.{h,c} now deals with abstime, reltime, tinterval types.
Make NUMERIC a known native type for purposes of type coersion. Not tested.
2000-02-16 18:27:27 +01:00
|
|
|
DELETE FROM TIMESTAMP_TBL;
|
2000-01-05 07:06:23 +01:00
|
|
|
-- verify uniform transaction time within transaction block
|
All regression tests pass except for rules.sql (unrelated).
Implement "date/time grand unification".
Transform datetime and timespan into timestamp and interval.
Deprecate datetime and timespan, though translate to new types in gram.y.
Transform all datetime and timespan catalog entries into new types.
Make "INTERVAL" reserved word allowed as a column identifier in gram.y.
Remove dt.h, dt.c files, and retarget datetime.h, datetime.c as utility
routines for all date/time types.
date.{h,c} now deals with date, time types.
timestamp.{h,c} now deals with timestamp, interval types.
nabstime.{h,c} now deals with abstime, reltime, tinterval types.
Make NUMERIC a known native type for purposes of type coersion. Not tested.
2000-02-16 18:27:27 +01:00
|
|
|
INSERT INTO TIMESTAMP_TBL VALUES ('current');
|
2000-01-05 07:06:23 +01:00
|
|
|
BEGIN;
|
All regression tests pass except for rules.sql (unrelated).
Implement "date/time grand unification".
Transform datetime and timespan into timestamp and interval.
Deprecate datetime and timespan, though translate to new types in gram.y.
Transform all datetime and timespan catalog entries into new types.
Make "INTERVAL" reserved word allowed as a column identifier in gram.y.
Remove dt.h, dt.c files, and retarget datetime.h, datetime.c as utility
routines for all date/time types.
date.{h,c} now deals with date, time types.
timestamp.{h,c} now deals with timestamp, interval types.
nabstime.{h,c} now deals with abstime, reltime, tinterval types.
Make NUMERIC a known native type for purposes of type coersion. Not tested.
2000-02-16 18:27:27 +01:00
|
|
|
INSERT INTO TIMESTAMP_TBL VALUES ('now');
|
|
|
|
SELECT count(*) AS two FROM TIMESTAMP_TBL WHERE d1 = timestamp 'now';
|
2000-01-05 07:06:23 +01:00
|
|
|
two
|
|
|
|
-----
|
|
|
|
2
|
1997-09-01 08:16:08 +02:00
|
|
|
(1 row)
|
|
|
|
|
2000-01-05 07:06:23 +01:00
|
|
|
END;
|
All regression tests pass except for rules.sql (unrelated).
Implement "date/time grand unification".
Transform datetime and timespan into timestamp and interval.
Deprecate datetime and timespan, though translate to new types in gram.y.
Transform all datetime and timespan catalog entries into new types.
Make "INTERVAL" reserved word allowed as a column identifier in gram.y.
Remove dt.h, dt.c files, and retarget datetime.h, datetime.c as utility
routines for all date/time types.
date.{h,c} now deals with date, time types.
timestamp.{h,c} now deals with timestamp, interval types.
nabstime.{h,c} now deals with abstime, reltime, tinterval types.
Make NUMERIC a known native type for purposes of type coersion. Not tested.
2000-02-16 18:27:27 +01:00
|
|
|
DELETE FROM TIMESTAMP_TBL;
|
2000-01-05 07:06:23 +01:00
|
|
|
-- Special values
|
All regression tests pass except for rules.sql (unrelated).
Implement "date/time grand unification".
Transform datetime and timespan into timestamp and interval.
Deprecate datetime and timespan, though translate to new types in gram.y.
Transform all datetime and timespan catalog entries into new types.
Make "INTERVAL" reserved word allowed as a column identifier in gram.y.
Remove dt.h, dt.c files, and retarget datetime.h, datetime.c as utility
routines for all date/time types.
date.{h,c} now deals with date, time types.
timestamp.{h,c} now deals with timestamp, interval types.
nabstime.{h,c} now deals with abstime, reltime, tinterval types.
Make NUMERIC a known native type for purposes of type coersion. Not tested.
2000-02-16 18:27:27 +01:00
|
|
|
INSERT INTO TIMESTAMP_TBL VALUES ('invalid');
|
|
|
|
INSERT INTO TIMESTAMP_TBL VALUES ('-infinity');
|
|
|
|
INSERT INTO TIMESTAMP_TBL VALUES ('infinity');
|
|
|
|
INSERT INTO TIMESTAMP_TBL VALUES ('epoch');
|
2000-01-05 07:06:23 +01:00
|
|
|
-- Postgres v6.0 standard output format
|
All regression tests pass except for rules.sql (unrelated).
Implement "date/time grand unification".
Transform datetime and timespan into timestamp and interval.
Deprecate datetime and timespan, though translate to new types in gram.y.
Transform all datetime and timespan catalog entries into new types.
Make "INTERVAL" reserved word allowed as a column identifier in gram.y.
Remove dt.h, dt.c files, and retarget datetime.h, datetime.c as utility
routines for all date/time types.
date.{h,c} now deals with date, time types.
timestamp.{h,c} now deals with timestamp, interval types.
nabstime.{h,c} now deals with abstime, reltime, tinterval types.
Make NUMERIC a known native type for purposes of type coersion. Not tested.
2000-02-16 18:27:27 +01:00
|
|
|
INSERT INTO TIMESTAMP_TBL VALUES ('Mon Feb 10 17:32:01 1997 PST');
|
|
|
|
INSERT INTO TIMESTAMP_TBL VALUES ('Invalid Abstime');
|
|
|
|
INSERT INTO TIMESTAMP_TBL VALUES ('Undefined Abstime');
|
2000-01-05 07:06:23 +01:00
|
|
|
-- Variations on Postgres v6.1 standard output format
|
All regression tests pass except for rules.sql (unrelated).
Implement "date/time grand unification".
Transform datetime and timespan into timestamp and interval.
Deprecate datetime and timespan, though translate to new types in gram.y.
Transform all datetime and timespan catalog entries into new types.
Make "INTERVAL" reserved word allowed as a column identifier in gram.y.
Remove dt.h, dt.c files, and retarget datetime.h, datetime.c as utility
routines for all date/time types.
date.{h,c} now deals with date, time types.
timestamp.{h,c} now deals with timestamp, interval types.
nabstime.{h,c} now deals with abstime, reltime, tinterval types.
Make NUMERIC a known native type for purposes of type coersion. Not tested.
2000-02-16 18:27:27 +01:00
|
|
|
INSERT INTO TIMESTAMP_TBL VALUES ('Mon Feb 10 17:32:01.000001 1997 PST');
|
|
|
|
INSERT INTO TIMESTAMP_TBL VALUES ('Mon Feb 10 17:32:01.999999 1997 PST');
|
|
|
|
INSERT INTO TIMESTAMP_TBL VALUES ('Mon Feb 10 17:32:01.4 1997 PST');
|
|
|
|
INSERT INTO TIMESTAMP_TBL VALUES ('Mon Feb 10 17:32:01.5 1997 PST');
|
|
|
|
INSERT INTO TIMESTAMP_TBL VALUES ('Mon Feb 10 17:32:01.6 1997 PST');
|
2000-01-05 07:06:23 +01:00
|
|
|
-- ISO 8601 format
|
All regression tests pass except for rules.sql (unrelated).
Implement "date/time grand unification".
Transform datetime and timespan into timestamp and interval.
Deprecate datetime and timespan, though translate to new types in gram.y.
Transform all datetime and timespan catalog entries into new types.
Make "INTERVAL" reserved word allowed as a column identifier in gram.y.
Remove dt.h, dt.c files, and retarget datetime.h, datetime.c as utility
routines for all date/time types.
date.{h,c} now deals with date, time types.
timestamp.{h,c} now deals with timestamp, interval types.
nabstime.{h,c} now deals with abstime, reltime, tinterval types.
Make NUMERIC a known native type for purposes of type coersion. Not tested.
2000-02-16 18:27:27 +01:00
|
|
|
INSERT INTO TIMESTAMP_TBL VALUES ('1997-01-02');
|
|
|
|
INSERT INTO TIMESTAMP_TBL VALUES ('1997-01-02 03:04:05');
|
|
|
|
INSERT INTO TIMESTAMP_TBL VALUES ('1997-02-10 17:32:01-08');
|
|
|
|
INSERT INTO TIMESTAMP_TBL VALUES ('1997-02-10 17:32:01-0800');
|
|
|
|
INSERT INTO TIMESTAMP_TBL VALUES ('1997-02-10 17:32:01 -08:00');
|
|
|
|
INSERT INTO TIMESTAMP_TBL VALUES ('19970210 173201 -0800');
|
|
|
|
INSERT INTO TIMESTAMP_TBL VALUES ('1997-06-10 17:32:01 -07:00');
|
|
|
|
-- POSIX format
|
|
|
|
INSERT INTO TIMESTAMP_TBL VALUES ('2000-02-15 23:14:30 GMT+8');
|
|
|
|
INSERT INTO TIMESTAMP_TBL VALUES ('2000-02-15 23:14:30 EST+3');
|
|
|
|
ERROR: Bad timestamp external representation '2000-02-15 23:14:30 EST+3'
|
2000-01-05 07:06:23 +01:00
|
|
|
-- Variations for acceptable input formats
|
All regression tests pass except for rules.sql (unrelated).
Implement "date/time grand unification".
Transform datetime and timespan into timestamp and interval.
Deprecate datetime and timespan, though translate to new types in gram.y.
Transform all datetime and timespan catalog entries into new types.
Make "INTERVAL" reserved word allowed as a column identifier in gram.y.
Remove dt.h, dt.c files, and retarget datetime.h, datetime.c as utility
routines for all date/time types.
date.{h,c} now deals with date, time types.
timestamp.{h,c} now deals with timestamp, interval types.
nabstime.{h,c} now deals with abstime, reltime, tinterval types.
Make NUMERIC a known native type for purposes of type coersion. Not tested.
2000-02-16 18:27:27 +01:00
|
|
|
INSERT INTO TIMESTAMP_TBL VALUES ('Feb 10 17:32:01 1997 -0800');
|
|
|
|
INSERT INTO TIMESTAMP_TBL VALUES ('Feb 10 17:32:01 1997');
|
|
|
|
INSERT INTO TIMESTAMP_TBL VALUES ('Feb 10 5:32PM 1997');
|
|
|
|
INSERT INTO TIMESTAMP_TBL VALUES ('1997/02/10 17:32:01-0800');
|
|
|
|
INSERT INTO TIMESTAMP_TBL VALUES ('1997-02-10 17:32:01 PST');
|
|
|
|
INSERT INTO TIMESTAMP_TBL VALUES ('Feb-10-1997 17:32:01 PST');
|
|
|
|
INSERT INTO TIMESTAMP_TBL VALUES ('02-10-1997 17:32:01 PST');
|
|
|
|
INSERT INTO TIMESTAMP_TBL VALUES ('19970210 173201 PST');
|
|
|
|
INSERT INTO TIMESTAMP_TBL VALUES ('97FEB10 5:32:01PM UTC');
|
|
|
|
INSERT INTO TIMESTAMP_TBL VALUES ('97/02/10 17:32:01 UTC');
|
|
|
|
INSERT INTO TIMESTAMP_TBL VALUES ('97.041 17:32:01 UTC');
|
2000-01-05 07:06:23 +01:00
|
|
|
-- Check date conversion and date arithmetic
|
All regression tests pass except for rules.sql (unrelated).
Implement "date/time grand unification".
Transform datetime and timespan into timestamp and interval.
Deprecate datetime and timespan, though translate to new types in gram.y.
Transform all datetime and timespan catalog entries into new types.
Make "INTERVAL" reserved word allowed as a column identifier in gram.y.
Remove dt.h, dt.c files, and retarget datetime.h, datetime.c as utility
routines for all date/time types.
date.{h,c} now deals with date, time types.
timestamp.{h,c} now deals with timestamp, interval types.
nabstime.{h,c} now deals with abstime, reltime, tinterval types.
Make NUMERIC a known native type for purposes of type coersion. Not tested.
2000-02-16 18:27:27 +01:00
|
|
|
INSERT INTO TIMESTAMP_TBL VALUES ('1997-06-10 18:32:01 PDT');
|
|
|
|
INSERT INTO TIMESTAMP_TBL VALUES ('Feb 10 17:32:01 1997');
|
|
|
|
INSERT INTO TIMESTAMP_TBL VALUES ('Feb 11 17:32:01 1997');
|
|
|
|
INSERT INTO TIMESTAMP_TBL VALUES ('Feb 12 17:32:01 1997');
|
|
|
|
INSERT INTO TIMESTAMP_TBL VALUES ('Feb 13 17:32:01 1997');
|
|
|
|
INSERT INTO TIMESTAMP_TBL VALUES ('Feb 14 17:32:01 1997');
|
|
|
|
INSERT INTO TIMESTAMP_TBL VALUES ('Feb 15 17:32:01 1997');
|
|
|
|
INSERT INTO TIMESTAMP_TBL VALUES ('Feb 16 17:32:01 1997');
|
|
|
|
INSERT INTO TIMESTAMP_TBL VALUES ('Feb 16 17:32:01 0097 BC');
|
|
|
|
INSERT INTO TIMESTAMP_TBL VALUES ('Feb 16 17:32:01 0097');
|
|
|
|
INSERT INTO TIMESTAMP_TBL VALUES ('Feb 16 17:32:01 0597');
|
|
|
|
INSERT INTO TIMESTAMP_TBL VALUES ('Feb 16 17:32:01 1097');
|
|
|
|
INSERT INTO TIMESTAMP_TBL VALUES ('Feb 16 17:32:01 1697');
|
|
|
|
INSERT INTO TIMESTAMP_TBL VALUES ('Feb 16 17:32:01 1797');
|
|
|
|
INSERT INTO TIMESTAMP_TBL VALUES ('Feb 16 17:32:01 1897');
|
|
|
|
INSERT INTO TIMESTAMP_TBL VALUES ('Feb 16 17:32:01 1997');
|
|
|
|
INSERT INTO TIMESTAMP_TBL VALUES ('Feb 16 17:32:01 2097');
|
|
|
|
INSERT INTO TIMESTAMP_TBL VALUES ('Feb 28 17:32:01 1996');
|
|
|
|
INSERT INTO TIMESTAMP_TBL VALUES ('Feb 29 17:32:01 1996');
|
|
|
|
INSERT INTO TIMESTAMP_TBL VALUES ('Mar 01 17:32:01 1996');
|
|
|
|
INSERT INTO TIMESTAMP_TBL VALUES ('Dec 30 17:32:01 1996');
|
|
|
|
INSERT INTO TIMESTAMP_TBL VALUES ('Dec 31 17:32:01 1996');
|
|
|
|
INSERT INTO TIMESTAMP_TBL VALUES ('Jan 01 17:32:01 1997');
|
|
|
|
INSERT INTO TIMESTAMP_TBL VALUES ('Feb 28 17:32:01 1997');
|
|
|
|
INSERT INTO TIMESTAMP_TBL VALUES ('Feb 29 17:32:01 1997');
|
|
|
|
ERROR: Bad timestamp external representation 'Feb 29 17:32:01 1997'
|
|
|
|
INSERT INTO TIMESTAMP_TBL VALUES ('Mar 01 17:32:01 1997');
|
|
|
|
INSERT INTO TIMESTAMP_TBL VALUES ('Dec 30 17:32:01 1997');
|
|
|
|
INSERT INTO TIMESTAMP_TBL VALUES ('Dec 31 17:32:01 1997');
|
|
|
|
INSERT INTO TIMESTAMP_TBL VALUES ('Dec 31 17:32:01 1999');
|
|
|
|
INSERT INTO TIMESTAMP_TBL VALUES ('Jan 01 17:32:01 2000');
|
|
|
|
INSERT INTO TIMESTAMP_TBL VALUES ('Dec 31 17:32:01 2000');
|
|
|
|
INSERT INTO TIMESTAMP_TBL VALUES ('Jan 01 17:32:01 2001');
|
2000-01-05 07:06:23 +01:00
|
|
|
-- Currently unsupported syntax and ranges
|
All regression tests pass except for rules.sql (unrelated).
Implement "date/time grand unification".
Transform datetime and timespan into timestamp and interval.
Deprecate datetime and timespan, though translate to new types in gram.y.
Transform all datetime and timespan catalog entries into new types.
Make "INTERVAL" reserved word allowed as a column identifier in gram.y.
Remove dt.h, dt.c files, and retarget datetime.h, datetime.c as utility
routines for all date/time types.
date.{h,c} now deals with date, time types.
timestamp.{h,c} now deals with timestamp, interval types.
nabstime.{h,c} now deals with abstime, reltime, tinterval types.
Make NUMERIC a known native type for purposes of type coersion. Not tested.
2000-02-16 18:27:27 +01:00
|
|
|
INSERT INTO TIMESTAMP_TBL VALUES ('Feb 16 17:32:01 -0097');
|
|
|
|
ERROR: Bad timestamp external representation 'Feb 16 17:32:01 -0097'
|
|
|
|
INSERT INTO TIMESTAMP_TBL VALUES ('Feb 16 17:32:01 5097 BC');
|
|
|
|
ERROR: Timestamp out of range 'Feb 16 17:32:01 5097 BC'
|
|
|
|
SELECT '' AS sixtythree, d1 FROM TIMESTAMP_TBL;
|
2000-01-05 07:06:23 +01:00
|
|
|
sixtythree | d1
|
|
|
|
------------+---------------------------------
|
|
|
|
| invalid
|
|
|
|
| -infinity
|
|
|
|
| infinity
|
|
|
|
| epoch
|
|
|
|
| Mon Feb 10 17:32:01 1997 PST
|
|
|
|
| invalid
|
|
|
|
| invalid
|
|
|
|
| Mon Feb 10 17:32:01.00 1997 PST
|
|
|
|
| Mon Feb 10 17:32:02.00 1997 PST
|
|
|
|
| Mon Feb 10 17:32:01.40 1997 PST
|
|
|
|
| Mon Feb 10 17:32:01.50 1997 PST
|
|
|
|
| Mon Feb 10 17:32:01.60 1997 PST
|
|
|
|
| Thu Jan 02 00:00:00 1997 PST
|
|
|
|
| Thu Jan 02 03:04:05 1997 PST
|
|
|
|
| Mon Feb 10 17:32:01 1997 PST
|
|
|
|
| Mon Feb 10 17:32:01 1997 PST
|
|
|
|
| Mon Feb 10 17:32:01 1997 PST
|
|
|
|
| Mon Feb 10 17:32:01 1997 PST
|
|
|
|
| Tue Jun 10 17:32:01 1997 PDT
|
All regression tests pass except for rules.sql (unrelated).
Implement "date/time grand unification".
Transform datetime and timespan into timestamp and interval.
Deprecate datetime and timespan, though translate to new types in gram.y.
Transform all datetime and timespan catalog entries into new types.
Make "INTERVAL" reserved word allowed as a column identifier in gram.y.
Remove dt.h, dt.c files, and retarget datetime.h, datetime.c as utility
routines for all date/time types.
date.{h,c} now deals with date, time types.
timestamp.{h,c} now deals with timestamp, interval types.
nabstime.{h,c} now deals with abstime, reltime, tinterval types.
Make NUMERIC a known native type for purposes of type coersion. Not tested.
2000-02-16 18:27:27 +01:00
|
|
|
| Tue Feb 15 23:14:30 2000 PST
|
2000-01-05 07:06:23 +01:00
|
|
|
| Mon Feb 10 17:32:01 1997 PST
|
|
|
|
| Mon Feb 10 17:32:01 1997 PST
|
|
|
|
| Mon Feb 10 17:32:00 1997 PST
|
|
|
|
| Mon Feb 10 17:32:01 1997 PST
|
|
|
|
| Mon Feb 10 17:32:01 1997 PST
|
|
|
|
| Mon Feb 10 17:32:01 1997 PST
|
|
|
|
| Mon Feb 10 17:32:01 1997 PST
|
|
|
|
| Mon Feb 10 17:32:01 1997 PST
|
|
|
|
| Mon Feb 10 09:32:01 1997 PST
|
|
|
|
| Mon Feb 10 09:32:01 1997 PST
|
|
|
|
| Mon Feb 10 09:32:01 1997 PST
|
|
|
|
| Tue Jun 10 18:32:01 1997 PDT
|
|
|
|
| Mon Feb 10 17:32:01 1997 PST
|
|
|
|
| Tue Feb 11 17:32:01 1997 PST
|
|
|
|
| Wed Feb 12 17:32:01 1997 PST
|
|
|
|
| Thu Feb 13 17:32:01 1997 PST
|
|
|
|
| Fri Feb 14 17:32:01 1997 PST
|
|
|
|
| Sat Feb 15 17:32:01 1997 PST
|
|
|
|
| Sun Feb 16 17:32:01 1997 PST
|
|
|
|
| Tue Feb 16 17:32 0097 BC
|
|
|
|
| Sat Feb 16 17:32:01 0097
|
|
|
|
| Thu Feb 16 17:32:01 0597
|
|
|
|
| Tue Feb 16 17:32:01 1097
|
|
|
|
| Sat Feb 16 17:32:01 1697
|
|
|
|
| Thu Feb 16 17:32:01 1797
|
|
|
|
| Tue Feb 16 17:32:01 1897
|
|
|
|
| Sun Feb 16 17:32:01 1997 PST
|
|
|
|
| Sat Feb 16 17:32:01 2097
|
|
|
|
| Wed Feb 28 17:32:01 1996 PST
|
|
|
|
| Thu Feb 29 17:32:01 1996 PST
|
|
|
|
| Fri Mar 01 17:32:01 1996 PST
|
|
|
|
| Mon Dec 30 17:32:01 1996 PST
|
|
|
|
| Tue Dec 31 17:32:01 1996 PST
|
|
|
|
| Wed Jan 01 17:32:01 1997 PST
|
|
|
|
| Fri Feb 28 17:32:01 1997 PST
|
|
|
|
| Sat Mar 01 17:32:01 1997 PST
|
|
|
|
| Tue Dec 30 17:32:01 1997 PST
|
|
|
|
| Wed Dec 31 17:32:01 1997 PST
|
|
|
|
| Fri Dec 31 17:32:01 1999 PST
|
|
|
|
| Sat Jan 01 17:32:01 2000 PST
|
|
|
|
| Sun Dec 31 17:32:01 2000 PST
|
|
|
|
| Mon Jan 01 17:32:01 2001 PST
|
All regression tests pass except for rules.sql (unrelated).
Implement "date/time grand unification".
Transform datetime and timespan into timestamp and interval.
Deprecate datetime and timespan, though translate to new types in gram.y.
Transform all datetime and timespan catalog entries into new types.
Make "INTERVAL" reserved word allowed as a column identifier in gram.y.
Remove dt.h, dt.c files, and retarget datetime.h, datetime.c as utility
routines for all date/time types.
date.{h,c} now deals with date, time types.
timestamp.{h,c} now deals with timestamp, interval types.
nabstime.{h,c} now deals with abstime, reltime, tinterval types.
Make NUMERIC a known native type for purposes of type coersion. Not tested.
2000-02-16 18:27:27 +01:00
|
|
|
(62 rows)
|
1997-04-27 05:57:34 +02:00
|
|
|
|
2000-01-05 07:06:23 +01:00
|
|
|
-- Demonstrate functions and operators
|
All regression tests pass except for rules.sql (unrelated).
Implement "date/time grand unification".
Transform datetime and timespan into timestamp and interval.
Deprecate datetime and timespan, though translate to new types in gram.y.
Transform all datetime and timespan catalog entries into new types.
Make "INTERVAL" reserved word allowed as a column identifier in gram.y.
Remove dt.h, dt.c files, and retarget datetime.h, datetime.c as utility
routines for all date/time types.
date.{h,c} now deals with date, time types.
timestamp.{h,c} now deals with timestamp, interval types.
nabstime.{h,c} now deals with abstime, reltime, tinterval types.
Make NUMERIC a known native type for purposes of type coersion. Not tested.
2000-02-16 18:27:27 +01:00
|
|
|
SELECT '' AS fortythree, d1 FROM TIMESTAMP_TBL
|
|
|
|
WHERE d1 > timestamp '1997-01-02' and d1 != timestamp 'current';
|
2000-01-05 07:06:23 +01:00
|
|
|
fortythree | d1
|
|
|
|
------------+---------------------------------
|
|
|
|
| infinity
|
|
|
|
| Mon Feb 10 17:32:01 1997 PST
|
|
|
|
| Mon Feb 10 17:32:01.00 1997 PST
|
|
|
|
| Mon Feb 10 17:32:02.00 1997 PST
|
|
|
|
| Mon Feb 10 17:32:01.40 1997 PST
|
|
|
|
| Mon Feb 10 17:32:01.50 1997 PST
|
|
|
|
| Mon Feb 10 17:32:01.60 1997 PST
|
|
|
|
| Thu Jan 02 03:04:05 1997 PST
|
|
|
|
| Mon Feb 10 17:32:01 1997 PST
|
|
|
|
| Mon Feb 10 17:32:01 1997 PST
|
|
|
|
| Mon Feb 10 17:32:01 1997 PST
|
|
|
|
| Mon Feb 10 17:32:01 1997 PST
|
|
|
|
| Tue Jun 10 17:32:01 1997 PDT
|
All regression tests pass except for rules.sql (unrelated).
Implement "date/time grand unification".
Transform datetime and timespan into timestamp and interval.
Deprecate datetime and timespan, though translate to new types in gram.y.
Transform all datetime and timespan catalog entries into new types.
Make "INTERVAL" reserved word allowed as a column identifier in gram.y.
Remove dt.h, dt.c files, and retarget datetime.h, datetime.c as utility
routines for all date/time types.
date.{h,c} now deals with date, time types.
timestamp.{h,c} now deals with timestamp, interval types.
nabstime.{h,c} now deals with abstime, reltime, tinterval types.
Make NUMERIC a known native type for purposes of type coersion. Not tested.
2000-02-16 18:27:27 +01:00
|
|
|
| Tue Feb 15 23:14:30 2000 PST
|
2000-01-05 07:06:23 +01:00
|
|
|
| Mon Feb 10 17:32:01 1997 PST
|
|
|
|
| Mon Feb 10 17:32:01 1997 PST
|
|
|
|
| Mon Feb 10 17:32:00 1997 PST
|
|
|
|
| Mon Feb 10 17:32:01 1997 PST
|
|
|
|
| Mon Feb 10 17:32:01 1997 PST
|
|
|
|
| Mon Feb 10 17:32:01 1997 PST
|
|
|
|
| Mon Feb 10 17:32:01 1997 PST
|
|
|
|
| Mon Feb 10 17:32:01 1997 PST
|
|
|
|
| Mon Feb 10 09:32:01 1997 PST
|
|
|
|
| Mon Feb 10 09:32:01 1997 PST
|
|
|
|
| Mon Feb 10 09:32:01 1997 PST
|
|
|
|
| Tue Jun 10 18:32:01 1997 PDT
|
|
|
|
| Mon Feb 10 17:32:01 1997 PST
|
|
|
|
| Tue Feb 11 17:32:01 1997 PST
|
|
|
|
| Wed Feb 12 17:32:01 1997 PST
|
|
|
|
| Thu Feb 13 17:32:01 1997 PST
|
|
|
|
| Fri Feb 14 17:32:01 1997 PST
|
|
|
|
| Sat Feb 15 17:32:01 1997 PST
|
|
|
|
| Sun Feb 16 17:32:01 1997 PST
|
|
|
|
| Sun Feb 16 17:32:01 1997 PST
|
|
|
|
| Sat Feb 16 17:32:01 2097
|
|
|
|
| Fri Feb 28 17:32:01 1997 PST
|
|
|
|
| Sat Mar 01 17:32:01 1997 PST
|
|
|
|
| Tue Dec 30 17:32:01 1997 PST
|
|
|
|
| Wed Dec 31 17:32:01 1997 PST
|
|
|
|
| Fri Dec 31 17:32:01 1999 PST
|
|
|
|
| Sat Jan 01 17:32:01 2000 PST
|
|
|
|
| Sun Dec 31 17:32:01 2000 PST
|
|
|
|
| Mon Jan 01 17:32:01 2001 PST
|
All regression tests pass except for rules.sql (unrelated).
Implement "date/time grand unification".
Transform datetime and timespan into timestamp and interval.
Deprecate datetime and timespan, though translate to new types in gram.y.
Transform all datetime and timespan catalog entries into new types.
Make "INTERVAL" reserved word allowed as a column identifier in gram.y.
Remove dt.h, dt.c files, and retarget datetime.h, datetime.c as utility
routines for all date/time types.
date.{h,c} now deals with date, time types.
timestamp.{h,c} now deals with timestamp, interval types.
nabstime.{h,c} now deals with abstime, reltime, tinterval types.
Make NUMERIC a known native type for purposes of type coersion. Not tested.
2000-02-16 18:27:27 +01:00
|
|
|
(43 rows)
|
1997-04-27 05:57:34 +02:00
|
|
|
|
All regression tests pass except for rules.sql (unrelated).
Implement "date/time grand unification".
Transform datetime and timespan into timestamp and interval.
Deprecate datetime and timespan, though translate to new types in gram.y.
Transform all datetime and timespan catalog entries into new types.
Make "INTERVAL" reserved word allowed as a column identifier in gram.y.
Remove dt.h, dt.c files, and retarget datetime.h, datetime.c as utility
routines for all date/time types.
date.{h,c} now deals with date, time types.
timestamp.{h,c} now deals with timestamp, interval types.
nabstime.{h,c} now deals with abstime, reltime, tinterval types.
Make NUMERIC a known native type for purposes of type coersion. Not tested.
2000-02-16 18:27:27 +01:00
|
|
|
SELECT '' AS fifteen, d1 FROM TIMESTAMP_TBL
|
|
|
|
WHERE d1 < timestamp '1997-01-02' and d1 != timestamp 'current';
|
2000-01-05 07:06:23 +01:00
|
|
|
fifteen | d1
|
|
|
|
---------+------------------------------
|
|
|
|
| -infinity
|
|
|
|
| epoch
|
|
|
|
| Tue Feb 16 17:32 0097 BC
|
|
|
|
| Sat Feb 16 17:32:01 0097
|
|
|
|
| Thu Feb 16 17:32:01 0597
|
|
|
|
| Tue Feb 16 17:32:01 1097
|
|
|
|
| Sat Feb 16 17:32:01 1697
|
|
|
|
| Thu Feb 16 17:32:01 1797
|
|
|
|
| Tue Feb 16 17:32:01 1897
|
|
|
|
| Wed Feb 28 17:32:01 1996 PST
|
|
|
|
| Thu Feb 29 17:32:01 1996 PST
|
|
|
|
| Fri Mar 01 17:32:01 1996 PST
|
|
|
|
| Mon Dec 30 17:32:01 1996 PST
|
|
|
|
| Tue Dec 31 17:32:01 1996 PST
|
|
|
|
| Wed Jan 01 17:32:01 1997 PST
|
1997-04-27 05:57:34 +02:00
|
|
|
(15 rows)
|
|
|
|
|
All regression tests pass except for rules.sql (unrelated).
Implement "date/time grand unification".
Transform datetime and timespan into timestamp and interval.
Deprecate datetime and timespan, though translate to new types in gram.y.
Transform all datetime and timespan catalog entries into new types.
Make "INTERVAL" reserved word allowed as a column identifier in gram.y.
Remove dt.h, dt.c files, and retarget datetime.h, datetime.c as utility
routines for all date/time types.
date.{h,c} now deals with date, time types.
timestamp.{h,c} now deals with timestamp, interval types.
nabstime.{h,c} now deals with abstime, reltime, tinterval types.
Make NUMERIC a known native type for purposes of type coersion. Not tested.
2000-02-16 18:27:27 +01:00
|
|
|
SELECT '' AS one, d1 FROM TIMESTAMP_TBL
|
|
|
|
WHERE d1 = timestamp '1997-01-02' and d1 != timestamp 'current';
|
2000-01-05 07:06:23 +01:00
|
|
|
one | d1
|
|
|
|
-----+------------------------------
|
|
|
|
| Thu Jan 02 00:00:00 1997 PST
|
1997-04-27 05:57:34 +02:00
|
|
|
(1 row)
|
|
|
|
|
All regression tests pass except for rules.sql (unrelated).
Implement "date/time grand unification".
Transform datetime and timespan into timestamp and interval.
Deprecate datetime and timespan, though translate to new types in gram.y.
Transform all datetime and timespan catalog entries into new types.
Make "INTERVAL" reserved word allowed as a column identifier in gram.y.
Remove dt.h, dt.c files, and retarget datetime.h, datetime.c as utility
routines for all date/time types.
date.{h,c} now deals with date, time types.
timestamp.{h,c} now deals with timestamp, interval types.
nabstime.{h,c} now deals with abstime, reltime, tinterval types.
Make NUMERIC a known native type for purposes of type coersion. Not tested.
2000-02-16 18:27:27 +01:00
|
|
|
SELECT '' AS fiftyeight, d1 FROM TIMESTAMP_TBL
|
|
|
|
WHERE d1 != timestamp '1997-01-02' and d1 != timestamp 'current';
|
2000-01-05 07:06:23 +01:00
|
|
|
fiftyeight | d1
|
|
|
|
------------+---------------------------------
|
|
|
|
| -infinity
|
|
|
|
| infinity
|
|
|
|
| epoch
|
|
|
|
| Mon Feb 10 17:32:01 1997 PST
|
|
|
|
| Mon Feb 10 17:32:01.00 1997 PST
|
|
|
|
| Mon Feb 10 17:32:02.00 1997 PST
|
|
|
|
| Mon Feb 10 17:32:01.40 1997 PST
|
|
|
|
| Mon Feb 10 17:32:01.50 1997 PST
|
|
|
|
| Mon Feb 10 17:32:01.60 1997 PST
|
|
|
|
| Thu Jan 02 03:04:05 1997 PST
|
|
|
|
| Mon Feb 10 17:32:01 1997 PST
|
|
|
|
| Mon Feb 10 17:32:01 1997 PST
|
|
|
|
| Mon Feb 10 17:32:01 1997 PST
|
|
|
|
| Mon Feb 10 17:32:01 1997 PST
|
|
|
|
| Tue Jun 10 17:32:01 1997 PDT
|
All regression tests pass except for rules.sql (unrelated).
Implement "date/time grand unification".
Transform datetime and timespan into timestamp and interval.
Deprecate datetime and timespan, though translate to new types in gram.y.
Transform all datetime and timespan catalog entries into new types.
Make "INTERVAL" reserved word allowed as a column identifier in gram.y.
Remove dt.h, dt.c files, and retarget datetime.h, datetime.c as utility
routines for all date/time types.
date.{h,c} now deals with date, time types.
timestamp.{h,c} now deals with timestamp, interval types.
nabstime.{h,c} now deals with abstime, reltime, tinterval types.
Make NUMERIC a known native type for purposes of type coersion. Not tested.
2000-02-16 18:27:27 +01:00
|
|
|
| Tue Feb 15 23:14:30 2000 PST
|
2000-01-05 07:06:23 +01:00
|
|
|
| Mon Feb 10 17:32:01 1997 PST
|
|
|
|
| Mon Feb 10 17:32:01 1997 PST
|
|
|
|
| Mon Feb 10 17:32:00 1997 PST
|
|
|
|
| Mon Feb 10 17:32:01 1997 PST
|
|
|
|
| Mon Feb 10 17:32:01 1997 PST
|
|
|
|
| Mon Feb 10 17:32:01 1997 PST
|
|
|
|
| Mon Feb 10 17:32:01 1997 PST
|
|
|
|
| Mon Feb 10 17:32:01 1997 PST
|
|
|
|
| Mon Feb 10 09:32:01 1997 PST
|
|
|
|
| Mon Feb 10 09:32:01 1997 PST
|
|
|
|
| Mon Feb 10 09:32:01 1997 PST
|
|
|
|
| Tue Jun 10 18:32:01 1997 PDT
|
|
|
|
| Mon Feb 10 17:32:01 1997 PST
|
|
|
|
| Tue Feb 11 17:32:01 1997 PST
|
|
|
|
| Wed Feb 12 17:32:01 1997 PST
|
|
|
|
| Thu Feb 13 17:32:01 1997 PST
|
|
|
|
| Fri Feb 14 17:32:01 1997 PST
|
|
|
|
| Sat Feb 15 17:32:01 1997 PST
|
|
|
|
| Sun Feb 16 17:32:01 1997 PST
|
|
|
|
| Tue Feb 16 17:32 0097 BC
|
|
|
|
| Sat Feb 16 17:32:01 0097
|
|
|
|
| Thu Feb 16 17:32:01 0597
|
|
|
|
| Tue Feb 16 17:32:01 1097
|
|
|
|
| Sat Feb 16 17:32:01 1697
|
|
|
|
| Thu Feb 16 17:32:01 1797
|
|
|
|
| Tue Feb 16 17:32:01 1897
|
|
|
|
| Sun Feb 16 17:32:01 1997 PST
|
|
|
|
| Sat Feb 16 17:32:01 2097
|
|
|
|
| Wed Feb 28 17:32:01 1996 PST
|
|
|
|
| Thu Feb 29 17:32:01 1996 PST
|
|
|
|
| Fri Mar 01 17:32:01 1996 PST
|
|
|
|
| Mon Dec 30 17:32:01 1996 PST
|
|
|
|
| Tue Dec 31 17:32:01 1996 PST
|
|
|
|
| Wed Jan 01 17:32:01 1997 PST
|
|
|
|
| Fri Feb 28 17:32:01 1997 PST
|
|
|
|
| Sat Mar 01 17:32:01 1997 PST
|
|
|
|
| Tue Dec 30 17:32:01 1997 PST
|
|
|
|
| Wed Dec 31 17:32:01 1997 PST
|
|
|
|
| Fri Dec 31 17:32:01 1999 PST
|
|
|
|
| Sat Jan 01 17:32:01 2000 PST
|
|
|
|
| Sun Dec 31 17:32:01 2000 PST
|
|
|
|
| Mon Jan 01 17:32:01 2001 PST
|
All regression tests pass except for rules.sql (unrelated).
Implement "date/time grand unification".
Transform datetime and timespan into timestamp and interval.
Deprecate datetime and timespan, though translate to new types in gram.y.
Transform all datetime and timespan catalog entries into new types.
Make "INTERVAL" reserved word allowed as a column identifier in gram.y.
Remove dt.h, dt.c files, and retarget datetime.h, datetime.c as utility
routines for all date/time types.
date.{h,c} now deals with date, time types.
timestamp.{h,c} now deals with timestamp, interval types.
nabstime.{h,c} now deals with abstime, reltime, tinterval types.
Make NUMERIC a known native type for purposes of type coersion. Not tested.
2000-02-16 18:27:27 +01:00
|
|
|
(58 rows)
|
1997-04-27 05:57:34 +02:00
|
|
|
|
All regression tests pass except for rules.sql (unrelated).
Implement "date/time grand unification".
Transform datetime and timespan into timestamp and interval.
Deprecate datetime and timespan, though translate to new types in gram.y.
Transform all datetime and timespan catalog entries into new types.
Make "INTERVAL" reserved word allowed as a column identifier in gram.y.
Remove dt.h, dt.c files, and retarget datetime.h, datetime.c as utility
routines for all date/time types.
date.{h,c} now deals with date, time types.
timestamp.{h,c} now deals with timestamp, interval types.
nabstime.{h,c} now deals with abstime, reltime, tinterval types.
Make NUMERIC a known native type for purposes of type coersion. Not tested.
2000-02-16 18:27:27 +01:00
|
|
|
SELECT '' AS sixteen, d1 FROM TIMESTAMP_TBL
|
|
|
|
WHERE d1 <= timestamp '1997-01-02' and d1 != timestamp 'current';
|
2000-01-05 07:06:23 +01:00
|
|
|
sixteen | d1
|
|
|
|
---------+------------------------------
|
|
|
|
| -infinity
|
|
|
|
| epoch
|
|
|
|
| Thu Jan 02 00:00:00 1997 PST
|
|
|
|
| Tue Feb 16 17:32 0097 BC
|
|
|
|
| Sat Feb 16 17:32:01 0097
|
|
|
|
| Thu Feb 16 17:32:01 0597
|
|
|
|
| Tue Feb 16 17:32:01 1097
|
|
|
|
| Sat Feb 16 17:32:01 1697
|
|
|
|
| Thu Feb 16 17:32:01 1797
|
|
|
|
| Tue Feb 16 17:32:01 1897
|
|
|
|
| Wed Feb 28 17:32:01 1996 PST
|
|
|
|
| Thu Feb 29 17:32:01 1996 PST
|
|
|
|
| Fri Mar 01 17:32:01 1996 PST
|
|
|
|
| Mon Dec 30 17:32:01 1996 PST
|
|
|
|
| Tue Dec 31 17:32:01 1996 PST
|
|
|
|
| Wed Jan 01 17:32:01 1997 PST
|
1997-04-27 05:57:34 +02:00
|
|
|
(16 rows)
|
|
|
|
|
All regression tests pass except for rules.sql (unrelated).
Implement "date/time grand unification".
Transform datetime and timespan into timestamp and interval.
Deprecate datetime and timespan, though translate to new types in gram.y.
Transform all datetime and timespan catalog entries into new types.
Make "INTERVAL" reserved word allowed as a column identifier in gram.y.
Remove dt.h, dt.c files, and retarget datetime.h, datetime.c as utility
routines for all date/time types.
date.{h,c} now deals with date, time types.
timestamp.{h,c} now deals with timestamp, interval types.
nabstime.{h,c} now deals with abstime, reltime, tinterval types.
Make NUMERIC a known native type for purposes of type coersion. Not tested.
2000-02-16 18:27:27 +01:00
|
|
|
SELECT '' AS fortyfour, d1 FROM TIMESTAMP_TBL
|
|
|
|
WHERE d1 >= timestamp '1997-01-02' and d1 != timestamp 'current';
|
2000-01-05 07:06:23 +01:00
|
|
|
fortyfour | d1
|
|
|
|
-----------+---------------------------------
|
|
|
|
| infinity
|
|
|
|
| Mon Feb 10 17:32:01 1997 PST
|
|
|
|
| Mon Feb 10 17:32:01.00 1997 PST
|
|
|
|
| Mon Feb 10 17:32:02.00 1997 PST
|
|
|
|
| Mon Feb 10 17:32:01.40 1997 PST
|
|
|
|
| Mon Feb 10 17:32:01.50 1997 PST
|
|
|
|
| Mon Feb 10 17:32:01.60 1997 PST
|
|
|
|
| Thu Jan 02 00:00:00 1997 PST
|
|
|
|
| Thu Jan 02 03:04:05 1997 PST
|
|
|
|
| Mon Feb 10 17:32:01 1997 PST
|
|
|
|
| Mon Feb 10 17:32:01 1997 PST
|
|
|
|
| Mon Feb 10 17:32:01 1997 PST
|
|
|
|
| Mon Feb 10 17:32:01 1997 PST
|
|
|
|
| Tue Jun 10 17:32:01 1997 PDT
|
All regression tests pass except for rules.sql (unrelated).
Implement "date/time grand unification".
Transform datetime and timespan into timestamp and interval.
Deprecate datetime and timespan, though translate to new types in gram.y.
Transform all datetime and timespan catalog entries into new types.
Make "INTERVAL" reserved word allowed as a column identifier in gram.y.
Remove dt.h, dt.c files, and retarget datetime.h, datetime.c as utility
routines for all date/time types.
date.{h,c} now deals with date, time types.
timestamp.{h,c} now deals with timestamp, interval types.
nabstime.{h,c} now deals with abstime, reltime, tinterval types.
Make NUMERIC a known native type for purposes of type coersion. Not tested.
2000-02-16 18:27:27 +01:00
|
|
|
| Tue Feb 15 23:14:30 2000 PST
|
2000-01-05 07:06:23 +01:00
|
|
|
| Mon Feb 10 17:32:01 1997 PST
|
|
|
|
| Mon Feb 10 17:32:01 1997 PST
|
|
|
|
| Mon Feb 10 17:32:00 1997 PST
|
|
|
|
| Mon Feb 10 17:32:01 1997 PST
|
|
|
|
| Mon Feb 10 17:32:01 1997 PST
|
|
|
|
| Mon Feb 10 17:32:01 1997 PST
|
|
|
|
| Mon Feb 10 17:32:01 1997 PST
|
|
|
|
| Mon Feb 10 17:32:01 1997 PST
|
|
|
|
| Mon Feb 10 09:32:01 1997 PST
|
|
|
|
| Mon Feb 10 09:32:01 1997 PST
|
|
|
|
| Mon Feb 10 09:32:01 1997 PST
|
|
|
|
| Tue Jun 10 18:32:01 1997 PDT
|
|
|
|
| Mon Feb 10 17:32:01 1997 PST
|
|
|
|
| Tue Feb 11 17:32:01 1997 PST
|
|
|
|
| Wed Feb 12 17:32:01 1997 PST
|
|
|
|
| Thu Feb 13 17:32:01 1997 PST
|
|
|
|
| Fri Feb 14 17:32:01 1997 PST
|
|
|
|
| Sat Feb 15 17:32:01 1997 PST
|
|
|
|
| Sun Feb 16 17:32:01 1997 PST
|
|
|
|
| Sun Feb 16 17:32:01 1997 PST
|
|
|
|
| Sat Feb 16 17:32:01 2097
|
|
|
|
| Fri Feb 28 17:32:01 1997 PST
|
|
|
|
| Sat Mar 01 17:32:01 1997 PST
|
|
|
|
| Tue Dec 30 17:32:01 1997 PST
|
|
|
|
| Wed Dec 31 17:32:01 1997 PST
|
|
|
|
| Fri Dec 31 17:32:01 1999 PST
|
|
|
|
| Sat Jan 01 17:32:01 2000 PST
|
|
|
|
| Sun Dec 31 17:32:01 2000 PST
|
|
|
|
| Mon Jan 01 17:32:01 2001 PST
|
All regression tests pass except for rules.sql (unrelated).
Implement "date/time grand unification".
Transform datetime and timespan into timestamp and interval.
Deprecate datetime and timespan, though translate to new types in gram.y.
Transform all datetime and timespan catalog entries into new types.
Make "INTERVAL" reserved word allowed as a column identifier in gram.y.
Remove dt.h, dt.c files, and retarget datetime.h, datetime.c as utility
routines for all date/time types.
date.{h,c} now deals with date, time types.
timestamp.{h,c} now deals with timestamp, interval types.
nabstime.{h,c} now deals with abstime, reltime, tinterval types.
Make NUMERIC a known native type for purposes of type coersion. Not tested.
2000-02-16 18:27:27 +01:00
|
|
|
(44 rows)
|
1997-04-27 05:57:34 +02:00
|
|
|
|
All regression tests pass except for rules.sql (unrelated).
Implement "date/time grand unification".
Transform datetime and timespan into timestamp and interval.
Deprecate datetime and timespan, though translate to new types in gram.y.
Transform all datetime and timespan catalog entries into new types.
Make "INTERVAL" reserved word allowed as a column identifier in gram.y.
Remove dt.h, dt.c files, and retarget datetime.h, datetime.c as utility
routines for all date/time types.
date.{h,c} now deals with date, time types.
timestamp.{h,c} now deals with timestamp, interval types.
nabstime.{h,c} now deals with abstime, reltime, tinterval types.
Make NUMERIC a known native type for purposes of type coersion. Not tested.
2000-02-16 18:27:27 +01:00
|
|
|
SELECT '' AS sixtythree, d1 + interval '1 year' AS one_year FROM TIMESTAMP_TBL;
|
2000-01-05 07:06:23 +01:00
|
|
|
sixtythree | one_year
|
|
|
|
------------+---------------------------------
|
|
|
|
| invalid
|
|
|
|
| -infinity
|
|
|
|
| infinity
|
|
|
|
| Thu Dec 31 16:00:00 1970 PST
|
|
|
|
| Tue Feb 10 17:32:01 1998 PST
|
|
|
|
| invalid
|
|
|
|
| invalid
|
|
|
|
| Tue Feb 10 17:32:01.00 1998 PST
|
|
|
|
| Tue Feb 10 17:32:02.00 1998 PST
|
|
|
|
| Tue Feb 10 17:32:01.40 1998 PST
|
|
|
|
| Tue Feb 10 17:32:01.50 1998 PST
|
|
|
|
| Tue Feb 10 17:32:01.60 1998 PST
|
|
|
|
| Fri Jan 02 00:00:00 1998 PST
|
|
|
|
| Fri Jan 02 03:04:05 1998 PST
|
|
|
|
| Tue Feb 10 17:32:01 1998 PST
|
|
|
|
| Tue Feb 10 17:32:01 1998 PST
|
|
|
|
| Tue Feb 10 17:32:01 1998 PST
|
|
|
|
| Tue Feb 10 17:32:01 1998 PST
|
|
|
|
| Wed Jun 10 17:32:01 1998 PDT
|
All regression tests pass except for rules.sql (unrelated).
Implement "date/time grand unification".
Transform datetime and timespan into timestamp and interval.
Deprecate datetime and timespan, though translate to new types in gram.y.
Transform all datetime and timespan catalog entries into new types.
Make "INTERVAL" reserved word allowed as a column identifier in gram.y.
Remove dt.h, dt.c files, and retarget datetime.h, datetime.c as utility
routines for all date/time types.
date.{h,c} now deals with date, time types.
timestamp.{h,c} now deals with timestamp, interval types.
nabstime.{h,c} now deals with abstime, reltime, tinterval types.
Make NUMERIC a known native type for purposes of type coersion. Not tested.
2000-02-16 18:27:27 +01:00
|
|
|
| Thu Feb 15 23:14:30 2001 PST
|
2000-01-05 07:06:23 +01:00
|
|
|
| Tue Feb 10 17:32:01 1998 PST
|
|
|
|
| Tue Feb 10 17:32:01 1998 PST
|
|
|
|
| Tue Feb 10 17:32:00 1998 PST
|
|
|
|
| Tue Feb 10 17:32:01 1998 PST
|
|
|
|
| Tue Feb 10 17:32:01 1998 PST
|
|
|
|
| Tue Feb 10 17:32:01 1998 PST
|
|
|
|
| Tue Feb 10 17:32:01 1998 PST
|
|
|
|
| Tue Feb 10 17:32:01 1998 PST
|
|
|
|
| Tue Feb 10 09:32:01 1998 PST
|
|
|
|
| Tue Feb 10 09:32:01 1998 PST
|
|
|
|
| Tue Feb 10 09:32:01 1998 PST
|
|
|
|
| Wed Jun 10 18:32:01 1998 PDT
|
|
|
|
| Tue Feb 10 17:32:01 1998 PST
|
|
|
|
| Wed Feb 11 17:32:01 1998 PST
|
|
|
|
| Thu Feb 12 17:32:01 1998 PST
|
|
|
|
| Fri Feb 13 17:32:01 1998 PST
|
|
|
|
| Sat Feb 14 17:32:01 1998 PST
|
|
|
|
| Sun Feb 15 17:32:01 1998 PST
|
|
|
|
| Mon Feb 16 17:32:01 1998 PST
|
|
|
|
| Thu Feb 16 17:32 0096 BC
|
|
|
|
| Sun Feb 16 17:32:01 0098
|
|
|
|
| Fri Feb 16 17:32:01 0598
|
|
|
|
| Wed Feb 16 17:32:01 1098
|
|
|
|
| Sun Feb 16 17:32:01 1698
|
|
|
|
| Fri Feb 16 17:32:01 1798
|
|
|
|
| Wed Feb 16 17:32:01 1898
|
|
|
|
| Mon Feb 16 17:32:01 1998 PST
|
|
|
|
| Sun Feb 16 17:32:01 2098
|
|
|
|
| Fri Feb 28 17:32:01 1997 PST
|
|
|
|
| Fri Feb 28 17:32:01 1997 PST
|
|
|
|
| Sat Mar 01 17:32:01 1997 PST
|
|
|
|
| Tue Dec 30 17:32:01 1997 PST
|
|
|
|
| Wed Dec 31 17:32:01 1997 PST
|
|
|
|
| Thu Jan 01 17:32:01 1998 PST
|
|
|
|
| Sat Feb 28 17:32:01 1998 PST
|
|
|
|
| Sun Mar 01 17:32:01 1998 PST
|
|
|
|
| Wed Dec 30 17:32:01 1998 PST
|
|
|
|
| Thu Dec 31 17:32:01 1998 PST
|
|
|
|
| Sun Dec 31 17:32:01 2000 PST
|
|
|
|
| Mon Jan 01 17:32:01 2001 PST
|
|
|
|
| Mon Dec 31 17:32:01 2001 PST
|
|
|
|
| Tue Jan 01 17:32:01 2002 PST
|
All regression tests pass except for rules.sql (unrelated).
Implement "date/time grand unification".
Transform datetime and timespan into timestamp and interval.
Deprecate datetime and timespan, though translate to new types in gram.y.
Transform all datetime and timespan catalog entries into new types.
Make "INTERVAL" reserved word allowed as a column identifier in gram.y.
Remove dt.h, dt.c files, and retarget datetime.h, datetime.c as utility
routines for all date/time types.
date.{h,c} now deals with date, time types.
timestamp.{h,c} now deals with timestamp, interval types.
nabstime.{h,c} now deals with abstime, reltime, tinterval types.
Make NUMERIC a known native type for purposes of type coersion. Not tested.
2000-02-16 18:27:27 +01:00
|
|
|
(62 rows)
|
1997-04-27 05:57:34 +02:00
|
|
|
|
All regression tests pass except for rules.sql (unrelated).
Implement "date/time grand unification".
Transform datetime and timespan into timestamp and interval.
Deprecate datetime and timespan, though translate to new types in gram.y.
Transform all datetime and timespan catalog entries into new types.
Make "INTERVAL" reserved word allowed as a column identifier in gram.y.
Remove dt.h, dt.c files, and retarget datetime.h, datetime.c as utility
routines for all date/time types.
date.{h,c} now deals with date, time types.
timestamp.{h,c} now deals with timestamp, interval types.
nabstime.{h,c} now deals with abstime, reltime, tinterval types.
Make NUMERIC a known native type for purposes of type coersion. Not tested.
2000-02-16 18:27:27 +01:00
|
|
|
SELECT '' AS sixtythree, d1 - interval '1 year' AS one_year FROM TIMESTAMP_TBL;
|
2000-01-05 07:06:23 +01:00
|
|
|
sixtythree | one_year
|
|
|
|
------------+---------------------------------
|
|
|
|
| invalid
|
|
|
|
| -infinity
|
|
|
|
| infinity
|
|
|
|
| Tue Dec 31 16:00:00 1968 PST
|
|
|
|
| Sat Feb 10 17:32:01 1996 PST
|
|
|
|
| invalid
|
|
|
|
| invalid
|
|
|
|
| Sat Feb 10 17:32:01.00 1996 PST
|
|
|
|
| Sat Feb 10 17:32:02.00 1996 PST
|
|
|
|
| Sat Feb 10 17:32:01.40 1996 PST
|
|
|
|
| Sat Feb 10 17:32:01.50 1996 PST
|
|
|
|
| Sat Feb 10 17:32:01.60 1996 PST
|
|
|
|
| Tue Jan 02 00:00:00 1996 PST
|
|
|
|
| Tue Jan 02 03:04:05 1996 PST
|
|
|
|
| Sat Feb 10 17:32:01 1996 PST
|
|
|
|
| Sat Feb 10 17:32:01 1996 PST
|
|
|
|
| Sat Feb 10 17:32:01 1996 PST
|
|
|
|
| Sat Feb 10 17:32:01 1996 PST
|
|
|
|
| Mon Jun 10 17:32:01 1996 PDT
|
All regression tests pass except for rules.sql (unrelated).
Implement "date/time grand unification".
Transform datetime and timespan into timestamp and interval.
Deprecate datetime and timespan, though translate to new types in gram.y.
Transform all datetime and timespan catalog entries into new types.
Make "INTERVAL" reserved word allowed as a column identifier in gram.y.
Remove dt.h, dt.c files, and retarget datetime.h, datetime.c as utility
routines for all date/time types.
date.{h,c} now deals with date, time types.
timestamp.{h,c} now deals with timestamp, interval types.
nabstime.{h,c} now deals with abstime, reltime, tinterval types.
Make NUMERIC a known native type for purposes of type coersion. Not tested.
2000-02-16 18:27:27 +01:00
|
|
|
| Mon Feb 15 23:14:30 1999 PST
|
2000-01-05 07:06:23 +01:00
|
|
|
| Sat Feb 10 17:32:01 1996 PST
|
|
|
|
| Sat Feb 10 17:32:01 1996 PST
|
|
|
|
| Sat Feb 10 17:32:00 1996 PST
|
|
|
|
| Sat Feb 10 17:32:01 1996 PST
|
|
|
|
| Sat Feb 10 17:32:01 1996 PST
|
|
|
|
| Sat Feb 10 17:32:01 1996 PST
|
|
|
|
| Sat Feb 10 17:32:01 1996 PST
|
|
|
|
| Sat Feb 10 17:32:01 1996 PST
|
|
|
|
| Sat Feb 10 09:32:01 1996 PST
|
|
|
|
| Sat Feb 10 09:32:01 1996 PST
|
|
|
|
| Sat Feb 10 09:32:01 1996 PST
|
|
|
|
| Mon Jun 10 18:32:01 1996 PDT
|
|
|
|
| Sat Feb 10 17:32:01 1996 PST
|
|
|
|
| Sun Feb 11 17:32:01 1996 PST
|
|
|
|
| Mon Feb 12 17:32:01 1996 PST
|
|
|
|
| Tue Feb 13 17:32:01 1996 PST
|
|
|
|
| Wed Feb 14 17:32:01 1996 PST
|
|
|
|
| Thu Feb 15 17:32:01 1996 PST
|
|
|
|
| Fri Feb 16 17:32:01 1996 PST
|
|
|
|
| Mon Feb 16 17:32 0098 BC
|
|
|
|
| Thu Feb 16 17:32:01 0096
|
|
|
|
| Tue Feb 16 17:32:01 0596
|
|
|
|
| Sun Feb 16 17:32:01 1096
|
|
|
|
| Thu Feb 16 17:32:01 1696
|
|
|
|
| Tue Feb 16 17:32:01 1796
|
|
|
|
| Sun Feb 16 17:32:01 1896
|
|
|
|
| Fri Feb 16 17:32:01 1996 PST
|
|
|
|
| Thu Feb 16 17:32:01 2096
|
|
|
|
| Tue Feb 28 17:32:01 1995 PST
|
|
|
|
| Tue Feb 28 17:32:01 1995 PST
|
|
|
|
| Wed Mar 01 17:32:01 1995 PST
|
|
|
|
| Sat Dec 30 17:32:01 1995 PST
|
|
|
|
| Sun Dec 31 17:32:01 1995 PST
|
|
|
|
| Mon Jan 01 17:32:01 1996 PST
|
|
|
|
| Wed Feb 28 17:32:01 1996 PST
|
|
|
|
| Fri Mar 01 17:32:01 1996 PST
|
|
|
|
| Mon Dec 30 17:32:01 1996 PST
|
|
|
|
| Tue Dec 31 17:32:01 1996 PST
|
|
|
|
| Thu Dec 31 17:32:01 1998 PST
|
|
|
|
| Fri Jan 01 17:32:01 1999 PST
|
|
|
|
| Fri Dec 31 17:32:01 1999 PST
|
|
|
|
| Sat Jan 01 17:32:01 2000 PST
|
All regression tests pass except for rules.sql (unrelated).
Implement "date/time grand unification".
Transform datetime and timespan into timestamp and interval.
Deprecate datetime and timespan, though translate to new types in gram.y.
Transform all datetime and timespan catalog entries into new types.
Make "INTERVAL" reserved word allowed as a column identifier in gram.y.
Remove dt.h, dt.c files, and retarget datetime.h, datetime.c as utility
routines for all date/time types.
date.{h,c} now deals with date, time types.
timestamp.{h,c} now deals with timestamp, interval types.
nabstime.{h,c} now deals with abstime, reltime, tinterval types.
Make NUMERIC a known native type for purposes of type coersion. Not tested.
2000-02-16 18:27:27 +01:00
|
|
|
(62 rows)
|
1997-04-27 05:57:34 +02:00
|
|
|
|
2000-01-05 07:06:23 +01:00
|
|
|
-- Casting within a BETWEEN qualifier should probably be allowed by the parser. - tgl 97/04/26
|
All regression tests pass except for rules.sql (unrelated).
Implement "date/time grand unification".
Transform datetime and timespan into timestamp and interval.
Deprecate datetime and timespan, though translate to new types in gram.y.
Transform all datetime and timespan catalog entries into new types.
Make "INTERVAL" reserved word allowed as a column identifier in gram.y.
Remove dt.h, dt.c files, and retarget datetime.h, datetime.c as utility
routines for all date/time types.
date.{h,c} now deals with date, time types.
timestamp.{h,c} now deals with timestamp, interval types.
nabstime.{h,c} now deals with abstime, reltime, tinterval types.
Make NUMERIC a known native type for purposes of type coersion. Not tested.
2000-02-16 18:27:27 +01:00
|
|
|
--SELECT '' AS fifty, d1 - timestamp '1997-01-02' AS diff
|
|
|
|
-- FROM TIMESTAMP_TBL WHERE d1 BETWEEN timestamp '1902-01-01' AND timestamp '2038-01-01';
|
|
|
|
SELECT '' AS fifty, d1 - timestamp '1997-01-02' AS diff
|
|
|
|
FROM TIMESTAMP_TBL WHERE d1 BETWEEN '1902-01-01' AND '2038-01-01';
|
2000-01-05 07:06:23 +01:00
|
|
|
fifty | diff
|
|
|
|
-------+----------------------------------------
|
|
|
|
| @ 9863 days 8 hours ago
|
|
|
|
| @ 39 days 17 hours 32 mins 1 sec
|
|
|
|
| @ 39 days 17 hours 32 mins 1.00 secs
|
|
|
|
| @ 39 days 17 hours 32 mins 2.00 secs
|
|
|
|
| @ 39 days 17 hours 32 mins 1.40 secs
|
|
|
|
| @ 39 days 17 hours 32 mins 1.50 secs
|
|
|
|
| @ 39 days 17 hours 32 mins 1.60 secs
|
|
|
|
| @ 0
|
|
|
|
| @ 3 hours 4 mins 5 secs
|
|
|
|
| @ 39 days 17 hours 32 mins 1 sec
|
|
|
|
| @ 39 days 17 hours 32 mins 1 sec
|
|
|
|
| @ 39 days 17 hours 32 mins 1 sec
|
|
|
|
| @ 39 days 17 hours 32 mins 1 sec
|
|
|
|
| @ 159 days 16 hours 32 mins 1 sec
|
All regression tests pass except for rules.sql (unrelated).
Implement "date/time grand unification".
Transform datetime and timespan into timestamp and interval.
Deprecate datetime and timespan, though translate to new types in gram.y.
Transform all datetime and timespan catalog entries into new types.
Make "INTERVAL" reserved word allowed as a column identifier in gram.y.
Remove dt.h, dt.c files, and retarget datetime.h, datetime.c as utility
routines for all date/time types.
date.{h,c} now deals with date, time types.
timestamp.{h,c} now deals with timestamp, interval types.
nabstime.{h,c} now deals with abstime, reltime, tinterval types.
Make NUMERIC a known native type for purposes of type coersion. Not tested.
2000-02-16 18:27:27 +01:00
|
|
|
| @ 1139 days 23 hours 14 mins 30 secs
|
2000-01-05 07:06:23 +01:00
|
|
|
| @ 39 days 17 hours 32 mins 1 sec
|
|
|
|
| @ 39 days 17 hours 32 mins 1 sec
|
|
|
|
| @ 39 days 17 hours 32 mins
|
|
|
|
| @ 39 days 17 hours 32 mins 1 sec
|
|
|
|
| @ 39 days 17 hours 32 mins 1 sec
|
|
|
|
| @ 39 days 17 hours 32 mins 1 sec
|
|
|
|
| @ 39 days 17 hours 32 mins 1 sec
|
|
|
|
| @ 39 days 17 hours 32 mins 1 sec
|
|
|
|
| @ 39 days 9 hours 32 mins 1 sec
|
|
|
|
| @ 39 days 9 hours 32 mins 1 sec
|
|
|
|
| @ 39 days 9 hours 32 mins 1 sec
|
|
|
|
| @ 159 days 17 hours 32 mins 1 sec
|
|
|
|
| @ 39 days 17 hours 32 mins 1 sec
|
|
|
|
| @ 40 days 17 hours 32 mins 1 sec
|
|
|
|
| @ 41 days 17 hours 32 mins 1 sec
|
|
|
|
| @ 42 days 17 hours 32 mins 1 sec
|
|
|
|
| @ 43 days 17 hours 32 mins 1 sec
|
|
|
|
| @ 44 days 17 hours 32 mins 1 sec
|
|
|
|
| @ 45 days 17 hours 32 mins 1 sec
|
|
|
|
| @ 45 days 17 hours 32 mins 1 sec
|
|
|
|
| @ 308 days 6 hours 27 mins 59 secs ago
|
|
|
|
| @ 307 days 6 hours 27 mins 59 secs ago
|
|
|
|
| @ 306 days 6 hours 27 mins 59 secs ago
|
|
|
|
| @ 2 days 6 hours 27 mins 59 secs ago
|
|
|
|
| @ 1 day 6 hours 27 mins 59 secs ago
|
|
|
|
| @ 6 hours 27 mins 59 secs ago
|
|
|
|
| @ 57 days 17 hours 32 mins 1 sec
|
|
|
|
| @ 58 days 17 hours 32 mins 1 sec
|
|
|
|
| @ 362 days 17 hours 32 mins 1 sec
|
|
|
|
| @ 363 days 17 hours 32 mins 1 sec
|
|
|
|
| @ 1093 days 17 hours 32 mins 1 sec
|
|
|
|
| @ 1094 days 17 hours 32 mins 1 sec
|
|
|
|
| @ 1459 days 17 hours 32 mins 1 sec
|
|
|
|
| @ 1460 days 17 hours 32 mins 1 sec
|
All regression tests pass except for rules.sql (unrelated).
Implement "date/time grand unification".
Transform datetime and timespan into timestamp and interval.
Deprecate datetime and timespan, though translate to new types in gram.y.
Transform all datetime and timespan catalog entries into new types.
Make "INTERVAL" reserved word allowed as a column identifier in gram.y.
Remove dt.h, dt.c files, and retarget datetime.h, datetime.c as utility
routines for all date/time types.
date.{h,c} now deals with date, time types.
timestamp.{h,c} now deals with timestamp, interval types.
nabstime.{h,c} now deals with abstime, reltime, tinterval types.
Make NUMERIC a known native type for purposes of type coersion. Not tested.
2000-02-16 18:27:27 +01:00
|
|
|
(49 rows)
|
1997-04-27 05:57:34 +02:00
|
|
|
|
2000-01-05 07:06:23 +01:00
|
|
|
SELECT '' AS fortynine, date_part( 'year', d1) AS year, date_part( 'month', d1) AS month,
|
1997-04-27 05:57:34 +02:00
|
|
|
date_part( 'day', d1) AS day, date_part( 'hour', d1) AS hour,
|
|
|
|
date_part( 'minute', d1) AS minute, date_part( 'second', d1) AS second
|
All regression tests pass except for rules.sql (unrelated).
Implement "date/time grand unification".
Transform datetime and timespan into timestamp and interval.
Deprecate datetime and timespan, though translate to new types in gram.y.
Transform all datetime and timespan catalog entries into new types.
Make "INTERVAL" reserved word allowed as a column identifier in gram.y.
Remove dt.h, dt.c files, and retarget datetime.h, datetime.c as utility
routines for all date/time types.
date.{h,c} now deals with date, time types.
timestamp.{h,c} now deals with timestamp, interval types.
nabstime.{h,c} now deals with abstime, reltime, tinterval types.
Make NUMERIC a known native type for purposes of type coersion. Not tested.
2000-02-16 18:27:27 +01:00
|
|
|
FROM TIMESTAMP_TBL WHERE d1 BETWEEN '1902-01-01' AND '2038-01-01';
|
2000-01-05 07:06:23 +01:00
|
|
|
fortynine | year | month | day | hour | minute | second
|
|
|
|
-----------+------+-------+-----+------+--------+----------
|
|
|
|
| 1969 | 12 | 31 | 16 | 0 | 0
|
|
|
|
| 1997 | 2 | 10 | 17 | 32 | 1
|
|
|
|
| 1997 | 2 | 10 | 17 | 32 | 1.000001
|
|
|
|
| 1997 | 2 | 10 | 17 | 32 | 1.999999
|
|
|
|
| 1997 | 2 | 10 | 17 | 32 | 1.4
|
|
|
|
| 1997 | 2 | 10 | 17 | 32 | 1.5
|
|
|
|
| 1997 | 2 | 10 | 17 | 32 | 1.6
|
|
|
|
| 1997 | 1 | 2 | 0 | 0 | 0
|
|
|
|
| 1997 | 1 | 2 | 3 | 4 | 5
|
|
|
|
| 1997 | 2 | 10 | 17 | 32 | 1
|
|
|
|
| 1997 | 2 | 10 | 17 | 32 | 1
|
|
|
|
| 1997 | 2 | 10 | 17 | 32 | 1
|
|
|
|
| 1997 | 2 | 10 | 17 | 32 | 1
|
|
|
|
| 1997 | 6 | 10 | 17 | 32 | 1
|
All regression tests pass except for rules.sql (unrelated).
Implement "date/time grand unification".
Transform datetime and timespan into timestamp and interval.
Deprecate datetime and timespan, though translate to new types in gram.y.
Transform all datetime and timespan catalog entries into new types.
Make "INTERVAL" reserved word allowed as a column identifier in gram.y.
Remove dt.h, dt.c files, and retarget datetime.h, datetime.c as utility
routines for all date/time types.
date.{h,c} now deals with date, time types.
timestamp.{h,c} now deals with timestamp, interval types.
nabstime.{h,c} now deals with abstime, reltime, tinterval types.
Make NUMERIC a known native type for purposes of type coersion. Not tested.
2000-02-16 18:27:27 +01:00
|
|
|
| 2000 | 2 | 15 | 23 | 14 | 30
|
2000-01-05 07:06:23 +01:00
|
|
|
| 1997 | 2 | 10 | 17 | 32 | 1
|
|
|
|
| 1997 | 2 | 10 | 17 | 32 | 1
|
|
|
|
| 1997 | 2 | 10 | 17 | 32 | 0
|
|
|
|
| 1997 | 2 | 10 | 17 | 32 | 1
|
|
|
|
| 1997 | 2 | 10 | 17 | 32 | 1
|
|
|
|
| 1997 | 2 | 10 | 17 | 32 | 1
|
|
|
|
| 1997 | 2 | 10 | 17 | 32 | 1
|
|
|
|
| 1997 | 2 | 10 | 17 | 32 | 1
|
|
|
|
| 1997 | 2 | 10 | 9 | 32 | 1
|
|
|
|
| 1997 | 2 | 10 | 9 | 32 | 1
|
|
|
|
| 1997 | 2 | 10 | 9 | 32 | 1
|
|
|
|
| 1997 | 6 | 10 | 18 | 32 | 1
|
|
|
|
| 1997 | 2 | 10 | 17 | 32 | 1
|
|
|
|
| 1997 | 2 | 11 | 17 | 32 | 1
|
|
|
|
| 1997 | 2 | 12 | 17 | 32 | 1
|
|
|
|
| 1997 | 2 | 13 | 17 | 32 | 1
|
|
|
|
| 1997 | 2 | 14 | 17 | 32 | 1
|
|
|
|
| 1997 | 2 | 15 | 17 | 32 | 1
|
|
|
|
| 1997 | 2 | 16 | 17 | 32 | 1
|
|
|
|
| 1997 | 2 | 16 | 17 | 32 | 1
|
|
|
|
| 1996 | 2 | 28 | 17 | 32 | 1
|
|
|
|
| 1996 | 2 | 29 | 17 | 32 | 1
|
|
|
|
| 1996 | 3 | 1 | 17 | 32 | 1
|
|
|
|
| 1996 | 12 | 30 | 17 | 32 | 1
|
|
|
|
| 1996 | 12 | 31 | 17 | 32 | 1
|
|
|
|
| 1997 | 1 | 1 | 17 | 32 | 1
|
|
|
|
| 1997 | 2 | 28 | 17 | 32 | 1
|
|
|
|
| 1997 | 3 | 1 | 17 | 32 | 1
|
|
|
|
| 1997 | 12 | 30 | 17 | 32 | 1
|
|
|
|
| 1997 | 12 | 31 | 17 | 32 | 1
|
|
|
|
| 1999 | 12 | 31 | 17 | 32 | 1
|
|
|
|
| 2000 | 1 | 1 | 17 | 32 | 1
|
|
|
|
| 2000 | 12 | 31 | 17 | 32 | 1
|
|
|
|
| 2001 | 1 | 1 | 17 | 32 | 1
|
All regression tests pass except for rules.sql (unrelated).
Implement "date/time grand unification".
Transform datetime and timespan into timestamp and interval.
Deprecate datetime and timespan, though translate to new types in gram.y.
Transform all datetime and timespan catalog entries into new types.
Make "INTERVAL" reserved word allowed as a column identifier in gram.y.
Remove dt.h, dt.c files, and retarget datetime.h, datetime.c as utility
routines for all date/time types.
date.{h,c} now deals with date, time types.
timestamp.{h,c} now deals with timestamp, interval types.
nabstime.{h,c} now deals with abstime, reltime, tinterval types.
Make NUMERIC a known native type for purposes of type coersion. Not tested.
2000-02-16 18:27:27 +01:00
|
|
|
(49 rows)
|
1997-04-27 05:57:34 +02:00
|
|
|
|
2000-01-05 07:06:23 +01:00
|
|
|
SELECT '' AS fortynine, date_part( 'quarter', d1) AS quarter, date_part( 'msec', d1) AS msec,
|
1997-04-27 05:57:34 +02:00
|
|
|
date_part( 'usec', d1) AS usec
|
All regression tests pass except for rules.sql (unrelated).
Implement "date/time grand unification".
Transform datetime and timespan into timestamp and interval.
Deprecate datetime and timespan, though translate to new types in gram.y.
Transform all datetime and timespan catalog entries into new types.
Make "INTERVAL" reserved word allowed as a column identifier in gram.y.
Remove dt.h, dt.c files, and retarget datetime.h, datetime.c as utility
routines for all date/time types.
date.{h,c} now deals with date, time types.
timestamp.{h,c} now deals with timestamp, interval types.
nabstime.{h,c} now deals with abstime, reltime, tinterval types.
Make NUMERIC a known native type for purposes of type coersion. Not tested.
2000-02-16 18:27:27 +01:00
|
|
|
FROM TIMESTAMP_TBL WHERE d1 BETWEEN '1902-01-01' AND '2038-01-01';
|
2000-01-05 07:06:23 +01:00
|
|
|
fortynine | quarter | msec | usec
|
|
|
|
-----------+---------+----------------------+-------------------
|
|
|
|
| 4 | 0 | 0
|
|
|
|
| 1 | 0 | 0
|
|
|
|
| 1 | 0.000999999999917733 | 0.999999999917733
|
|
|
|
| 1 | 999.999 | 999999
|
|
|
|
| 1 | 400 | 400000
|
|
|
|
| 1 | 500 | 500000
|
|
|
|
| 1 | 600 | 600000
|
|
|
|
| 1 | 0 | 0
|
|
|
|
| 1 | 0 | 0
|
|
|
|
| 1 | 0 | 0
|
|
|
|
| 1 | 0 | 0
|
|
|
|
| 1 | 0 | 0
|
|
|
|
| 1 | 0 | 0
|
|
|
|
| 2 | 0 | 0
|
|
|
|
| 1 | 0 | 0
|
|
|
|
| 1 | 0 | 0
|
|
|
|
| 1 | 0 | 0
|
|
|
|
| 1 | 0 | 0
|
|
|
|
| 1 | 0 | 0
|
|
|
|
| 1 | 0 | 0
|
|
|
|
| 1 | 0 | 0
|
|
|
|
| 1 | 0 | 0
|
|
|
|
| 1 | 0 | 0
|
|
|
|
| 1 | 0 | 0
|
|
|
|
| 1 | 0 | 0
|
All regression tests pass except for rules.sql (unrelated).
Implement "date/time grand unification".
Transform datetime and timespan into timestamp and interval.
Deprecate datetime and timespan, though translate to new types in gram.y.
Transform all datetime and timespan catalog entries into new types.
Make "INTERVAL" reserved word allowed as a column identifier in gram.y.
Remove dt.h, dt.c files, and retarget datetime.h, datetime.c as utility
routines for all date/time types.
date.{h,c} now deals with date, time types.
timestamp.{h,c} now deals with timestamp, interval types.
nabstime.{h,c} now deals with abstime, reltime, tinterval types.
Make NUMERIC a known native type for purposes of type coersion. Not tested.
2000-02-16 18:27:27 +01:00
|
|
|
| 1 | 0 | 0
|
2000-01-05 07:06:23 +01:00
|
|
|
| 2 | 0 | 0
|
|
|
|
| 1 | 0 | 0
|
|
|
|
| 1 | 0 | 0
|
|
|
|
| 1 | 0 | 0
|
|
|
|
| 1 | 0 | 0
|
|
|
|
| 1 | 0 | 0
|
|
|
|
| 1 | 0 | 0
|
|
|
|
| 1 | 0 | 0
|
|
|
|
| 1 | 0 | 0
|
|
|
|
| 1 | 0 | 0
|
|
|
|
| 1 | 0 | 0
|
|
|
|
| 1 | 0 | 0
|
|
|
|
| 4 | 0 | 0
|
|
|
|
| 4 | 0 | 0
|
|
|
|
| 1 | 0 | 0
|
|
|
|
| 1 | 0 | 0
|
|
|
|
| 1 | 0 | 0
|
|
|
|
| 4 | 0 | 0
|
|
|
|
| 4 | 0 | 0
|
|
|
|
| 4 | 0 | 0
|
|
|
|
| 1 | 0 | 0
|
|
|
|
| 4 | 0 | 0
|
|
|
|
| 1 | 0 | 0
|
All regression tests pass except for rules.sql (unrelated).
Implement "date/time grand unification".
Transform datetime and timespan into timestamp and interval.
Deprecate datetime and timespan, though translate to new types in gram.y.
Transform all datetime and timespan catalog entries into new types.
Make "INTERVAL" reserved word allowed as a column identifier in gram.y.
Remove dt.h, dt.c files, and retarget datetime.h, datetime.c as utility
routines for all date/time types.
date.{h,c} now deals with date, time types.
timestamp.{h,c} now deals with timestamp, interval types.
nabstime.{h,c} now deals with abstime, reltime, tinterval types.
Make NUMERIC a known native type for purposes of type coersion. Not tested.
2000-02-16 18:27:27 +01:00
|
|
|
(49 rows)
|
1997-04-27 05:57:34 +02:00
|
|
|
|