Re: Non-C locale and LIKE - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: Non-C locale and LIKE
Date
Msg-id 200411280929.49995.peter_e@gmx.net
Whole thread Raw
In response to Non-C locale and LIKE  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: Non-C locale and LIKE  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-hackers
Bruce Momjian wrote:
> However, I am wondering if we should create a character lookup during
> initdb that has the characters ordered so we can do:

That won't work.  Real-life collations are too complicated.

> Also, we mention you should use the "C" locale to use normal indexes
> for LIKE but isn't it more correct to say the encoding has to be
> SQL_ASCII?

No, the locale decides the ordering.

-- 
Peter Eisentraut
http://developer.postgresql.org/~petere/


pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Fix for NLS in pgport
Next
From: Thomas Hallgren
Date:
Subject: Status of server side Large Object support?