Re: pg_trgm
| От | Tom Lane |
|---|---|
| Тема | Re: pg_trgm |
| Дата | |
| Msg-id | 14832.1274970256@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: pg_trgm (Tatsuo Ishii <ishii@sraoss.co.jp>) |
| Ответы |
Re: pg_trgm
|
| Список | pgsql-hackers |
Tatsuo Ishii <ishii@sraoss.co.jp> writes:
> Anyway locale is completely usesless for finding word vs non-character
> an agglutinative language such as Japanese.
Well, that doesn't mean that the answer is to use C locale ;-)
However, you could possibly think about making this bit of code
more flexible:
#ifdef KEEPONLYALNUM
#define iswordchr(c) (t_isalpha(c) || t_isdigit(c))
#else
#define iswordchr(c) (!t_isspace(c))
#endif
Currently it seems to be hard-wired to the first case in standard
builds.
regards, tom lane
В списке pgsql-hackers по дате отправления: