Custom type where not all elements are comparable

Поиск
Список
Период
Сортировка
От Markus Bertheau
Тема Custom type where not all elements are comparable
Дата
Msg-id 1089041496.3239.13.camel@dicaprio.akademie1.de
обсуждение исходный текст
Ответы Re: Custom type where not all elements are comparable
Re: Custom type where not all elements are comparable
Список pgsql-sql
Hi,

Is it possible to define or implement a type in PostgreSQL not all
values of which are comparable to each other? In particular I'm thinking
of a duration type similar to the XML Schema duration type[1]. For
example P2D (2 days) is less than P4D (4 days), but P1M (1 month) and
P30D (30 days) are not comparable.

Thanks.

[1] http://www.w3.org/TR/xmlschema-2/#duration

-- 
Markus Bertheau <twanger@bluetwanger.de>



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

Предыдущее
От: Richard Huxton
Дата:
Сообщение: Re: Why no exprs in format string to RAISE
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Custom type where not all elements are comparable