Re: PATCH: CITEXT 2.0
| От | Tom Lane |
|---|---|
| Тема | Re: PATCH: CITEXT 2.0 |
| Дата | |
| Msg-id | 26034.1215476320@sss.pgh.pa.us обсуждение |
| Ответ на | Re: PATCH: CITEXT 2.0 ("David E. Wheeler" <david@kineticode.com>) |
| Ответы |
Re: PATCH: CITEXT 2.0
|
| Список | pgsql-hackers |
"David E. Wheeler" <david@kineticode.com> writes:
> On Jul 7, 2008, at 16:58, Tom Lane wrote:
>> If that's so, you certainly can't use strncmp, because that would
>> result
>> in sort orderings totally different from lower()'s result. Even
>> without
>> that argument, for most multibyte cases you'd get a pretty arbitrary,
>> user-unfriendly sort ordering.
> Now I'm confused again. :-( Whether or not I use strncmp() or
> varstr_cmp(), I first lowercase the value to be compared using
> str_tolower(). What Zdenek has said is, that aside, just as for the
> TEXT type, I should use strncmp() for = and <>, and varstr_cmp() for
> everything else. Are you saying something different?
No, but you were: you proposed using strncmp for everything.
regards, tom lane
В списке pgsql-hackers по дате отправления: