Re: How to deal with order by, group by, distinct for user-defined types

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: How to deal with order by, group by, distinct for user-defined types
Дата
Msg-id 5732.1101024878@sss.pgh.pa.us
обсуждение исходный текст
Ответ на How to deal with order by, group by, distinct for user-defined types  (Ruey-Lung Hsiao <rlhsiao@gmail.com>)
Список pgsql-hackers
Ruey-Lung Hsiao <rlhsiao@gmail.com> writes:
>    My question is: how do I find or define ordering operators for my 
> user-defined type?

Create a default btree index operator class for the type.  See
http://developer.postgresql.org/docs/postgres/xindex.html
        regards, tom lane


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

Предыдущее
От: Ruey-Lung Hsiao
Дата:
Сообщение: How to deal with order by, group by, distinct for user-defined types
Следующее
От: Thomas Hallgren
Дата:
Сообщение: Re: Error handling in plperl and pltcl