| От | Tom Lane |
|---|---|
| Тема | Re: Why is time with timezone 12 bytes? |
| Дата | |
| Msg-id | 4217.1285197551@sss.pgh.pa.us обсуждение |
| Ответ на | Re: Why is time with timezone 12 bytes? (Josh Berkus <josh@agliodbs.com>) |
| Ответы |
Re: Why is time with timezone 12 bytes?
|
| Список | pgsql-hackers |
Josh Berkus <josh@agliodbs.com> writes:
>> It's the same, because the limits are calendar based (particularly,
>> the Julian-date functions) and not dependent on the representation.
> Hmmm? Just storing dates for the range described (until the year
> 294,000) takes 8bytes by my calculations. And that's without the 3
> bytes for the time zone. Is my math off?
timestamptz stores GMT; it doesn't store timezone separately.
(If it did, we'd need more than 8 bytes...)
> And, of course, this doesn't answer at all why time with time zone is so
> huge.
Because we haven't lifted a finger to optimize it.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера