Re: What is the binary format for timestamps?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: What is the binary format for timestamps?
Дата
Msg-id 14326.1112971562@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: What is the binary format for timestamps?  (Marvin Bellamy <marvin.bellamy@innovision.com>)
Список pgsql-interfaces
Marvin Bellamy <marvin.bellamy@innovision.com> writes:
> I've been treating the timestamp as an integer, not a double.  What's a 
> good way to deal with double/float byte ordering when reading/writing 
> data from Windows applications?

Pretend it's an integer for long enough to byte-swap it the same way as
you'd do for an integer of the same size.  (IIRC this is exactly how the
backend does it, too.)
        regards, tom lane


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

Предыдущее
От: Marvin Bellamy
Дата:
Сообщение: Re: What is the binary format for timestamps?
Следующее
От: Vlad
Дата:
Сообщение: Re: [Dbdpg-general] benchmarking old Pg and DBD::Pg