Re: [HACKERS] another locale problem
От | Tom Lane |
---|---|
Тема | Re: [HACKERS] another locale problem |
Дата | |
Msg-id | 12078.929108876@sss.pgh.pa.us обсуждение исходный текст |
Ответ на | Re: [HACKERS] another locale problem (Daniel Kalchev <daniel@digsys.bg>) |
Ответы |
Re: [HACKERS] another locale problem
|
Список | pgsql-hackers |
Daniel Kalchev <daniel@digsys.bg> writes: > To summarize the problem. If key contains (equivalent cyrillic > letters) 'ABC', 'ABCD', 'DAB' and 'ABX' and the query is: > SELECT key FROM t WHERE key ~* '^AB'; > index scan will be used and the correct tuples ('ABC', 'ABCD' and > 'ABX') will be returned. If the query is > SELECT key FROM t WHERE key ~* '^ab'; > index scan will be used and no tuples will be returned. Hm. Is it possible that isalpha() is doing the wrong thing on your machine? makeIndexable() currently assumes that isalpha() returns true for any character that is subject to case conversion, but I wonder whether that's a good enough test. The other possibility is that regexp's internal handling of case-insensitive matching is not right. regards, tom lane
В списке pgsql-hackers по дате отправления: