Re: Progress report on locale safe LIKE indexing

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: Hiroshi Inoue <Inoue(at)tpf(dot)co(dot)jp>, PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Progress report on locale safe LIKE indexing
Date: 2001-08-18 23:34:28
Message-ID: 24217.998177668@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Peter Eisentraut <peter_e(at)gmx(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2001-08-19 01:40:42 Re: encoding names
Previous Message Tatsuo Ishii 2001-08-18 23:30:34 Re: encoding names