Re: Per-column collation, proof of concept - Mailing list pgsql-hackers

From Greg Stark
Subject Re: Per-column collation, proof of concept
Date
Msg-id AANLkTikAXop_9dqQeVzC-NfeY0hpHTwCPjJPMTAsavmM@mail.gmail.com
Whole thread Raw
In response to Re: Per-column collation, proof of concept  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Thu, Jul 15, 2010 at 4:24 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> The problem with not doing that is it breaks hashing --- hash joins and
> hash aggregation being the real pain points.
>
> citext works around this in a rather klugy fashion by decreeing that two
> strings are equal iff their str_tolower() conversions are bitwise equal.
> So it can hash the str_tolower() representation.  But that's kinda slow
> and it fails in the general case anyhow, I think.

I think the general equivalent would be to call strxfrm and hash the
result of that.



--
greg


pgsql-hackers by date:

Previous
From: Magnus Hagander
Date:
Subject: Re: SHOW TABLES
Next
From: Marko Kreen
Date:
Subject: Re: cvs to git migration - keywords