File tree 12 files changed +1342
-435
lines changed
12 files changed +1342
-435
lines changed Original file line number Diff line number Diff line change @@ -114,6 +114,31 @@ INSERT INTO TIMESTAMPTZ_TBL VALUES ('19970710 173201 America/Does_not_exist');
114
114
ERROR: time zone "america/does_not_exist" not recognized
115
115
SELECT '19970710 173201' AT TIME ZONE 'America/Does_not_exist';
116
116
ERROR: time zone "America/Does_not_exist" not recognized
117
+ -- Daylight saving time for timestamps beyond 32-bit time_t range.
118
+ SELECT '20500710 173201 Europe/Helsinki'::timestamptz; -- DST
119
+ timestamptz
120
+ ------------------------------
121
+ Sun Jul 10 07:32:01 2050 PDT
122
+ (1 row)
123
+
124
+ SELECT '20500110 173201 Europe/Helsinki'::timestamptz; -- non-DST
125
+ timestamptz
126
+ ------------------------------
127
+ Mon Jan 10 07:32:01 2050 PST
128
+ (1 row)
129
+
130
+ SELECT '205000-07-10 17:32:01 Europe/Helsinki'::timestamptz; -- DST
131
+ timestamptz
132
+ --------------------------------
133
+ Thu Jul 10 07:32:01 205000 PDT
134
+ (1 row)
135
+
136
+ SELECT '205000-01-10 17:32:01 Europe/Helsinki'::timestamptz; -- non-DST
137
+ timestamptz
138
+ --------------------------------
139
+ Fri Jan 10 07:32:01 205000 PST
140
+ (1 row)
141
+
117
142
-- Check date conversion and date arithmetic
118
143
INSERT INTO TIMESTAMPTZ_TBL VALUES ('1997-06-10 18:32:01 PDT');
119
144
INSERT INTO TIMESTAMPTZ_TBL VALUES ('Feb 10 17:32:01 1997');
Original file line number Diff line number Diff line change @@ -86,6 +86,13 @@ SELECT '19970710 173201' AT TIME ZONE 'America/New_York';
86
86
INSERT INTO TIMESTAMPTZ_TBL VALUES (' 19970710 173201 America/Does_not_exist' );
87
87
SELECT ' 19970710 173201' AT TIME ZONE ' America/Does_not_exist' ;
88
88
89
+ -- Daylight saving time for timestamps beyond 32-bit time_t range.
90
+ SELECT ' 20500710 173201 Europe/Helsinki' ::timestamptz ; -- DST
91
+ SELECT ' 20500110 173201 Europe/Helsinki' ::timestamptz ; -- non-DST
92
+
93
+ SELECT ' 205000-07-10 17:32:01 Europe/Helsinki' ::timestamptz ; -- DST
94
+ SELECT ' 205000-01-10 17:32:01 Europe/Helsinki' ::timestamptz ; -- non-DST
95
+
89
96
-- Check date conversion and date arithmetic
90
97
INSERT INTO TIMESTAMPTZ_TBL VALUES (' 1997-06-10 18:32:01 PDT' );
91
98
Original file line number Diff line number Diff line change 1
- This is a PostgreSQL adapted version of the timezone library
2
- from:
1
+ This is a PostgreSQL adapted version of the timezone library from:
3
2
4
3
ftp://elsie.nci.nih.gov/pub/tzcode*.tar.gz
5
4
6
- The data files under data/ are an exact copy of the latest data set
7
- from
5
+ The code is currently synced with release 2007k. There are many cosmetic
6
+ (and not so cosmetic) differences from the original tzcode library, but
7
+ diffs in the upstream version should usually be propagated to our version.
8
+
9
+ The data files under data/ are an exact copy of the latest data set from:
8
10
9
11
ftp://elsie.nci.nih.gov/pub/tzdata*.tar.gz
10
12
Original file line number Diff line number Diff line change 1
1
/*
2
2
* This file is in the public domain, so clarified as of
3
- * 1996-06-05 by Arthur David Olson (arthur_david_olson@nih.gov) .
3
+ * 2006-07-17 by Arthur David Olson.
4
4
*
5
5
* IDENTIFICATION
6
- * $PostgreSQL: pgsql/src/timezone/ialloc.c,v 1.9 2007/10/26 13:30:10 tgl Exp $
6
+ * $PostgreSQL: pgsql/src/timezone/ialloc.c,v 1.10 2008/02/16 21:16:04 tgl Exp $
7
7
*/
8
8
9
9
#include "postgres_fe.h"
You can’t perform that action at this time.
0 commit comments