Re: Progress report on locale safe LIKE indexing - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Progress report on locale safe LIKE indexing
Date
Msg-id 24217.998177668@sss.pgh.pa.us
Whole thread Raw
In response to RE: Progress report on locale safe LIKE indexing  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: Progress report on locale safe LIKE indexing
List pgsql-hackers
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


pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: RE: Progress report on locale safe LIKE indexing
Next
From: Tatsuo Ishii
Date:
Subject: Re: [PATCHES] encoding names