Peter Eisentraut <peter_e@gmx.net> writes:
> Now, if you look at the code that does the LIKE pattern matching you'll
> see that it does not use any locale features, it simply compares
> characters for equality based on their character codes, accounting for the
> wildcards. Consequentially, this whole operation has nothing to do with
> locales.
But the LIKE code does know about multibyte character sets. Is it safe
to assume that memcmp-based sorting will not make any mistakes with
multibyte characters?
regards, tom lane