Re: Range-Types in 9.2

Поиск
Список
Период
Сортировка
От Jeff Davis
Тема Re: Range-Types in 9.2
Дата
Msg-id 1344015746.19398.12.camel@jdavis
обсуждение исходный текст
Ответ на Range-Types in 9.2  (Andreas Kretschmer <andreas@a-kretschmer.de>)
Ответы Re: Range-Types in 9.2
Re: Range-Types in 9.2
Список pgsql-general
On Fri, 2012-08-03 at 17:06 +0200, Andreas Kretschmer wrote:
> Hi all,
> great feature, but i can't find a TIMERANGE, i want to store time-ranges, for
> instance [10:00:00,16:00:00), how can i do that?

CREATE TYPE timerange AS RANGE ( subtype = time );

That's the simple answer. I believe we discussed including this as a
built-in range type at some point, but decided against it. I can't
remember the reason right now.

Regards,
    Jeff Davis


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

Предыдущее
От: Andreas Kretschmer
Дата:
Сообщение: Range-Types in 9.2
Следующее
От: "Marc Mamin"
Дата:
Сообщение: Re: Range-Types in 9.2