AW: like and optimization - Mailing list pgsql-hackers

From Zeugswetter Andreas SB
Subject AW: like and optimization
Date
Msg-id 11C1E6749A55D411A9670001FA6879633681CA@sdexcsrv1.f000.d0188.sd.spardat.at
Whole thread Raw
Responses Re: AW: like and optimization  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
> > I made a reproduceable example of things going wrong with a "en_US"
> > locale which is the widely-used (single-byte) ISO-8859-1 Latin 1 charset.
> 
> en_US uses multi-pass collation rules.  It's those collation rules, not
> the charset per se, that causes the problem.

Just to understand things correctly. Is the Like optimization disabled
for all non-ASCII char sets, or (imho correctly) for non charset ordered 
collations (LC_COLLATE) ?

Thus can you enable index optimization by simply setting
LC_COLLATE to C if your LANG is not set to C ?

Andreas


pgsql-hackers by date:

Previous
From: Magnus Hagander
Date:
Subject: FW: Postgresql on win32
Next
From: Pete Forman
Date:
Subject: Re: AW: AW: AW: Re: tinterval - operator problems on AIX