Skip site navigation (1) Skip section navigation (2)


From: Greg Stark <gsstark(at)mit(dot)edu>
To: Martijn van Oosterhout <kleptog(at)svana(dot)org>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Removing SORTFUNC_LT/REVLT
Date: 2005-12-31 05:58:19
Message-ID: (view raw or whole thread)
Lists: pgsql-hackers
Martijn van Oosterhout <kleptog(at)svana(dot)org> writes:

> Yet hashing is also a property of the collation, not the type. The same
> string in different locales would hash differently.

I think this is a mistake -- the same mistake that got us into trouble with

Hashing depends on the concept of equality which is integral to the type. Two
things are either the same or they aren't, and that can't change based on

Specifically in the case of strings, two strings should only be considered
"equal" if they consist of the exact same series of characters. (That is, they
could be encoded differently but they have to encode the same actual
characters.) That they happen to sort equally compared to all other strings
doesn't mean that they're equal.


In response to


pgsql-hackers by date

Next:From: Greg StarkDate: 2005-12-31 06:28:55
Subject: Re: EINTR error in SunOS
Previous:From: Qingqing ZhouDate: 2005-12-31 01:25:05
Subject: Re: EINTR error in SunOS

Privacy Policy | About PostgreSQL
Copyright © 1996-2015 The PostgreSQL Global Development Group