mirror of
https://github.com/postgres/postgres.git
synced 2025-06-25 01:02:05 +03:00
This patch makes it possible to use the full set of timezones when doing
"AT TIME ZONE", and not just the shorlist previously available. For example: SELECT CURRENT_TIMESTAMP AT TIME ZONE 'Europe/London'; works fine now. It will also obey whatever DST rules were in effect at just that date, which the previous implementation did not. It also supports the AT TIME ZONE on the timetz datatype. The whole handling of DST is a bit bogus there, so I chose to make it use whatever DST rules are in effect at the time of executig the query. not sure if anybody is actuallyi *using* timetz though, it seems pretty unpredictable just because of this... Magnus Hagander
This commit is contained in:
@ -6,7 +6,7 @@
|
||||
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/include/pgtime.h,v 1.7 2005/04/19 03:13:59 momjian Exp $
|
||||
* $PostgreSQL: pgsql/src/include/pgtime.h,v 1.8 2005/06/15 00:34:09 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -57,4 +57,8 @@ extern bool tz_acceptable(pg_tz *tz);
|
||||
extern const char *pg_get_timezone_name(pg_tz *tz);
|
||||
|
||||
extern pg_tz *global_timezone;
|
||||
|
||||
/* Maximum length of a timezone name */
|
||||
#define TZ_STRLEN_MAX 255
|
||||
|
||||
#endif /* _PGTIME_H */
|
||||
|
Reference in New Issue
Block a user