Re: order by for user defined types

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: order by for user defined types
Дата
Msg-id 21942.1102090507@sss.pgh.pa.us
обсуждение исходный текст
Ответ на order by for user defined types  (Kjetil Haaland <kjetil.haaland@student.uib.no>)
Список pgsql-novice
Kjetil Haaland <kjetil.haaland@student.uib.no> writes:
> I have a defined my own type that i use in postgres. I have made some
> operators like >, => etc. so i can use it in a where clause in a query. I am
> now wondering if it is possible to do the same for order by?

You need to define a default btree index opclass for your datatype.  See
the chapter "Interfacing Extensions to Indexes" in the documentation.

            regards, tom lane

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

Предыдущее
От: Sean Davis
Дата:
Сообщение: using a correlated subquery in update
Следующее
От: "clayton"
Дата:
Сообщение: Postgre 8 beta 5