| От | Tom Lane |
|---|---|
| Тема | Re: internal time format |
| Дата | |
| Msg-id | 15774.1050355397@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | internal time format (justin <jtyme@intrusic.com>) |
| Список | pgsql-hackers |
justin <jtyme@intrusic.com> writes:
> I'm generating binary copy files and was wondering if someone could quickly
> shed some light on the internal binary format used to represent time types,
> specifically timestamp{w/tz} types.
It's usually a float8, but an int8 if you built with
--enable-integer-datetimes. IIRC, the float8 represents seconds
before/since midnight 1/1/2000, the int8 the same but multiplied by
10^6. For timestamptz the reference is midnight GMT, for timestamp
it's, uh, just midnight ...
> pointers to which source files and/or routines to look at would
> be sufficient.
The date and time related files in src/backend/utils/adt/ are what
to look at.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера