Re: Does anybody use ORDER BY x USING y? - Mailing list pgsql-hackers

From Martijn van Oosterhout
Subject Re: Does anybody use ORDER BY x USING y?
Date
Msg-id 20050918202822.GE31394@svana.org
Whole thread Raw
In response to Re: Does anybody use ORDER BY x USING y?  (Andrew Dunstan <andrew@dunslane.net>)
Responses Re: Does anybody use ORDER BY x USING y?
List pgsql-hackers
On Sun, Sep 18, 2005 at 04:19:06PM -0400, Andrew Dunstan wrote:
> >Err, which hackish workaround would that be? The right solution is
> >citext which creates it's own operator class. This doesn't have
> >anything to do with functional indexes either.
>
> Last time I looked it appeared to have significant limitations, and some
> considerable inefficiencies (e.g, copying the strings and folding them
> to canonical case on every comparison). I would certainly be extremely
> wary of just saying "that's the solution".

Ok, so citext has its limitations. Case-insensetive sort is hard [1].
My real question was, what was the solution he was referring to using
the USING clause?

[1] http://lafstern.org/matt/col2_new.pdf

--
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: "John Hansen"
Date:
Subject: Re: Does anybody use ORDER BY x USING y?
Next
From: Martijn van Oosterhout
Date:
Subject: Re: Does anybody use ORDER BY x USING y?