Re: PATCH: CITEXT 2.0 - Mailing list pgsql-hackers

From David E. Wheeler
Subject Re: PATCH: CITEXT 2.0
Date
Msg-id F5ECEEC2-6AFE-499B-8DBE-65166E2E92EB@kineticode.com
Whole thread Raw
In response to Re: PATCH: CITEXT 2.0  (Alvaro Herrera <alvherre@commandprompt.com>)
Responses Re: PATCH: CITEXT 2.0  (Alvaro Herrera <alvherre@commandprompt.com>)
List pgsql-hackers
On Jul 7, 2008, at 11:44, Alvaro Herrera wrote:

>> I'm confused. What's the difference between strncmp() and  
>> varstr_cmp()?
>> And why would I use one in one place and the other elsewhere?  
>> Shouldn't
>> they be used consistently?
>
> Not necessarily -- see texteq.  I think the point is that varstr_cmp()
> is a lot slower.

Then why shouldn't I use strncmp() for all comparisons?

>> No, I was wondering before what locale was used for initdb on the  
>> build
>> farm. I mean, how are locale-aware things really tested?
>
> They aren't AFAIK.

Ow. Pity.

Best,

David



pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: PATCH: CITEXT 2.0
Next
From: Alvaro Herrera
Date:
Subject: Re: PATCH: CITEXT 2.0