RE: Progress report on locale safe LIKE indexing

From: "Hiroshi Inoue" <Inoue(at)tpf(dot)co(dot)jp>
To: "Peter Eisentraut" <peter_e(at)gmx(dot)net>
Cc: "PostgreSQL Development" <pgsql-hackers(at)postgresql(dot)org>
Subject: RE: Progress report on locale safe LIKE indexing
Date: 2001-08-18 21:53:06
Message-ID: EKEJJICOHDIEMGPNIFIJOEJHFCAA.Inoue@tpf.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> -----Original Message-----
> From: Peter Eisentraut [mailto:peter_e(at)gmx(dot)net]
>
> Hiroshi Inoue writes:
>
> > Isn't 'a' LIKE 'A' if 'a' = 'A' ?
>
> Yes. But 'a' <> 'A'.

Please look at my first question.
This depends on the assumption that '=' is equivalent in
any locale. Is it guaranteed ?
For example, ( 'a' = 'A' ) isn't allowed in any locale ?.

And your answer was
The whole point here is not to rely on '='.

Clearly your theory depends on the assumption that
If a = b in some locale then a = b in ASCII locale.

And where does 'a' <> 'A' come from ?
The definition of '=' is a part of collating sequence.

>
> > LIKE seems to use the collating sequence.
>
> No. The collating sequence defines the order of all possible strings.
> LIKE doesn't order anything.

Again where does it come from ?

regards,
Hiroshi Inoue

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2001-08-18 22:56:53 RE: Progress report on locale safe LIKE indexing
Previous Message mlw 2001-08-18 18:56:52 Multiple parameters on aggregates?