| От | Tom Lane |
|---|---|
| Тема | Widening time_t to 8 bytes |
| Дата | |
| Msg-id | 16264.1085175370@sss.pgh.pa.us обсуждение |
| Список | pgsql-hackers |
Now that we have control of our own timezone code, one of the first
things I'd like to do with it is replace time_t with pg_time_t defined
as (signed) int8. This would allow us to handle timezone calculations
outside the 1904-2038 range, and in particular eliminate the bizarre
behaviors that currently exist for timestamps near either of those
boundaries.
On compilers that don't have an int8 type available, the behavior would
be the same as now. That's an ever-smaller proportion of platforms
though.
The only downside I can see is that our zic files would be incompatible
with everyone else's. However, it's a dead certainty that everyone else
will have to go to 8-byte values in zic files sooner or later, so
they'll catch up with us eventually.
Any objections?
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера