AT TIME ZONE with full timezones

Поиск
Список
Период
Сортировка
От Magnus Hagander
Тема AT TIME ZONE with full timezones
Дата
Msg-id 6BCB9D8A16AC4241919521715F4D8BCE6C75E4@algol.sollentuna.se
обсуждение исходный текст
Ответы Re: AT TIME ZONE with full timezones  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: AT TIME ZONE with full timezones  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-patches
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...

Docs updates forthcoming assuming this approach is considered good ;-)

//Magnus

Вложения

В списке pgsql-patches по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: SHOW ALL with descriptions
Следующее
От: Pavel Stehule
Дата:
Сообщение: SQLSTATE and SQLERRM