Re: Floating-point timestamps versus Range Types

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Floating-point timestamps versus Range Types
Дата
Msg-id 11781.1287714285@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Floating-point timestamps versus Range Types  (Bruce Momjian <bruce@momjian.us>)
Ответы Re: Floating-point timestamps versus Range Types  (Greg Stark <gsstark@mit.edu>)
Re: Floating-point timestamps versus Range Types  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
Bruce Momjian <bruce@momjian.us> writes:
> Greg Stark wrote:
>> Did we have a solution for the problem that understanding which
>> columns are timestamps requires having a tuple descriptor and parsing
>> the every tuple? That seems like it would a) be slow and b) require a
>> lot of high level code in the middle of a low-level codepath.

> Yep, that's what it requires.  It would rewrite in the new format.

In the case of the recent hstore fixes, we were able to put the burden
on the hstore functions themselves to do any necessary conversion.
I wonder if it'd be possible to do something similar here?  I haven't
chased the bits in any detail, but I'm thinking that integer timestamps
in a plausible range might all look like denormalized floats, and
conversely plausible float timestamps would look like ridiculously large
integer timestamps.  Would we be willing to make such assumptions to
support in-place upgrade of timestamps?
        regards, tom lane


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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: Simplifying replication
Следующее
От: Itagaki Takahiro
Дата:
Сообщение: Re: Extensions, this time with a patch