Re: Range types

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: Range types
Дата
Msg-id 603c8f070912160942p418300d2x81f87bcae3178b06@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Range types  (Jeff Davis <pgsql@j-davis.com>)
Ответы Re: Range types  (Jeff Davis <pgsql@j-davis.com>)
Список pgsql-hackers
On Wed, Dec 16, 2009 at 12:31 PM, Jeff Davis <pgsql@j-davis.com> wrote:
> There's one problem, and that's for timestamptz ranges with intervals
> that include days and months. Timezone adjustments are just not
> well-defined for that kind of granule (nor would it be particularly
> useful even if it magically worked), so this would have to be blocked
> somehow. I think that's a special case, and we could provide the user
> with a nice error message telling the user to use a date or timestamp
> range instead.

This seems like a fairly special-purpose type.  You'd be targeting it
at people who are very concerned with storing large numbers of these
(so they really care about space consumption) but for some reason
don't need to mix days and months (actually, the current interval
representation stores days, months, and seconds separately).  I
certainly think this might be useful to some people but it doesn't
really sounds like a general range type facility, since it seems to
involve some hacks that are fairly datatype-specific.

...Robert


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

Предыдущее
От: Jeff Davis
Дата:
Сообщение: Re: Range types
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Range types