Re: order by, for custom types

Поиск
Список
Период
Сортировка
От Martijn van Oosterhout
Тема Re: order by, for custom types
Дата
Msg-id 20051122161750.GG12548@svana.org
обсуждение исходный текст
Ответ на Re: order by, for custom types  (Grzegorz Jaskiewicz <gj@pointblue.com.pl>)
Ответы Re: order by, for custom types
Список pgsql-hackers
On Tue, Nov 22, 2005 at 05:14:35PM +0100, Grzegorz Jaskiewicz wrote:
> Ok, I hacked btree for my type, and surely I can have both btree and
> gist at the same time on the same column.
> /me is now going to have a look on btree_gist.

You don't actually have to have a btree defined on your column for
ORDER BY to work, you just need to define a btree OPERATOR CLASS so
that PostgreSQL knows what you mean by "ORDER BY".

Have a nice day,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
> tool for doing 5% of the work and then sitting around waiting for someone
> else to do the other 95% so you can sue them.

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

Предыдущее
От: Grzegorz Jaskiewicz
Дата:
Сообщение: Re: order by, for custom types
Следующее
От: Andreas Pflug
Дата:
Сообщение: Re: TODO item "%Allow pg_hba.conf be controlled via SQL"