Re: order by, for custom types

Поиск
Список
Период
Сортировка
Искать
От
Greg Stark
Тема
Re: order by, for custom types
Дата
Msg-id
87iruppw1o.fsf@stark.xeocode.com
Ответ на
order by, for custom types (Grzegorz Jaskiewicz)
Список
Дерево обсуждения
Re: order by, for custom types Andrew - Supernews <andrew+nonews@supernews.com>
Re: order by, for custom types Grzegorz Jaskiewicz <gj@pointblue.com.pl>
Grzegorz Jaskiewicz  writes:

> Hi folks
> 
> I have all operators required for b-tree, gist up here, and gist  index
> defined. But still "order by custom_type" won't work.

I think you need to create an "operator class" for ORDER BY to work. Someone
else may answer with more details.

> I have kind of wild card masks in my type definition, so b-tree won't  work.
> But still, do I need to define b-tree index as such for "order  by" to work ?
> Perhaps gist should be expanded so it would take care of "order by"  and
> "distinct" ?

This I don't understand. If ORDER BY will work then b-tree indexes will work
too. If your type is such that b-tree indexes don't make sense then neither
does ORDER BY.

-- 
greg


В списке pgsql-hackers по дате отправления
От: Gregory Maxwell
Дата:
Сообщение: Re: Improving count(*)
От: Martijn van Oosterhout
Дата:
FAQ