Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)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