Re: Effecient time ranges in 9.4/9.5?

Поиск
Список
Период
Сортировка
От Jim Nasby
Тема Re: Effecient time ranges in 9.4/9.5?
Дата
Msg-id 561BEA62.4060303@BlueTreble.com
обсуждение исходный текст
Ответ на Re: Effecient time ranges in 9.4/9.5?  (Karsten Hilbert <Karsten.Hilbert@gmx.net>)
Ответы Re: Effecient time ranges in 9.4/9.5?
Список pgsql-general
On 10/4/15 6:18 AM, Karsten Hilbert wrote:
>     check whether both TZs are equal,
>     if so
>         ignore them
>     else
>         convert both operands to UTC,
>     do "time - time",
>     return result AT TIME ZONE UTC,
>     document that UTC is returned,
>
> such that the user can know to apply "AT TIME ZONE ..."
> to the result as needed.

The problem there is you can't reliably convert a time to a different
timezone without knowing what date you're talking about.
--
Jim Nasby, Data Architect, Blue Treble Consulting, Austin TX
Experts in Analytics, Data Architecture and PostgreSQL
Data in Trouble? Get it in Treble! http://BlueTreble.com


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

Предыдущее
От: Jim Nasby
Дата:
Сообщение: Re: Constraint allowing value up to 2 times but no more than 2 times
Следующее
От: Karsten Hilbert
Дата:
Сообщение: Re: Effecient time ranges in 9.4/9.5?