Re: TIMESTAMP WITH( OUT)? TIME ZONE indexing/type choice...
В списке pgsql-general по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: TIMESTAMP WITH( OUT)? TIME ZONE indexing/type choice... |
| Дата | |
| Msg-id | 15950.1045522194@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | TIMESTAMP WITH( OUT)? TIME ZONE indexing/type choice... (Sean Chittenden <sean@chittenden.org>) |
| Ответы |
Re: TIMESTAMP WITH( OUT)? TIME ZONE indexing/type choice...
|
| Список | pgsql-general |
Sean Chittenden <sean@chittenden.org> writes:
> What's the point of indexing a column with TIMESTAMP WITH TIME ZONE?
> More to the point, why aren't all timestamp formats stored as
> TIMESTAMP WITHOUT TIME ZONE and then converted to WITHOUT at parse
> time?
Those are two different types, with different behaviors. We're not
about to eliminate a hard-won distinction that's required by the spec.
Also, although the on-disk format of the two types might be the same,
that doesn't mean they have the same interpretation of a given byte
value. They don't (unless you run your database with TimeZone = GMT).
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера