Re: order by, for custom types - Mailing list pgsql-hackers

From Martijn van Oosterhout
Subject Re: order by, for custom types
Date
Msg-id 20051122161750.GG12548@svana.org
Whole thread Raw
In response to Re: order by, for custom types  (Grzegorz Jaskiewicz <gj@pointblue.com.pl>)
Responses Re: order by, for custom types  (Grzegorz Jaskiewicz <gj@pointblue.com.pl>)
List 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 by date:

Previous
From: Grzegorz Jaskiewicz
Date:
Subject: Re: order by, for custom types
Next
From: Andreas Pflug
Date:
Subject: Re: TODO item "%Allow pg_hba.conf be controlled via SQL"