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

From Greg Stark
Subject Re: is this a bug or I am blind?
Date
Msg-id 87y82kbt7q.fsf@stark.xeocode.com
Whole thread Raw
In response to Re: is this a bug or I am blind?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
Tom Lane <tgl@sss.pgh.pa.us> writes:

> The other approach we could take is to define text comparison as
> yielding equality only for bitwise-equal strings.  If strcoll() returns
> zero then ask strcmp() for a second opinion.

Fwiw this has come up before on this list and it was discovered this is
effectively what Perl does, probably for similar motivations wrt to hashes.

I think it's probably the least bad solution, even if it's not really the
right thing.

--
greg

pgsql-general by date:

Previous
From: Jerry Sievers
Date:
Subject: Re: 8.1 build on Solaris has LATIN9?
Next
From: Chris Browne
Date:
Subject: Re: Getting a DB password to work without editing pg_hba.conf,