From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Martijn van Oosterhout <kleptog(at)svana(dot)org> |
Cc: | Mage <mage(at)mage(dot)hu>, pgsql-general(at)postgreSQL(dot)org |
Subject: | Re: is this a bug or I am blind? |
Date: | 2005-12-16 18:06:58 |
Message-ID: | 27507.1134756418@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Martijn van Oosterhout <kleptog(at)svana(dot)org> writes:
> On Fri, Dec 16, 2005 at 12:12:08PM -0500, Tom Lane wrote:
>> Perhaps the fast-path check is a bad idea, but fixing this is not just
>> a matter of removing that. If we subscribe to strcoll's worldview then
>> we have to conclude that *text strings are not hashable*, because
>> strings that should be "equal" may have different hash codes.
> This is what strxfrm was created for, to return the sorting key for a
> string.
Ah. So we could redefine hashtext() to return the hash of the strxfrm
value. Slow, but a lot better than giving up hash join and hash
aggregation altogether...
> In any case, we first need to determine which answer is correct, before
> we run off trying to fix it.
Agreed.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Martijn van Oosterhout | 2005-12-16 18:09:27 | Re: is this a bug or I am blind? |
Previous Message | Csaba Nagy | 2005-12-16 17:59:48 | Re: is this a bug or I am blind? |