Re: is this a bug or I am blind? - Mailing list pgsql-general

From Tom Lane
Subject Re: is this a bug or I am blind?
Date
Msg-id 27507.1134756418@sss.pgh.pa.us
Whole thread Raw
In response to Re: is this a bug or I am blind?  (Martijn van Oosterhout <kleptog@svana.org>)
Responses Re: is this a bug or I am blind?
List pgsql-general
Martijn van Oosterhout <kleptog@svana.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

pgsql-general by date:

Previous
From: Csaba Nagy
Date:
Subject: Re: is this a bug or I am blind?
Next
From: Martijn van Oosterhout
Date:
Subject: Re: is this a bug or I am blind?