Re: order by, for custom types

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: order by, for custom types
Дата
Msg-id 11210.1132670749@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: order by, for custom types  ("Kevin McArthur" <Kevin@StormTide.ca>)
Ответы Re: order by, for custom types  (Grzegorz Jaskiewicz <gj@pointblue.com.pl>)
Список pgsql-hackers
"Kevin McArthur" <Kevin@StormTide.ca> writes:
> This is acceptable to create a unique constraint, however, we cannot mark 
> the column unique, without defining btree operators, which clearly are not 
> possible for sorting. Is there any way to base the operators based on the 
> text representation of the type for strict equality (not to be confused with 
> same or equivilent) and thus use that not as an ordering method, but as a 
> simple equality for uniqueness.

Translation: you do know how to define a sortable order (ie, generate
the text version and compare); you're just too lazy to create the
operators to do it ...
        regards, tom lane


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

Предыдущее
От: "Kevin McArthur"
Дата:
Сообщение: Re: order by, for custom types
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Practical error logging for very large COPY